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
Command line processing specifically for the
BindGen class.- Author:
- Dennis M. Sosnoski
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jibx.custom.CustomizationCommandLineBase
CustomizationCommandLineBase.ArgList -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]Ordered array of extra usage lines.private BooleanTRUEif abstract mappings forced,FALSEif concrete mappings forced,nullif left to class settings.private StringName used for root binding.private booleanBinding generation only flag (skip schema generation).private GlobalCustomCustomizations model root.Fields inherited from class org.jibx.custom.CustomizationCommandLineBase
STRING_PARAMETER_ARRAY, STRING_UNMARSHALLER_PARAMETER_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MapapplyOverrides(Map overmap) Apply map of override values to customizations read from file or created as default.protected booleanCheck if an extension parameter is recognized.Get force abstract mapping setting.Get binding name.Get customizations model root.booleanCheck if only binding generation to be done.protected voidloadCustomizations(String path, IClassLocator loc, ValidationContext vctx) Load the customizations file.voidPrint usage information.Methods inherited from class org.jibx.schema.generator.SchemaGenCommandLine
getLocator, getUriNames, setLocatorMethods inherited from class org.jibx.custom.classes.ClassCustomizationBase
finishParameters, loadCustomizations, splitItems, verboseDetailsMethods inherited from class org.jibx.custom.CustomizationCommandLineBase
getExtraArgs, getGeneratePath, getUsageLines, isVerbose, mergeUsageLines, processArgs, putKeyValue
-
Field Details
-
EXTRA_USAGE_LINES
Ordered array of extra usage lines. -
m_abstract
TRUEif abstract mappings forced,FALSEif concrete mappings forced,nullif left to class settings. -
m_global
Customizations model root. -
m_bindingName
Name used for root binding. -
m_bindingOnly
private boolean m_bindingOnlyBinding generation only flag (skip schema generation).
-
-
Constructor Details
-
BindGenCommandLine
public BindGenCommandLine()Constructor.
-
-
Method Details
-
getAbstract
Get force abstract mapping setting.- Returns:
TRUEif abstract mappings forced,FALSEif concrete mappings forced,nullif left to class settings
-
getGlobal
Get customizations model root.- Overrides:
getGlobalin classSchemaGenCommandLine- Returns:
- customizations
-
getBindingName
Get binding name.- Returns:
- name
-
isBindingOnly
public boolean isBindingOnly()Check if only binding generation to be done.- Returns:
trueif only binding generation,falseif both binding and schema
-
checkParameter
Description copied from class:ClassCustomizationBaseCheck 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:
checkParameterin classSchemaGenCommandLine- Parameters:
alist- argument list- Returns:
trueif parameter processed,falseif unknown
-
loadCustomizations
protected void loadCustomizations(String path, IClassLocator loc, ValidationContext vctx) throws JiBXException, IOException Description copied from class:ClassCustomizationBaseLoad the customizations file. This method must load the specified customizations file, or create a default customizations instance, of the appropriate type.- Overrides:
loadCustomizationsin classSchemaGenCommandLine- Parameters:
path- customizations file path,nullif noneloc- class locatorvctx- validation context- Throws:
JiBXExceptionIOException
-
applyOverrides
Description copied from class:CustomizationCommandLineBaseApply map of override values to customizations read from file or created as default.- Overrides:
applyOverridesin classSchemaGenCommandLine- Parameters:
overmap- override key-value map- Returns:
- map for key/values not recognized
-
printUsage
public void printUsage()Description copied from class:CustomizationCommandLineBasePrint usage information.- Overrides:
printUsagein classSchemaGenCommandLine
-