public class CodeGenCommandLine extends CustomizationCommandLineBase
CodeGen
class.CustomizationCommandLineBase.ArgList
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
EXTRA_USAGE_LINES
Ordered array of extra usage lines.
|
private java.lang.String |
m_bindingName
Name used for root binding.
|
private SchemasetCustom |
m_customRoot
Customizations model root.
|
private java.lang.String |
m_defaultPackage
Default package for all schemas.
|
private java.io.File |
m_differenceFile
File for checking differences in generated class structure (
null if none). |
private java.util.List |
m_includePaths
List of existing bindings to be included and used for matching schema definitions.
|
private java.io.File |
m_modelFile
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 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.
|
private java.lang.String |
m_usingNamespace
Namespace to be used for no-namespace schemas generated directly.
|
private static Logger |
s_logger
Logger for class.
|
STRING_PARAMETER_ARRAY, STRING_UNMARSHALLER_PARAMETER_ARRAY
Constructor and Description |
---|
CodeGenCommandLine()
Constructor.
|
Modifier and Type | Method and 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.
|
java.lang.String |
getBindingName()
Get binding name.
|
SchemasetCustom |
getCustomRoot()
Get customizations model root.
|
java.io.File |
getDifferenceFile()
Get file to be used for finding differences in generated data model.
|
java.util.List |
getIncludePaths()
Get the list of paths for bindings to be used for matching schema definitions.
|
java.io.File |
getModelFile()
Get file to be used for dumping generated data model.
|
java.lang.String |
getNonamespacePackage()
Get default package for no-namespace schemas.
|
java.io.File |
getSchemaDir()
Get root directory for schemas.
|
java.net.URL |
getSchemaRoot()
Get root URL for schemas.
|
java.lang.String |
getUsingNamespace()
Get namespace to be used when no schemas with namespaces are being generated.
|
protected boolean |
loadCustomizations(java.lang.String path)
Load the customizations file.
|
void |
printUsage()
Print usage information.
|
getExtraArgs, getGeneratePath, getUsageLines, isVerbose, mergeUsageLines, processArgs, putKeyValue, verboseDetails
private static final Logger s_logger
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.lang.String m_bindingName
private java.lang.String m_usingNamespace
private java.net.URL m_schemaRoot
private java.io.File m_schemaDir
null
if not a file system root).private java.io.File m_modelFile
null
if none).private java.io.File m_differenceFile
null
if none).private SchemasetCustom m_customRoot
private java.util.List m_includePaths
public java.net.URL getSchemaRoot()
public java.io.File getSchemaDir()
null
if root is not a directory)public java.lang.String getBindingName()
null
if not set)public java.lang.String getUsingNamespace()
null
if unspecified)public SchemasetCustom getCustomRoot()
public java.lang.String getNonamespacePackage()
null
if not set)public java.io.File getModelFile()
null
if none)public java.io.File getDifferenceFile()
null
if none)public java.util.List getIncludePaths()
protected boolean checkParameter(CustomizationCommandLineBase.ArgList alist)
CustomizationCommandLineBase
checkParameter
in class CustomizationCommandLineBase
alist
- argument listtrue
if parameter processed, false
if unknownprotected 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 mappublic void printUsage()
CustomizationCommandLineBase
printUsage
in class CustomizationCommandLineBase