Package org.apache.axis.wsdl.fromJava
Class Emitter
- java.lang.Object
-
- org.apache.axis.wsdl.fromJava.Emitter
-
public class Emitter extends java.lang.ObjectThis class emits WSDL from Java classes. It is used by the ?WSDL Axis browser function and Java2WSDL commandline utility. See Java2WSDL and Java2WSDLFactory for more information.- Author:
- Glen Daniels (gdaniels@apache.org), Rich Scheuerle (scheu@us.ibm.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.LoglogField logstatic intMODE_ALLField MODE_ALLstatic intMODE_DOC_WRAPPEDDEPRECATED - Indicates style=wrapped use=literalstatic intMODE_DOCUMENTDEPRECATED - Indicates style=document use=literalstatic intMODE_IMPLEMENTATIONField MODE_IMPLEMENTATIONstatic intMODE_INTERFACEField MODE_INTERFACEstatic intMODE_RPCDEPRECATED - Indicates style=rpc use=encodedprotected static TypeMappingstandardTypesField standardTypesprotected TypestypesField types
-
Constructor Summary
Constructors Constructor Description Emitter()Construct Emitter.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected javax.wsdl.DefinitioncreateDefinition()Build a Definition from the input wsdl file or create a new Definitionprotected org.w3c.dom.ElementcreateDocumentationElement(java.lang.String documentation)Create a documentation elementprotected QNamecreateMessageName(javax.wsdl.Definition def, java.lang.String methodName)Method createMessageNameprotected TypescreateTypes(javax.wsdl.Definition def)Build a Types object and load the input wsdl typesorg.w3c.dom.Documentemit(int mode)Generates a WSDL document for a givenClass.voidemit(java.lang.String filename)Generates a complete WSDL document for a givenClassvoidemit(java.lang.String filename, int mode)Generates a WSDL document for a givenClass.voidemit(java.lang.String filename1, java.lang.String filename2)Generates WSDL documents for a givenClassjava.lang.StringemitToString(int mode)Generates a String containing the WSDL for a givenClass.java.util.VectorgetAllowedMethods()Returns a vector of methods to exportjava.lang.StringgetBindingName()Returns the String representation of the binding namejava.lang.ClassgetCls()Returns theClassto exportTypeMappinggetDefaultTypeMapping()Deprecated.Use getTypeMappingRegistry insteadjava.lang.StringgetDescription()Returns the service descriptionjava.util.VectorgetDisallowedMethods()Return list of methods that should not be exportedjava.lang.Class[]getExtraClasses()Return the list of extra classes that the emitter will produce WSDL for.java.lang.ClassgetImplCls()Returns the implementationClassif setjava.lang.StringgetImplNamespace()Returns the implementation namespacejavax.wsdl.DefinitiongetImplWSDL()Get implementation WSDLDefinitionfor the current configuration parametersjava.lang.StringgetImportUrl()Returns the String representation of the interface import location URLjava.lang.StringgetInputSchema()java.lang.StringgetInputWSDL()Get the name of the input WSDLjava.lang.StringgetIntfNamespace()Returns the interface namespacejavax.wsdl.DefinitiongetIntfWSDL()Get a interface WSDLDefinitionfor the current configuration parametersjava.lang.StringgetLocationUrl()Returns the String representation of the service endpoint URLintgetMode()Deprecated.(use getStyle and getUse)java.util.MapgetNamespaceMap()get the packagename to namespace mapjava.lang.StringgetPortTypeName()Returns the String representation of the portType namejava.util.HashMapgetQName2ClassMap()Return the type qname to java type mappingprotected QNamegetRequestQName(OperationDesc oper)Method getRequestQNameprotected QNamegetResponseQName(OperationDesc oper)Method getResponseQNameServiceDescgetServiceDesc()Method getServiceDescjava.lang.StringgetServiceElementName()Returns the String representation of the service element namejava.lang.StringgetServicePortName()Returns the String representation of the service port namejava.lang.StringgetSoapAction()Returns the soapAction option valuejava.util.ArrayListgetStopClasses()Return the list of classes which stop inhertance searchesStylegetStyle()getStylejava.lang.StringgetTargetService()Returns the target service nameTypeMappinggetTypeMapping()Returns theTypeMappingused by the serviceUsegetUse()getUsebooleangetUseInheritedMethods()Indicates if the emitter will search classes for inherited methodsjava.lang.StringgetVersionMessage()Return the version messagejavax.wsdl.DefinitiongetWSDL()Get a Full WSDLDefinitionfor the current configuration parametersprotected voidinit(int mode)Invoked prior to building a definition to ensure parms and data are set up.protected voidprettyDocumentToFile(org.w3c.dom.Document doc, java.lang.String filename)Write a prettified document to a file.voidsetAllowedMethods(java.lang.String text)Add a list of methods to exportvoidsetAllowedMethods(java.util.Vector allowedMethods)Add a Vector of methods to exportvoidsetBindingName(java.lang.String bindingName)Set the String representation of the binding namevoidsetCls(java.lang.Class cls)Sets theClassto exportvoidsetCls(java.lang.String className)Sets theClassto exportvoidsetClsSmart(java.lang.Class cls, java.lang.String location)Sets theClassto export.voidsetDefaultTypeMapping(TypeMapping tm)Deprecated.Use setTypeMappingRegistry insteadvoidsetDescription(java.lang.String description)Set the service descriptionvoidsetDisallowedMethods(java.lang.String text)Add a list of methods NOT to exportvoidsetDisallowedMethods(java.util.Vector disallowedMethods)Add a list of methods NOT to exportvoidsetEmitAllTypes(boolean emitAllTypes)voidsetExtraClasses(java.lang.Class[] extraClasses)Provide a list of classes which the emitter will produce WSDL type definitions for.voidsetExtraClasses(java.lang.String text)Provide a comma or space seperated list of classes which the emitter will produce WSDL type definitions for.voidsetImplCls(java.lang.Class implCls)Sets the implementationClassvoidsetImplCls(java.lang.String className)Sets the implementationClassvoidsetImplNamespace(java.lang.String ns)Set the implementation namespacevoidsetImportUrl(java.lang.String importUrl)Set the String representation of the interface location URL for importingvoidsetInputSchema(java.lang.String inputSchema)Set the name of the input schemavoidsetInputWSDL(java.lang.String inputWSDL)Set the name of the input WSDLvoidsetIntfNamespace(java.lang.String ns)Set the interface namespacevoidsetLocationUrl(java.lang.String locationUrl)Set the String representation of the service endpoint URLvoidsetMode(int mode)Deprecated.(use setStyle and setUse)voidsetNamespaceMap(java.util.Map map)Set the packagename to namespace map with the given mapvoidsetPortTypeName(java.lang.String portTypeName)Set the String representation of the portType namevoidsetServiceDesc(ServiceDesc serviceDesc)Method setServiceDescvoidsetServiceElementName(java.lang.String serviceElementName)Set the String representation of the service element namevoidsetServicePortName(java.lang.String servicePortName)Set the String representation of the service port namevoidsetSoapAction(java.lang.String value)Sets the soapAction option valuevoidsetStopClasses(java.lang.String text)Add a list of classes (fully qualified) that will stop the traversal of the inheritance tree if encounter in method or complex type generationvoidsetStopClasses(java.util.ArrayList stopClasses)Adds a list of classes (fully qualified) that will stop the traversal of the inheritance tree if encounter in method or complex type generationvoidsetStyle(java.lang.String value)setStylevoidsetStyle(Style value)setStylevoidsetTargetService(java.lang.String targetService)Set the target service namevoidsetTypeMapping(TypeMapping tm)Sets theTypeMappingused by the servicevoidsetTypeMappingRegistry(TypeMappingRegistry tmr)Set the TypeMappingRegistry for this Emitter.voidsetUse(java.lang.String value)setUsevoidsetUse(Use value)setUsevoidsetUseInheritedMethods(boolean useInheritedMethods)Turn on or off inherited method WSDL generation.voidsetVersionMessage(java.lang.String versionMessage)Set the version message that appears at the top of the WSDL If not set, we use the default version message.protected javax.wsdl.BindingwriteBinding(javax.wsdl.Definition def, boolean add)Create the binding.protected javax.wsdl.BindingOperationwriteBindingOperation(javax.wsdl.Definition def, javax.wsdl.Binding binding, javax.wsdl.Operation oper, OperationDesc desc)Create a Binding Operationprotected voidwriteDefinitions(javax.wsdl.Definition def, java.lang.String tns)Create the definition header information.protected javax.wsdl.MessagewriteFaultMessage(javax.wsdl.Definition def, FaultDesc exception)Create a Fault Messageprotected voidwriteImport(javax.wsdl.Definition def, java.lang.String tns, java.lang.String loc)Create and add an importprotected voidwriteMessages(javax.wsdl.Definition def, javax.wsdl.Operation oper, OperationDesc desc, javax.wsdl.BindingOperation bindingOper)Create a Messageprotected javax.wsdl.BindingOperationwriteOperation(javax.wsdl.Definition def, javax.wsdl.Binding binding, OperationDesc desc)Create a Operationjava.lang.StringwritePartToMessage(javax.wsdl.Definition def, javax.wsdl.Message msg, boolean request, ParameterDesc param)Create a Partprotected voidwritePortType(javax.wsdl.Definition def, javax.wsdl.Binding binding)Create a PortTypeprotected javax.wsdl.MessagewriteRequestMessage(javax.wsdl.Definition def, OperationDesc oper, javax.wsdl.BindingOperation bindop)Create a Request Messageprotected javax.wsdl.MessagewriteResponseMessage(javax.wsdl.Definition def, OperationDesc desc, javax.wsdl.BindingOperation bindop)Create a Response Messageprotected voidwriteService(javax.wsdl.Definition def, javax.wsdl.Binding binding)Create the service.protected javax.wsdl.extensions.ExtensibilityElementwriteSOAPBody(QName operQName)Method writeSOAPBodyprotected javax.wsdl.extensions.soap.SOAPFaultwriteSOAPFault(FaultDesc faultDesc)Method writeSOAPFaultprotected javax.wsdl.extensions.soap.SOAPHeaderwriteSOAPHeader(ParameterDesc p, QName messageQName, java.lang.String partName)Create a SOAPHeader elementjava.lang.StringwriteWrapperPart(javax.wsdl.Definition def, javax.wsdl.Message msg, OperationDesc oper, boolean request)Write out the schema definition for a WRAPPED operation request or response.
-
-
-
Field Detail
-
log
protected static org.apache.commons.logging.Log log
Field log
-
MODE_ALL
public static final int MODE_ALL
Field MODE_ALL- See Also:
- Constant Field Values
-
MODE_INTERFACE
public static final int MODE_INTERFACE
Field MODE_INTERFACE- See Also:
- Constant Field Values
-
MODE_IMPLEMENTATION
public static final int MODE_IMPLEMENTATION
Field MODE_IMPLEMENTATION- See Also:
- Constant Field Values
-
types
protected Types types
Field types
-
MODE_RPC
public static final int MODE_RPC
DEPRECATED - Indicates style=rpc use=encoded- See Also:
- Constant Field Values
-
MODE_DOCUMENT
public static final int MODE_DOCUMENT
DEPRECATED - Indicates style=document use=literal- See Also:
- Constant Field Values
-
MODE_DOC_WRAPPED
public static final int MODE_DOC_WRAPPED
DEPRECATED - Indicates style=wrapped use=literal- See Also:
- Constant Field Values
-
standardTypes
protected static TypeMapping standardTypes
Field standardTypes
-
-
Method Detail
-
emit
public void emit(java.lang.String filename1, java.lang.String filename2) throws java.io.IOException, javax.wsdl.WSDLException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationExceptionGenerates WSDL documents for a givenClass- Parameters:
filename1- interface WSDLfilename2- implementation WSDL- Throws:
java.io.IOExceptionjavax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException
-
emit
public void emit(java.lang.String filename) throws java.io.IOException, javax.wsdl.WSDLException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationExceptionGenerates a complete WSDL document for a givenClass- Parameters:
filename- WSDL- Throws:
java.io.IOExceptionjavax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException
-
emit
public org.w3c.dom.Document emit(int mode) throws java.io.IOException, javax.wsdl.WSDLException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationExceptionGenerates a WSDL document for a givenClass. The WSDL generated is controlled by the mode parameter mode 0: All mode 1: Interface mode 2: Implementation- Parameters:
mode- generation mode - all, interface, implementation- Returns:
- Document
- Throws:
java.io.IOExceptionjavax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException
-
emitToString
public java.lang.String emitToString(int mode) throws java.io.IOException, javax.wsdl.WSDLException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationExceptionGenerates a String containing the WSDL for a givenClass. The WSDL generated is controlled by the mode parameter mode 0: All mode 1: Interface mode 2: Implementation- Parameters:
mode- generation mode - all, interface, implementation- Returns:
- String
- Throws:
java.io.IOExceptionjavax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException
-
emit
public void emit(java.lang.String filename, int mode) throws java.io.IOException, javax.wsdl.WSDLException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationExceptionGenerates a WSDL document for a givenClass. The WSDL generated is controlled by the mode parameter mode 0: All mode 1: Interface mode 2: Implementation- Parameters:
filename- WSDLmode- generation mode - all, interface, implementation- Throws:
java.io.IOExceptionjavax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException
-
getWSDL
public javax.wsdl.Definition getWSDL() throws java.io.IOException, javax.wsdl.WSDLException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationExceptionGet a Full WSDLDefinitionfor the current configuration parameters- Returns:
- WSDL
Definition - Throws:
java.io.IOExceptionjavax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException
-
getIntfWSDL
public javax.wsdl.Definition getIntfWSDL() throws java.io.IOException, javax.wsdl.WSDLException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationExceptionGet a interface WSDLDefinitionfor the current configuration parameters- Returns:
- WSDL
Definition - Throws:
java.io.IOExceptionjavax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException
-
getImplWSDL
public javax.wsdl.Definition getImplWSDL() throws java.io.IOException, javax.wsdl.WSDLException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationExceptionGet implementation WSDLDefinitionfor the current configuration parameters- Returns:
- WSDL
Definition - Throws:
java.io.IOExceptionjavax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException
-
init
protected void init(int mode)
Invoked prior to building a definition to ensure parms and data are set up.- Parameters:
mode-
-
createDefinition
protected javax.wsdl.Definition createDefinition() throws javax.wsdl.WSDLException, org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationExceptionBuild a Definition from the input wsdl file or create a new Definition- Returns:
- WSDL Definition
- Throws:
javax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationException
-
createTypes
protected Types createTypes(javax.wsdl.Definition def) throws java.io.IOException, javax.wsdl.WSDLException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
Build a Types object and load the input wsdl types- Parameters:
def- Corresponding wsdl Definition- Returns:
- Types object
- Throws:
java.io.IOExceptionjavax.wsdl.WSDLExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException
-
createDocumentationElement
protected org.w3c.dom.Element createDocumentationElement(java.lang.String documentation)
Create a documentation element- Parameters:
documentation-- Returns:
-
writeDefinitions
protected void writeDefinitions(javax.wsdl.Definition def, java.lang.String tns)Create the definition header information.- Parameters:
def-Definitiontns- target namespace
-
writeImport
protected void writeImport(javax.wsdl.Definition def, java.lang.String tns, java.lang.String loc)Create and add an import- Parameters:
def-Definitiontns- target namespaceloc- target location
-
writeBinding
protected javax.wsdl.Binding writeBinding(javax.wsdl.Definition def, boolean add)Create the binding.- Parameters:
def-Definitionadd- true if binding should be added to the def- Returns:
-
writeService
protected void writeService(javax.wsdl.Definition def, javax.wsdl.Binding binding)Create the service.- Parameters:
def-binding-
-
writePortType
protected void writePortType(javax.wsdl.Definition def, javax.wsdl.Binding binding) throws javax.wsdl.WSDLException, AxisFaultCreate a PortType- Parameters:
def-binding-- Throws:
javax.wsdl.WSDLExceptionAxisFault
-
writeMessages
protected void writeMessages(javax.wsdl.Definition def, javax.wsdl.Operation oper, OperationDesc desc, javax.wsdl.BindingOperation bindingOper) throws javax.wsdl.WSDLException, AxisFaultCreate a Message- Parameters:
def- Definition, the WSDL definitionoper- Operation, the wsdl operationdesc- OperationDesc, the Operation DescriptionbindingOper- BindingOperation, corresponding Binding Operation- Throws:
javax.wsdl.WSDLExceptionAxisFault
-
writeOperation
protected javax.wsdl.BindingOperation writeOperation(javax.wsdl.Definition def, javax.wsdl.Binding binding, OperationDesc desc)Create a Operation- Parameters:
def-binding-desc-- Returns:
-
writeBindingOperation
protected javax.wsdl.BindingOperation writeBindingOperation(javax.wsdl.Definition def, javax.wsdl.Binding binding, javax.wsdl.Operation oper, OperationDesc desc)Create a Binding Operation- Parameters:
def-binding-oper-desc-- Returns:
-
writeSOAPHeader
protected javax.wsdl.extensions.soap.SOAPHeader writeSOAPHeader(ParameterDesc p, QName messageQName, java.lang.String partName)
Create a SOAPHeader element
-
writeSOAPBody
protected javax.wsdl.extensions.ExtensibilityElement writeSOAPBody(QName operQName)
Method writeSOAPBody- Parameters:
operQName-- Returns:
-
writeSOAPFault
protected javax.wsdl.extensions.soap.SOAPFault writeSOAPFault(FaultDesc faultDesc)
Method writeSOAPFault- Parameters:
faultDesc-- Returns:
-
writeRequestMessage
protected javax.wsdl.Message writeRequestMessage(javax.wsdl.Definition def, OperationDesc oper, javax.wsdl.BindingOperation bindop) throws javax.wsdl.WSDLException, AxisFaultCreate a Request Message- Parameters:
def-oper-- Returns:
- Throws:
javax.wsdl.WSDLExceptionAxisFault
-
getRequestQName
protected QName getRequestQName(OperationDesc oper)
Method getRequestQName- Parameters:
oper-- Returns:
-
getResponseQName
protected QName getResponseQName(OperationDesc oper)
Method getResponseQName- Parameters:
oper-- Returns:
-
writeWrapperPart
public java.lang.String writeWrapperPart(javax.wsdl.Definition def, javax.wsdl.Message msg, OperationDesc oper, boolean request) throws AxisFaultWrite out the schema definition for a WRAPPED operation request or response.- Parameters:
def-msg-oper-request-- Returns:
- the name of the part the was written
- Throws:
AxisFault
-
writeResponseMessage
protected javax.wsdl.Message writeResponseMessage(javax.wsdl.Definition def, OperationDesc desc, javax.wsdl.BindingOperation bindop) throws javax.wsdl.WSDLException, AxisFaultCreate a Response Message- Parameters:
def-desc-- Returns:
- Throws:
javax.wsdl.WSDLExceptionAxisFault
-
writeFaultMessage
protected javax.wsdl.Message writeFaultMessage(javax.wsdl.Definition def, FaultDesc exception) throws javax.wsdl.WSDLException, AxisFaultCreate a Fault Message- Parameters:
def-exception- (an ExceptionRep object)- Returns:
- Throws:
javax.wsdl.WSDLExceptionAxisFault
-
writePartToMessage
public java.lang.String writePartToMessage(javax.wsdl.Definition def, javax.wsdl.Message msg, boolean request, ParameterDesc param) throws javax.wsdl.WSDLException, AxisFaultCreate a Part- Parameters:
def-msg-request- message is for a requestparam- ParamRep object- Returns:
- The parameter name added or null
- Throws:
javax.wsdl.WSDLExceptionAxisFault
-
createMessageName
protected QName createMessageName(javax.wsdl.Definition def, java.lang.String methodName)
Method createMessageName- Parameters:
def-methodName-- Returns:
-
prettyDocumentToFile
protected void prettyDocumentToFile(org.w3c.dom.Document doc, java.lang.String filename) throws java.io.IOExceptionWrite a prettified document to a file.- Parameters:
doc- the Document to writefilename- the name of the file to be written- Throws:
java.io.IOException- various file i/o exceptions
-
getCls
public java.lang.Class getCls()
Returns theClassto export- Returns:
- the
Classto export
-
setCls
public void setCls(java.lang.Class cls)
Sets theClassto export- Parameters:
cls- theClassto export
-
setClsSmart
public void setClsSmart(java.lang.Class cls, java.lang.String location)Sets theClassto export.- Parameters:
cls- theClassto exportlocation-
-
setCls
public void setCls(java.lang.String className) throws java.lang.ClassNotFoundExceptionSets theClassto export- Parameters:
className- the name of theClassto export- Throws:
java.lang.ClassNotFoundException
-
getImplCls
public java.lang.Class getImplCls()
Returns the implementationClassif set- Returns:
- the implementation Class or null
-
setImplCls
public void setImplCls(java.lang.Class implCls)
Sets the implementationClass- Parameters:
implCls- theClassto export
-
setImplCls
public void setImplCls(java.lang.String className)
Sets the implementationClass- Parameters:
className- the name of the implementationClass
-
getIntfNamespace
public java.lang.String getIntfNamespace()
Returns the interface namespace- Returns:
- interface target namespace
-
setIntfNamespace
public void setIntfNamespace(java.lang.String ns)
Set the interface namespace- Parameters:
ns- interface target namespace
-
getImplNamespace
public java.lang.String getImplNamespace()
Returns the implementation namespace- Returns:
- implementation target namespace
-
setImplNamespace
public void setImplNamespace(java.lang.String ns)
Set the implementation namespace- Parameters:
ns- implementation target namespace
-
getAllowedMethods
public java.util.Vector getAllowedMethods()
Returns a vector of methods to export- Returns:
- a space separated list of methods to export
-
setAllowedMethods
public void setAllowedMethods(java.lang.String text)
Add a list of methods to export- Parameters:
text-
-
setAllowedMethods
public void setAllowedMethods(java.util.Vector allowedMethods)
Add a Vector of methods to export- Parameters:
allowedMethods- a vector of methods to export
-
getUseInheritedMethods
public boolean getUseInheritedMethods()
Indicates if the emitter will search classes for inherited methods- Returns:
-
setUseInheritedMethods
public void setUseInheritedMethods(boolean useInheritedMethods)
Turn on or off inherited method WSDL generation.- Parameters:
useInheritedMethods-
-
setDisallowedMethods
public void setDisallowedMethods(java.util.Vector disallowedMethods)
Add a list of methods NOT to export- Parameters:
disallowedMethods- vector of method name strings
-
setDisallowedMethods
public void setDisallowedMethods(java.lang.String text)
Add a list of methods NOT to export- Parameters:
text- space separated list of method names
-
getDisallowedMethods
public java.util.Vector getDisallowedMethods()
Return list of methods that should not be exported- Returns:
-
setStopClasses
public void setStopClasses(java.util.ArrayList stopClasses)
Adds a list of classes (fully qualified) that will stop the traversal of the inheritance tree if encounter in method or complex type generation- Parameters:
stopClasses- vector of class name strings
-
setStopClasses
public void setStopClasses(java.lang.String text)
Add a list of classes (fully qualified) that will stop the traversal of the inheritance tree if encounter in method or complex type generation- Parameters:
text- space separated list of class names
-
getStopClasses
public java.util.ArrayList getStopClasses()
Return the list of classes which stop inhertance searches- Returns:
-
getNamespaceMap
public java.util.Map getNamespaceMap()
get the packagename to namespace map- Returns:
Map
-
setNamespaceMap
public void setNamespaceMap(java.util.Map map)
Set the packagename to namespace map with the given map- Parameters:
map- packagename/namespaceMap
-
getInputWSDL
public java.lang.String getInputWSDL()
Get the name of the input WSDL- Returns:
- name of the input wsdl or null
-
setInputWSDL
public void setInputWSDL(java.lang.String inputWSDL)
Set the name of the input WSDL- Parameters:
inputWSDL- the name of the input WSDL
-
getInputSchema
public java.lang.String getInputSchema()
- Returns:
- the name of the input schema, or null
-
setInputSchema
public void setInputSchema(java.lang.String inputSchema)
Set the name of the input schema- Parameters:
inputSchema- the name of the input schema
-
getLocationUrl
public java.lang.String getLocationUrl()
Returns the String representation of the service endpoint URL- Returns:
- String representation of the service endpoint URL
-
setLocationUrl
public void setLocationUrl(java.lang.String locationUrl)
Set the String representation of the service endpoint URL- Parameters:
locationUrl- the String representation of the service endpoint URL
-
getImportUrl
public java.lang.String getImportUrl()
Returns the String representation of the interface import location URL- Returns:
- String representation of the interface import location URL
-
setImportUrl
public void setImportUrl(java.lang.String importUrl)
Set the String representation of the interface location URL for importing- Parameters:
importUrl- the String representation of the interface location URL for importing
-
getServicePortName
public java.lang.String getServicePortName()
Returns the String representation of the service port name- Returns:
- String representation of the service port name
-
setServicePortName
public void setServicePortName(java.lang.String servicePortName)
Set the String representation of the service port name- Parameters:
servicePortName- the String representation of the service port name
-
getServiceElementName
public java.lang.String getServiceElementName()
Returns the String representation of the service element name- Returns:
- String representation of the service element name
-
setServiceElementName
public void setServiceElementName(java.lang.String serviceElementName)
Set the String representation of the service element name- Parameters:
serviceElementName- the String representation of the service element name
-
getPortTypeName
public java.lang.String getPortTypeName()
Returns the String representation of the portType name- Returns:
- String representation of the portType name
-
setPortTypeName
public void setPortTypeName(java.lang.String portTypeName)
Set the String representation of the portType name- Parameters:
portTypeName- the String representation of the portType name
-
getBindingName
public java.lang.String getBindingName()
Returns the String representation of the binding name- Returns:
- String representation of the binding name
-
setBindingName
public void setBindingName(java.lang.String bindingName)
Set the String representation of the binding name- Parameters:
bindingName- the String representation of the binding name
-
getTargetService
public java.lang.String getTargetService()
Returns the target service name- Returns:
- the target service name
-
setTargetService
public void setTargetService(java.lang.String targetService)
Set the target service name- Parameters:
targetService- the target service name
-
getDescription
public java.lang.String getDescription()
Returns the service description- Returns:
- service description String
-
setDescription
public void setDescription(java.lang.String description)
Set the service description- Parameters:
description- service description String
-
getSoapAction
public java.lang.String getSoapAction()
Returns the soapAction option value- Returns:
- the String DEFAULT, NONE or OPERATION
-
setSoapAction
public void setSoapAction(java.lang.String value)
Sets the soapAction option value- Parameters:
value- must be DEFAULT, NONE, or OPERATION
-
getTypeMapping
public TypeMapping getTypeMapping()
Returns theTypeMappingused by the service- Returns:
- the
TypeMappingused by the service
-
setTypeMapping
public void setTypeMapping(TypeMapping tm)
Sets theTypeMappingused by the service- Parameters:
tm- theTypeMappingused by the service
-
getDefaultTypeMapping
public TypeMapping getDefaultTypeMapping()
Deprecated.Use getTypeMappingRegistry insteadReturns thedefaultTypeMappingused by the service- Returns:
- the
defaultTypeMappingused by the service
-
setDefaultTypeMapping
public void setDefaultTypeMapping(TypeMapping tm)
Deprecated.Use setTypeMappingRegistry insteadSets thedefaultTypeMappingused by the service- Parameters:
tm- thedefaultTypeMappingused by the service
-
setTypeMappingRegistry
public void setTypeMappingRegistry(TypeMappingRegistry tmr)
Set the TypeMappingRegistry for this Emitter.
-
getStyle
public Style getStyle()
getStyle- Returns:
- Style setting (Style.RPC, Style.DOCUMENT, Style.WRAPPED, etc.)
-
setStyle
public void setStyle(java.lang.String value)
setStyle- Parameters:
value- String representing a style ("document", "rpc", "wrapped") Note that the case of the string is not important. "document" and "DOCUMENT" are both treated as document style. If the value is not a know style, the default setting is used. See org.apache.axis.constants.Style for a description of the interaction between Style/Use
NOTE: If style is specified as "wrapped", use is set to literal.
-
setStyle
public void setStyle(Style value)
setStyle- Parameters:
value- Style setting
-
getUse
public Use getUse()
getUse- Returns:
- Use setting (Use.ENCODED, Use.LITERAL)
-
setUse
public void setUse(java.lang.String value)
setUse- Parameters:
value- String representing a use ("literal", "encoded") Note that the case of the string is not important. "literal" and "LITERAL" are both treated as literal use. If the value is not a know use, the default setting is used. See org.apache.axis.constants.Style for a description of the interaction between Style/Use
-
setUse
public void setUse(Use value)
setUse- Parameters:
value- Use setting
-
setMode
public void setMode(int mode)
Deprecated.(use setStyle and setUse)setMode (sets style and use)- Parameters:
mode-
-
getMode
public int getMode()
Deprecated.(use getStyle and getUse)getMode (gets the mode based on the style setting)- Returns:
- returns the mode (-1 if invalid)
-
getServiceDesc
public ServiceDesc getServiceDesc()
Method getServiceDesc- Returns:
-
setServiceDesc
public void setServiceDesc(ServiceDesc serviceDesc)
Method setServiceDesc- Parameters:
serviceDesc-
-
getExtraClasses
public java.lang.Class[] getExtraClasses()
Return the list of extra classes that the emitter will produce WSDL for.- Returns:
-
setExtraClasses
public void setExtraClasses(java.lang.Class[] extraClasses)
Provide a list of classes which the emitter will produce WSDL type definitions for.- Parameters:
extraClasses-
-
setExtraClasses
public void setExtraClasses(java.lang.String text) throws java.lang.ClassNotFoundExceptionProvide a comma or space seperated list of classes which the emitter will produce WSDL type definitions for. The classes will be added to the current list.- Parameters:
text-- Throws:
java.lang.ClassNotFoundException
-
setEmitAllTypes
public void setEmitAllTypes(boolean emitAllTypes)
-
getVersionMessage
public java.lang.String getVersionMessage()
Return the version message- Returns:
- message or null if emitter will use the default
-
setVersionMessage
public void setVersionMessage(java.lang.String versionMessage)
Set the version message that appears at the top of the WSDL If not set, we use the default version message. If set to an empty string, no version message will be emitted- Parameters:
versionMessage- the message to emit
-
getQName2ClassMap
public java.util.HashMap getQName2ClassMap()
Return the type qname to java type mapping- Returns:
- mapping of type qname to its corresponding java type
-
-