Package org.jibx.binding.generator
Class BindGenCommandLine
- java.lang.Object
-
- org.jibx.custom.CustomizationCommandLineBase
-
- org.jibx.custom.classes.ClassCustomizationBase
-
- org.jibx.schema.generator.SchemaGenCommandLine
-
- org.jibx.binding.generator.BindGenCommandLine
-
public class BindGenCommandLine extends SchemaGenCommandLine
Command line processing specifically for theBindGen
class.- Author:
- Dennis M. Sosnoski
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jibx.custom.CustomizationCommandLineBase
CustomizationCommandLineBase.ArgList
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]
EXTRA_USAGE_LINES
Ordered array of extra usage lines.private java.lang.Boolean
m_abstract
TRUE
if abstract mappings forced,FALSE
if concrete mappings forced,null
if left to class settings.private java.lang.String
m_bindingName
Name used for root binding.private boolean
m_bindingOnly
Binding generation only flag (skip schema generation).private GlobalCustom
m_global
Customizations model root.-
Fields inherited from class org.jibx.custom.CustomizationCommandLineBase
STRING_PARAMETER_ARRAY, STRING_UNMARSHALLER_PARAMETER_ARRAY
-
-
Constructor Summary
Constructors Constructor Description BindGenCommandLine()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 if an extension parameter is recognized.java.lang.Boolean
getAbstract()
Get force abstract mapping setting.java.lang.String
getBindingName()
Get binding name.GlobalCustom
getGlobal()
Get customizations model root.boolean
isBindingOnly()
Check if only binding generation to be done.protected void
loadCustomizations(java.lang.String path, IClassLocator loc, ValidationContext vctx)
Load the customizations file.void
printUsage()
Print usage information.-
Methods inherited from class org.jibx.schema.generator.SchemaGenCommandLine
getLocator, getUriNames, setLocator
-
Methods inherited from class org.jibx.custom.classes.ClassCustomizationBase
finishParameters, loadCustomizations, splitItems, verboseDetails
-
Methods inherited from class org.jibx.custom.CustomizationCommandLineBase
getExtraArgs, getGeneratePath, getUsageLines, isVerbose, mergeUsageLines, processArgs, putKeyValue
-
-
-
-
Field Detail
-
EXTRA_USAGE_LINES
private static final java.lang.String[] EXTRA_USAGE_LINES
Ordered array of extra usage lines.
-
m_abstract
private java.lang.Boolean m_abstract
TRUE
if abstract mappings forced,FALSE
if concrete mappings forced,null
if left to class settings.
-
m_global
private GlobalCustom m_global
Customizations model root.
-
m_bindingName
private java.lang.String m_bindingName
Name used for root binding.
-
m_bindingOnly
private boolean m_bindingOnly
Binding generation only flag (skip schema generation).
-
-
Method Detail
-
getAbstract
public java.lang.Boolean getAbstract()
Get force abstract mapping setting.- Returns:
TRUE
if abstract mappings forced,FALSE
if concrete mappings forced,null
if left to class settings
-
getGlobal
public GlobalCustom getGlobal()
Get customizations model root.- Overrides:
getGlobal
in classSchemaGenCommandLine
- Returns:
- customizations
-
getBindingName
public java.lang.String getBindingName()
Get binding name.- Returns:
- name
-
isBindingOnly
public boolean isBindingOnly()
Check if only binding generation to be done.- Returns:
true
if only binding generation,false
if both binding and schema
-
checkParameter
protected boolean checkParameter(CustomizationCommandLineBase.ArgList alist)
Description copied from class:ClassCustomizationBase
Check if an extension parameter is recognized. Subclasses which override this method should call the base class method before doing their own checks, and only perform their own checks if this method returnsfalse
..- Overrides:
checkParameter
in classSchemaGenCommandLine
- Parameters:
alist
- argument list- Returns:
true
if parameter processed,false
if unknown
-
loadCustomizations
protected void loadCustomizations(java.lang.String path, IClassLocator loc, ValidationContext vctx) throws JiBXException, java.io.IOException
Description copied from class:ClassCustomizationBase
Load the customizations file. This method must load the specified customizations file, or create a default customizations instance, of the appropriate type.- Overrides:
loadCustomizations
in classSchemaGenCommandLine
- Parameters:
path
- customizations file path,null
if noneloc
- class locatorvctx
- validation context- Throws:
JiBXException
java.io.IOException
-
applyOverrides
protected java.util.Map applyOverrides(java.util.Map overmap)
Description copied from class:CustomizationCommandLineBase
Apply map of override values to customizations read from file or created as default.- Overrides:
applyOverrides
in classSchemaGenCommandLine
- Parameters:
overmap
- override key-value map- Returns:
- map for key/values not recognized
-
printUsage
public void printUsage()
Description copied from class:CustomizationCommandLineBase
Print usage information.- Overrides:
printUsage
in classSchemaGenCommandLine
-
-