org.apache.geronimo.ews.ws4j2ee.toWs
Class Ws4J2eeServerCLOptionParser

java.lang.Object
  extended byorg.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeServerCLOptionParser
All Implemented Interfaces:
Ws4J2eeDeployContext

public class Ws4J2eeServerCLOptionParser
extends java.lang.Object
implements Ws4J2eeDeployContext

Author:
hemapani

Field Summary
protected static int BINDING_NAME_OPT
          Field BINDING_NAME_OPT
protected  java.lang.String className
          Field className
protected static int CLASSPATH_OPT
           
protected static int CONTAINER_OPT
           
protected  org.apache.axis.wsdl.fromJava.Emitter emitter
          Field emitter
protected static int EXTRA_CLASSES_OPT
          Field EXTRA_CLASSES_OPT
protected static int HELP_OPT
          Field HELP_OPT
protected static int IMPL_CLASS_OPT
          Field IMPL_CLASS_OPT
protected static int IMPL_STYLE_OPT
           
protected static int IMPORT_SCHEMA_OPT
          Field IMPORT_SCHEMA_OPT
protected static int INHERITED_CLASS_OPT
          Field INHERITED_CLASS_OPT
protected static int INPUT_OPT
          Field INPUT_OPT
protected static int LOCATION_IMPORT_OPT
          Field LOCATION_IMPORT_OPT
protected static int LOCATION_OPT
          Field LOCATION_OPT
protected static int METHODS_ALLOWED_OPT
          Field METHODS_ALLOWED_OPT
protected static int METHODS_NOTALLOWED_OPT
          Field METHODS_NOTALLOWED_OPT
protected  int mode
          Field mode
protected static int NAMESPACE_IMPL_OPT
          Field NAMESPACE_IMPL_OPT
protected static int NAMESPACE_OPT
          Field NAMESPACE_OPT
protected  java.util.HashMap namespaceMap
          Field namespaceMap
protected  org.apache.axis.utils.CLOptionDescriptor[] options
          Define the understood options.
protected static int OUTPUT_IMPL_OPT
          Field OUTPUT_IMPL_OPT
protected static int OUTPUT_OPT
          Field OUTPUT_OPT
protected static int OUTPUT_WSDL_MODE_OPT
          Field OUTPUT_WSDL_MODE_OPT
protected static int PACKAGE_OPT
          Field PACKAGE_OPT
protected static int PORTTYPE_NAME_OPT
          Field PORTTYPE_NAME_OPT
protected static int SERVICE_ELEMENT_NAME_OPT
          Field SERVICE_ELEMENT_NAME_OPT
protected static int SERVICE_PORT_NAME_OPT
          Field SERVICE_PORT_NAME_OPT
protected static int SOAPACTION_OPT
          Field SOAPACTION_OPT
protected static int STOP_CLASSES_OPT
          Field STOP_CLASSES_OPT
protected static int STYLE_OPT
          Field STYLE_OPT
protected static int TYPEMAPPING_OPT
          Field TYPEMAPPING_OPT
protected static int USE_OPT
          Field USE_OPT
protected  java.lang.String wsdlFilename
          Field wsdlFilename
protected  java.lang.String wsdlImplFilename
          Field wsdlImplFilename
 
Constructor Summary
Ws4J2eeServerCLOptionParser(org.apache.axis.wsdl.fromJava.Emitter emitter)
           
Ws4J2eeServerCLOptionParser(java.lang.String[] args, org.apache.axis.wsdl.fromJava.Emitter emitter)
          Instantiate a Java2WSDL emitter.
 
Method Summary
protected  void addOptions(org.apache.axis.utils.CLOptionDescriptor[] newOptions)
          addOptions Add option descriptions to the tool.
 java.lang.String getClassName()
           
 java.lang.String getContanier()
           
 java.lang.String getImplStyle()
           
 int getMode()
           
 Module getModule()
           
 java.lang.String getModuleLocation()
           
 java.lang.String getOutPutLocation()
           
 java.util.Map getProperties()
           
 java.lang.String getWsdlFilename()
           
 java.lang.String getWsdlImplFilename()
           
 boolean isCompile()
           
protected  boolean parseOption(org.apache.axis.utils.CLOption option)
          Parse an option
