Package org.apache.axis2.tool.ant
Class Java2WSDLTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.axis2.tool.ant.Java2WSDLTask
-
- All Implemented Interfaces:
Cloneable
,Java2WSDLConstants
- Direct Known Subclasses:
Java2WSDLTask
public class Java2WSDLTask extends org.apache.tools.ant.Task implements Java2WSDLConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Java2WSDLTask.ExtraClass
-
Field Summary
Fields Modifier and Type Field Description static String
CLOSE_BRACKET
static String
COMMA
static String
OPEN_BRACKET
-
Fields inherited from interface org.apache.axis2.description.java2wsdl.Java2WSDLConstants
ATTR_FORM_DEFAULT_OPTION, ATTR_FORM_DEFAULT_OPTION_LONG, ATTRIBUTE_NAME, AXIS2_NAMESPACE_PREFIX, AXIS2_XSD, BINDING_LOCAL_NAME, BINDING_NAME_SUFFIX, CLASSNAME_OPTION, CLASSNAME_OPTION_LONG, CLASSPATH_OPTION, CLASSPATH_OPTION_LONG, COLON_SEPARATOR, CUSTOM_SCHEMA_LOCATION, CUSTOM_SCHEMA_LOCATION_LONG, DEFAULT_LOCATION_URL, DEFAULT_SCHEMA_NAMESPACE_PREFIX, DEFAULT_TARGET_NAMESPACE, DEFAULT_TARGET_NAMESPACE_PREFIX, DEFAULT_WSDL_NAMESPACE_PREFIX, DISABLE_BINDING_REST, DISABLE_BINDING_SOAP11, DISABLE_BINDING_SOAP12, DISALLOW_ANON_TYPES_OPTION, DISALLOW_ANON_TYPES_OPTION_LONG, DISALLOW_NILLABLE_ELEMENTS_OPTION, DISALLOW_NILLABLE_ELEMENTS_OPTION_LONG, DISALLOW_OPTIONAL_ELEMENTS_OPTION, DISALLOW_OPTIONAL_ELEMENTS_OPTION_LONG, DOC_LIT_BARE, DOC_LIT_BARE_LONG, DOC_LIT_BARE_PARAMETER, DOCUMENT, ELEMENT_ATTRIBUTE_NAME, ELEMENT_FORM_DEFAULT_OPTION, ELEMENT_FORM_DEFAULT_OPTION_LONG, EXTRA_CLASSES_DEFAULT_OPTION, EXTRA_CLASSES_DEFAULT_OPTION_LONG, FAULT_LOCAL_NAME, FAULT_MESSAGE, FORM_DEFAULT_QUALIFIED, FORM_DEFAULT_UNQUALIFIED, HTTP_BINDING, HTTP_NAMESPACE, HTTP_PORT, HTTP_PREFIX, IN_PUT_LOCAL_NAME, JAVA_PKG_2_NSMAP_OPTION, JAVA_PKG_2_NSMAP_OPTION_LONG, JAX_WS_SERVICE_OPTION, JAX_WS_SERVICE_OPTION_LONG, LITERAL, LOCATION, LOCATION_OPTION, LOCATION_OPTION_LONG, MESSAGE_LOCAL_NAME, MESSAGE_PART_NAME_OPTION, MESSAGE_PART_NAME_OPTION_LONG, MESSAGE_SUFFIX, MIME_NAMESPACE, MIME_PREFIX, NAMESPACE_GENERATOR_OPTION, NAMESPACE_GENERATOR_OPTION_LONG, OPERATION_LOCAL_NAME, OUT_PUT_LOCAL_NAME, OUTPUT_FILENAME_OPTION, OUTPUT_FILENAME_OPTION_LONG, OUTPUT_LOCATION_OPTION, OUTPUT_LOCATION_OPTION_LONG, PARAMETERS, PART_ATTRIBUTE_NAME, PORT, PORT_NAME_SUFFIX, PORT_TYPE_LOCAL_NAME, PORT_TYPE_NAME_OPTION, PORT_TYPE_NAME_OPTION_LONG, PORT_TYPE_SUFFIX, REQUEST, REQUEST_ELEMENT_SUFFIX_OPTION, REQUEST_ELEMENT_SUFFIX_OPTION_LONG, REQUEST_MESSAGE, RESPONSE, RESPONSE_MESSAGE, REST_BINDING_NAME_OPTION_LONG, RESULT, SCHEMA_GENERATOR_OPTION, SCHEMA_GENERATOR_OPTION_LONG, SCHEMA_MAPPING_FILE_LOCATION, SCHEMA_MAPPING_FILE_LOCATION_LONG, SCHEMA_NAMESPACE_PRFIX, SCHEMA_TARGET_NAMESPACE_OPTION, SCHEMA_TARGET_NAMESPACE_OPTION_LONG, SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION, SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION_LONG, SERVICE_LOCAL_NAME, SERVICE_NAME_OPTION, SERVICE_NAME_OPTION_LONG, SOAP_ACTION, SOAP_ADDRESS, SOAP_BODY, SOAP_USE, SOAP11_BINDING_NAME_OPTION_LONG, SOAP11_PREFIX, SOAP11PORT, SOAP12_BINDING_NAME_OPTION_LONG, SOAP12_PREFIX, SOAP12BINDING_NAME_SUFFIX, SOAP12PORT, SOLE_INPUT, STYLE, STYLE_OPTION, STYLE_OPTION_LONG, TARGET_NAMESPACE_OPTION, TARGET_NAMESPACE_OPTION_LONG, TARGET_NAMESPACE_PREFIX_OPTION, TARGET_NAMESPACE_PREFIX_OPTION_LONG, TARGETNAMESPACE_PREFIX, TRANSPORT, TRANSPORT_URI, URI_2001_SCHEMA_XSD, URI_WSDL11_SOAP, URI_WSDL12_SOAP, URN_PREFIX, USE_OPTION, USE_OPTION_LONG, WSAD_NS, WSDL_NAMESPACE, WSDL_VERSION_1, WSDL_VERSION_2, WSDL_VERSION_2_OPTIONAL, WSDL_VERSION_OPTION, WSDL_VERSION_OPTION_LONG
-
-
Constructor Summary
Constructors Constructor Description Java2WSDLTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(NamespaceMapping mapping)
add a mapping of namespaces to packagesvoid
addMappingSet(MappingSet mappingset)
add a mapping of namespaces to packagesorg.apache.tools.ant.types.Path
createClasspath()
Set the optional classpathJava2WSDLTask.ExtraClass
createExtraClass()
void
execute()
String
getAttrFormDefault()
String
getDocLitBare()
String
getElementFormDefault()
String[]
getExtraClasses()
String
getLocationUri()
String
getNsGenClassName()
ArrayList
getPkg2nsMappings()
String
getSchemaGenClassName()
String
getStyle()
String
getUse()
String
getWSDLVersion()
void
loadPkg2NsMap()
void
setAttrFormDefault(String attrFormDefault)
void
setClassName(String className)
void
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the optional classpathvoid
setClasspathRef(org.apache.tools.ant.types.Reference r)
Set the reference to an optional classpathvoid
setDocLitBare(String docLitBare)
void
setElementFormDefault(String elementFormDefault)
void
setExtraClasses(String extraClasses)
void
setLocationUri(String locationUri)
void
setNsGenClassName(String nsGenClassName)
void
setOutputFileName(String outputFileName)
void
setOutputLocation(String outputLocation)
void
setPkg2nsMappings(ArrayList pkg2nsMappings)
void
setSchemaGenClassName(String schemaGenClassName)
void
setSchemaTargetNamespace(String schemaTargetNamespace)
void
setSchemaTargetNamespacePrefix(String schemaTargetNamespacePrefix)
void
setServiceName(String serviceName)
void
setStyle(String style)
void
setTargetNamespace(String targetNamespace)
void
setTargetNamespacePrefix(String targetNamespacePrefix)
void
setUse(String use)
void
setWSDLVersion(String wsdlVersion)
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
OPEN_BRACKET
public static final String OPEN_BRACKET
- See Also:
- Constant Field Values
-
CLOSE_BRACKET
public static final String CLOSE_BRACKET
- See Also:
- Constant Field Values
-
COMMA
public static final String COMMA
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLocationUri
public String getLocationUri()
-
setLocationUri
public void setLocationUri(String locationUri)
-
getStyle
public String getStyle()
-
setStyle
public void setStyle(String style)
-
getUse
public String getUse()
-
setUse
public void setUse(String use)
-
execute
public void execute() throws org.apache.tools.ant.BuildException
- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
setClassName
public void setClassName(String className)
-
setOutputLocation
public void setOutputLocation(String outputLocation)
-
setTargetNamespace
public void setTargetNamespace(String targetNamespace)
-
setTargetNamespacePrefix
public void setTargetNamespacePrefix(String targetNamespacePrefix)
-
setSchemaTargetNamespace
public void setSchemaTargetNamespace(String schemaTargetNamespace)
-
setSchemaTargetNamespacePrefix
public void setSchemaTargetNamespacePrefix(String schemaTargetNamespacePrefix)
-
setServiceName
public void setServiceName(String serviceName)
-
setOutputFileName
public void setOutputFileName(String outputFileName)
-
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path classpath)
Set the optional classpath- Parameters:
classpath
- the classpath to use when loading class
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
Set the optional classpath- Returns:
- a path instance to be configured by the Ant core.
-
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
Set the reference to an optional classpath- Parameters:
r
- the id of the Ant path instance to act as the classpath
-
getAttrFormDefault
public String getAttrFormDefault()
-
setAttrFormDefault
public void setAttrFormDefault(String attrFormDefault)
-
getElementFormDefault
public String getElementFormDefault()
-
setElementFormDefault
public void setElementFormDefault(String elementFormDefault)
-
getExtraClasses
public String[] getExtraClasses()
-
setExtraClasses
public void setExtraClasses(String extraClasses)
-
createExtraClass
public Java2WSDLTask.ExtraClass createExtraClass()
-
getNsGenClassName
public String getNsGenClassName()
-
setNsGenClassName
public void setNsGenClassName(String nsGenClassName)
-
getSchemaGenClassName
public String getSchemaGenClassName()
-
setSchemaGenClassName
public void setSchemaGenClassName(String schemaGenClassName)
-
loadPkg2NsMap
public void loadPkg2NsMap()
-
getPkg2nsMappings
public ArrayList getPkg2nsMappings()
-
setPkg2nsMappings
public void setPkg2nsMappings(ArrayList pkg2nsMappings)
-
addMapping
public void addMapping(NamespaceMapping mapping)
add a mapping of namespaces to packages
-
addMappingSet
public void addMappingSet(MappingSet mappingset)
add a mapping of namespaces to packages
-
getDocLitBare
public String getDocLitBare()
-
setDocLitBare
public void setDocLitBare(String docLitBare)
-
getWSDLVersion
public String getWSDLVersion()
-
setWSDLVersion
public void setWSDLVersion(String wsdlVersion)
-
-