RefactoryCommandLine
public abstract class SchemaCommandLineBase extends CustomizationCommandLineBase
CustomizationCommandLineBase.ArgList
Modifier and Type | Field | Description |
---|---|---|
private static java.lang.String[] |
EXTRA_USAGE_LINES |
Ordered array of extra usage lines.
|
private SchemasetCustom |
m_customRoot |
Customizations model root.
|
private java.lang.String |
m_rootPath |
Schema root URL path.
|
private java.io.File |
m_schemaDir |
Root directory for schemas (
null if not a file system root). |
private java.net.URL |
m_schemaRoot |
Root URL for schemas.
|
STRING_PARAMETER_ARRAY, STRING_UNMARSHALLER_PARAMETER_ARRAY
Constructor | Description |
---|---|
SchemaCommandLineBase() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
protected java.util.Map |
applyOverrides(java.util.Map overmap) |
Apply map of override values to customizations read from file or created as default.
|
protected boolean |
checkParameter(CustomizationCommandLineBase.ArgList alist) |
Check extension parameter.
|
protected void |
finishParameters(CustomizationCommandLineBase.ArgList alist) |
Finish processing of command line parameters.
|
SchemasetCustom |
getCustomRoot() |
Get customizations model root.
|
java.io.File |
getSchemaDir() |
Get root directory for schemas.
|
java.net.URL |
getSchemaRoot() |
Get root URL for schemas.
|
protected boolean |
loadCustomizations(java.lang.String path) |
Load the customizations file.
|
protected void |
verboseDetails() |
Print any extension details.
|
getExtraArgs, getGeneratePath, getUsageLines, isVerbose, mergeUsageLines, printUsage, processArgs, putKeyValue
private static final java.lang.String[] EXTRA_USAGE_LINES
private java.lang.String m_rootPath
private java.net.URL m_schemaRoot
private java.io.File m_schemaDir
null
if not a file system root).private SchemasetCustom m_customRoot
public java.net.URL getSchemaRoot()
public java.io.File getSchemaDir()
null
if root is not a directory)public SchemasetCustom getCustomRoot()
protected boolean checkParameter(CustomizationCommandLineBase.ArgList alist)
CustomizationCommandLineBase
checkParameter
in class CustomizationCommandLineBase
alist
- argument listtrue
if parameter processed, false
if unknownprotected void verboseDetails()
CustomizationCommandLineBase
verboseDetails
in class CustomizationCommandLineBase
protected void finishParameters(CustomizationCommandLineBase.ArgList alist)
finishParameters
in class CustomizationCommandLineBase
alist
- protected boolean loadCustomizations(java.lang.String path) throws JiBXException, java.io.IOException
loadCustomizations
in class CustomizationCommandLineBase
path
- customization file pathtrue
if successful, false
if an errorJiBXException
java.io.IOException
protected java.util.Map applyOverrides(java.util.Map overmap)
CustomizationCommandLineBase
applyOverrides
in class CustomizationCommandLineBase
overmap
- override key-value map