|
||||||
| 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.CodeGenCommandLine
public class CodeGenCommandLine
Command line processing specifically for the CodeGen class.
| 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_defaultPackage
Default package for all schemas. |
private java.io.File |
m_dumpFile
File for dumping the generated class structure ( null if none). |
private java.lang.String |
m_nonamespacePackage
Default package for no-namespace schemas. |
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 | |
|---|---|
CodeGenCommandLine()
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.lang.String |
getDefaultPackage()
Get default package for all schemas. |
java.io.File |
getDumpFile()
Get file to be used for dumping generated data model. |
java.lang.String |
getNonamespacePackage()
Get default package for no-namespace schemas. |
java.lang.String |
getRootPath()
Get root path for schemas. |
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. |
void |
printUsage()
Print usage information. |
| Methods inherited from class org.jibx.custom.CustomizationCommandLineBase |
|---|
applyKeyValueMap, getExtraArgs, getGeneratePath, getUsageLines, isVerbose, mergeUsageLines, processArgs, putKeyValue, verboseDetails |
| 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_nonamespacePackage
private java.lang.String m_defaultPackage
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 java.io.File m_dumpFile
null if none).
private SchemasetCustom m_customRoot
| Constructor Detail |
|---|
public CodeGenCommandLine()
| Method Detail |
|---|
public java.lang.String getRootPath()
null if not specifiedpublic java.net.URL getSchemaRoot()
public java.io.File getSchemaDir()
null if root is not a directory)public SchemasetCustom getCustomRoot()
public java.lang.String getNonamespacePackage()
null if not set)public java.lang.String getDefaultPackage()
null if not set)public java.io.File getDumpFile()
null if none)protected boolean checkParameter(CustomizationCommandLineBase.ArgList alist)
CustomizationCommandLineBase
checkParameter in class CustomizationCommandLineBasealist - argument list
true if parameter processed, false if unknownprotected void finishParameters(CustomizationCommandLineBase.ArgList alist)
finishParameters in class CustomizationCommandLineBasealist -
protected boolean loadCustomizations(java.lang.String path)
throws JiBXException,
java.io.IOException
loadCustomizations in class CustomizationCommandLineBasepath - customization file path
true if successful, false if an error
JiBXException
java.io.IOExceptionprotected java.util.Map applyOverrides(java.util.Map overmap)
CustomizationCommandLineBase
applyOverrides in class CustomizationCommandLineBaseovermap - override key-value map
public void printUsage()
CustomizationCommandLineBase
printUsage in class CustomizationCommandLineBase
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||