protected  void printUsage()
          printUsage print usage information and quit.
 void setClassName(java.lang.String string)
           
 void setContanier(java.lang.String string)
           
 void setImplStyle(java.lang.String string)
           
 void setMode(int i)
           
 void setModule(Module module)
           
 void setModuleLocation(java.lang.String string)
           
 void setOutPutLocation(java.lang.String string)
           
 void setWsdlFilename(java.lang.String string)
           
 void setWsdlImplFilename(java.lang.String string)
           
protected  boolean validateOptions()
          validateOptions This method is invoked after the options are set to validate the option settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INHERITED_CLASS_OPT

protected static final int INHERITED_CLASS_OPT
Field INHERITED_CLASS_OPT

See Also:
Constant Field Values

SOAPACTION_OPT

protected static final int SOAPACTION_OPT
Field SOAPACTION_OPT

See Also:
Constant Field Values

BINDING_NAME_OPT

protected static final int BINDING_NAME_OPT
Field BINDING_NAME_OPT

See Also:
Constant Field Values

STOP_CLASSES_OPT

protected static final int STOP_CLASSES_OPT
Field STOP_CLASSES_OPT

See Also:
Constant Field Values

IMPORT_SCHEMA_OPT

protected static final int IMPORT_SCHEMA_OPT
Field IMPORT_SCHEMA_OPT

See Also:
Constant Field Values

EXTRA_CLASSES_OPT

protected static final int EXTRA_CLASSES_OPT
Field EXTRA_CLASSES_OPT

See Also:
Constant Field Values

HELP_OPT

protected static final int HELP_OPT
Field HELP_OPT

See Also:
Constant Field Values

IMPL_CLASS_OPT

protected static final int IMPL_CLASS_OPT
Field IMPL_CLASS_OPT

See Also:
Constant Field Values

INPUT_OPT

protected static final int INPUT_OPT
Field INPUT_OPT

See Also:
Constant Field Values

LOCATION_OPT

protected static final int LOCATION_OPT
Field LOCATION_OPT

See Also:
Constant Field Values

LOCATION_IMPORT_OPT

protected static final int LOCATION_IMPORT_OPT
Field LOCATION_IMPORT_OPT

See Also:
Constant Field Values

METHODS_ALLOWED_OPT

protected static final int METHODS_ALLOWED_OPT
Field METHODS_ALLOWED_OPT

See Also:
Constant Field Values

NAMESPACE_OPT

protected static final int NAMESPACE_OPT
Field NAMESPACE_OPT

See Also:
Constant Field Values

NAMESPACE_IMPL_OPT

protected static final int NAMESPACE_IMPL_OPT
Field NAMESPACE_IMPL_OPT

See Also:
Constant Field Values

OUTPUT_OPT

protected static final int OUTPUT_OPT
Field OUTPUT_OPT

See Also:
Constant Field Values

OUTPUT_IMPL_OPT

protected static final int OUTPUT_IMPL_OPT
Field OUTPUT_IMPL_OPT

See Also:
Constant Field Values

PACKAGE_OPT

protected static final int PACKAGE_OPT
Field PACKAGE_OPT

See Also:
Constant Field Values

PORTTYPE_NAME_OPT

protected static final int PORTTYPE_NAME_OPT
Field PORTTYPE_NAME_OPT

See Also:
Constant Field Values

SERVICE_PORT_NAME_OPT

protected static final int SERVICE_PORT_NAME_OPT
Field SERVICE_PORT_NAME_OPT

See Also:
Constant Field Values

SERVICE_ELEMENT_NAME_OPT

protected static final int SERVICE_ELEMENT_NAME_OPT
Field SERVICE_ELEMENT_NAME_OPT

See Also:
Constant Field Values

TYPEMAPPING_OPT

protected static final int TYPEMAPPING_OPT
Field TYPEMAPPING_OPT

See Also:
Constant Field Values

USE_OPT

protected static final int USE_OPT
Field USE_OPT

See Also:
Constant Field Values

OUTPUT_WSDL_MODE_OPT

protected static final int OUTPUT_WSDL_MODE_OPT
Field OUTPUT_WSDL_MODE_OPT

See Also:
Constant Field Values

METHODS_NOTALLOWED_OPT

protected static final int METHODS_NOTALLOWED_OPT
Field METHODS_NOTALLOWED_OPT

See Also:
Constant Field Values

