|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.custom.CustomizationCommandLineBase
org.jibx.schema.codegen.SchemaCommandLineBase
public abstract class SchemaCommandLineBase
Command line processing for tools working with schemas. TODO: take schema root directory handling from CodeGenCommandLine
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jibx.custom.CustomizationCommandLineBase |
---|
CustomizationCommandLineBase.ArgList |
Field Summary | |
---|---|
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. |
Fields inherited from class org.jibx.custom.CustomizationCommandLineBase |
---|
STRING_PARAMETER_ARRAY, STRING_UNMARSHALLER_PARAMETER_ARRAY |
Constructor Summary | |
---|---|
SchemaCommandLineBase()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jibx.custom.CustomizationCommandLineBase |
---|
getExtraArgs, getGeneratePath, getUsageLines, isVerbose, mergeUsageLines, printUsage, processArgs, putKeyValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public SchemaCommandLineBase()
Method Detail |
---|
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 list
true
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 path
true
if successful, false
if an error
JiBXException
java.io.IOException
protected java.util.Map applyOverrides(java.util.Map overmap)
CustomizationCommandLineBase
applyOverrides
in class CustomizationCommandLineBase
overmap
- override key-value map
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |