org.jibx.ws.wsdl.tools
Class WsdlGeneratorCommandLine

java.lang.Object
  extended by org.jibx.custom.CustomizationCommandLineBase
      extended by org.jibx.custom.classes.ClassCustomizationBase
          extended by org.jibx.schema.generator.SchemaGenCommandLine
              extended by org.jibx.ws.wsdl.tools.WsdlGeneratorCommandLine

public class WsdlGeneratorCommandLine
extends SchemaGenCommandLine

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
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  boolean m_docLit
          Pure doc/lit (not wrapped) flag.
private  java.util.List m_extraTypes
          List of extra classes for binding.
private  GlobalCustom m_global
          Global customizations model root.
private  java.util.List m_useBindings
          List of existing bindings for messages.
private  java.util.List m_useSchemas
          List of existing schemas for messages.
private  WsdlCustom m_wsdlCustom
          WSDL customizations model root.
 
Fields inherited from class org.jibx.custom.CustomizationCommandLineBase
STRING_PARAMETER_ARRAY, STRING_UNMARSHALLER_PARAMETER_ARRAY
 
Constructor Summary
WsdlGeneratorCommandLine()
          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 if an extension parameter is recognized.
 java.lang.String getBindingName()
          Get binding name.
 java.util.List getExtraTypes()
          Get extra classes to be included in binding.
 GlobalCustom getGlobal()
          Get customizations model root.
 java.util.List getUseBindings()
          Get existing bindings to be used for message components.
 java.util.List getUseSchemas()
          Get existing schemas to be used for message components.
 WsdlCustom getWsdlCustom()
          Get WSDL customizations model root.
 boolean isDocLit()
          Check if using pure doc/lit (not wrapped) style.
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTRA_USAGE_LINES

private static final java.lang.String[] EXTRA_USAGE_LINES
Ordered array of extra usage lines.


m_global

private GlobalCustom m_global
Global customizations model root.


m_wsdlCustom

private WsdlCustom m_wsdlCustom
WSDL customizations model root.


m_extraTypes

private java.util.List m_extraTypes
List of extra classes for binding.


m_useBindings

private java.util.List m_useBindings
List of existing bindings for messages.


m_useSchemas

private java.util.List m_useSchemas
List of existing schemas for messages.


m_bindingName

private java.lang.String m_bindingName
Name used for root binding.


m_docLit

private boolean m_docLit
Pure doc/lit (not wrapped) flag.

Constructor Detail

WsdlGeneratorCommandLine

public WsdlGeneratorCommandLine()
Constructor.

Method Detail

getGlobal

public GlobalCustom getGlobal()
Get customizations model root.

Overrides:
getGlobal in class SchemaGenCommandLine
Returns:
customizations

getWsdlCustom

public WsdlCustom getWsdlCustom()
Get WSDL customizations model root.

Returns:
WSDL customizations

getBindingName

public java.lang.String getBindingName()
Get binding name.

Returns:
name

getExtraTypes

public java.util.List getExtraTypes()
Get extra classes to be included in binding.

Returns:
list

getUseBindings

public java.util.List getUseBindings()
Get existing bindings to be used for message components.

Returns:
list

getUseSchemas

public java.util.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

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 returns false..

Overrides:
checkParameter in class SchemaGenCommandLine
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 class SchemaGenCommandLine
Parameters:
path - customizations file path, null if none
loc - class locator
vctx - 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 class SchemaGenCommandLine
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 class SchemaGenCommandLine


Project Web Site