CLASSPATH_OPT

protected static final int CLASSPATH_OPT
See Also:
Constant Field Values

STYLE_OPT

protected static final int STYLE_OPT
Field STYLE_OPT

See Also:
Constant Field Values

IMPL_STYLE_OPT

protected static final int IMPL_STYLE_OPT
See Also:
Constant Field Values

CONTAINER_OPT

protected static final int CONTAINER_OPT
See Also:
Constant Field Values

options

protected org.apache.axis.utils.CLOptionDescriptor[] options
Define the understood options. Each CLOptionDescriptor contains: - The "long" version of the option. Eg, "help" means that "--help" will be recognised. - The option flags, governing the option's argument(s). - The "short" version of the option. Eg, 'h' means that "-h" will be recognised. - A description of the option for the usage message


emitter

protected org.apache.axis.wsdl.fromJava.Emitter emitter
Field emitter


className

protected java.lang.String className
Field className


wsdlFilename

protected java.lang.String wsdlFilename
Field wsdlFilename


wsdlImplFilename

protected java.lang.String wsdlImplFilename
Field wsdlImplFilename


namespaceMap

protected java.util.HashMap namespaceMap
Field namespaceMap


mode

protected int mode
Field mode

Constructor Detail

Ws4J2eeServerCLOptionParser

public Ws4J2eeServerCLOptionParser(java.lang.String[] args,
                                   org.apache.axis.wsdl.fromJava.Emitter emitter)
Instantiate a Java2WSDL emitter.


Ws4J2eeServerCLOptionParser

public Ws4J2eeServerCLOptionParser(org.apache.axis.wsdl.fromJava.Emitter emitter)
Method Detail

getOutPutLocation

public java.lang.String getOutPutLocation()
Specified by:
getOutPutLocation in interface Ws4J2eeDeployContext
Returns:

setOutPutLocation

public void setOutPutLocation(java.lang.String string)
Parameters:
string -

addOptions

protected void addOptions(org.apache.axis.utils.CLOptionDescriptor[] newOptions)
addOptions Add option descriptions to the tool. Allows extended classes to add additional options.

Parameters:
newOptions - CLOptionDescriptor[] the options

parseOption

protected boolean parseOption(org.apache.axis.utils.CLOption option)
Parse an option

Parameters:
option - CLOption is the option
Returns:

validateOptions

protected boolean validateOptions()
validateOptions This method is invoked after the options are set to validate the option settings.

Returns:

printUsage

protected void printUsage()
printUsage print usage information and quit.


getWsdlFilename

public java.lang.String getWsdlFilename()
Returns:

setWsdlFilename

public void setWsdlFilename(java.lang.String string)
Parameters:
string -

getClassName

public java.lang.String getClassName()
Returns:

setClassName

public void setClassName(java.lang.String string)
Parameters:
string -

getMode

public int getMode()
Specified by:
getMode in interface Ws4J2eeDeployContext
Returns:

getWsdlImplFilename

public java.lang.String getWsdlImplFilename()
Specified by:
getWsdlImplFilename in interface Ws4J2eeDeployContext
Returns:

setMode

public void setMode(int i)
Parameters:
i -

setWsdlImplFilename

public void setWsdlImplFilename(java.lang.String string)
Parameters:
string -

getModule

public Module getModule()
Specified by:
getModule in interface Ws4J2eeDeployContext
Returns:

getModuleLocation

public java.lang.String getModuleLocation()
Specified by:
getModuleLocation in interface Ws4J2eeDeployContext
Returns:

setModule

public void setModule(Module module)
Parameters:
module -

setModuleLocation

public void setModuleLocation(java.lang.String string)
Parameters:
string -

getContanier

public java.lang.String getContanier()
Specified by:
getContanier in interface Ws4J2eeDeployContext
Returns:

getImplStyle

public java.lang.String getImplStyle()
Specified by:
getImplStyle in interface Ws4J2eeDeployContext
Returns:

setContanier

public void setContanier(java.lang.String string)
Parameters:
string -

setImplStyle

public void setImplStyle(java.lang.String string)
Parameters:
string -

isCompile

public boolean isCompile()
Specified by:
isCompile in interface Ws4J2eeDeployContext

getProperties

public java.util.Map getProperties()
Specified by:
getProperties in interface Ws4J2eeDeployContext


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.