Package org.jibx.ws.wsdl.tools
Class WsdlGeneratorCommandLine
java.lang.Object
org.jibx.custom.CustomizationCommandLineBase
org.jibx.custom.classes.ClassCustomizationBase
org.jibx.schema.generator.SchemaGenCommandLine
org.jibx.ws.wsdl.tools.WsdlGeneratorCommandLine
Command line processing specifically for the
Jibx2Wsdl
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 String
Name used for root binding.private boolean
Pure doc/lit (not wrapped) flag.private List
List of extra classes for binding.private GlobalCustom
Global customizations model root.private List
List of existing bindings for messages.private List
List of existing schemas for messages.private WsdlCustom
WSDL customizations 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 Map
applyOverrides
(Map overmap) Apply map of override values to customizations read from file or created as default.protected boolean
Check if an extension parameter is recognized.Get binding name.Get extra classes to be included in binding.Get customizations model root.Get existing bindings to be used for message components.Get existing schemas to be used for message components.Get WSDL customizations model root.boolean
isDocLit()
Check if using pure doc/lit (not wrapped) style.protected void
loadCustomizations
(String path, IClassLocator loc, ValidationContext vctx) Load the customizations file.void
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 Details
-
EXTRA_USAGE_LINES
Ordered array of extra usage lines. -
m_global
Global customizations model root. -
m_wsdlCustom
WSDL customizations model root. -
m_extraTypes
List of extra classes for binding. -
m_useBindings
List of existing bindings for messages. -
m_useSchemas
List of existing schemas for messages. -
m_bindingName
Name used for root binding. -
m_docLit
private boolean m_docLitPure doc/lit (not wrapped) flag.
-
-
Constructor Details
-
WsdlGeneratorCommandLine
public WsdlGeneratorCommandLine()Constructor.
-
-
Method Details
-
getGlobal
Get customizations model root.- Overrides:
getGlobal
in classSchemaGenCommandLine
- Returns:
- customizations
-
getWsdlCustom
Get WSDL customizations model root.- Returns:
- WSDL customizations
-
getBindingName
Get binding name.- Returns:
- name
-
getExtraTypes
Get extra classes to be included in binding.- Returns:
- list
-
getUseBindings
Get existing bindings to be used for message components.- Returns:
- list
-
getUseSchemas
Get existing schemas to be used for message components.- Returns:
- list
-
isDocLit
public boolean isDocLit()Check if using pure doc/lit (not wrapped) style.- Returns:
true
if doc/lit,false
if not
-
checkParameter
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(String path, IClassLocator loc, ValidationContext vctx) throws JiBXException, 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
IOException
-
applyOverrides
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
-