bindings
protected Map bindings
docEl
protected Element docEl
documentBaseURI
protected String documentBaseURI
extElements
protected List extElements
imports
protected Map imports
messages
protected Map messages
namespaces
protected Map namespaces
portTypes
protected Map portTypes
serialVersionUID
public static final long serialVersionUID
services
protected Map services
targetNamespace
protected String targetNamespace
types
protected Types types
addBinding
public void addBinding(Binding binding)
Add a binding to this WSDL description.
- addBinding in interface Definition
binding
- the binding to be added
addImport
public void addImport(Import importDef)
Add an import to this WSDL description.
- addImport in interface Definition
importDef
- the import to be added
addMessage
public void addMessage(Message message)
Add a message to this WSDL description.
- addMessage in interface Definition
message
- the message to be added
addNamespace
public void addNamespace(String prefix,
String namespaceURI)
This is a way to add a namespace association to a definition.
It is similar to adding a namespace prefix declaration to the
top of a <wsdl:definition> element. This has nothing to do
with the <wsdl:import> element; there are separate methods for
dealing with information described by <wsdl:import> elements.
- addNamespace in interface Definition
prefix
- the prefix to use for this namespace (when
rendering this information as XML). Use null or an empty string
to describe the default namespace (i.e. xmlns="...").namespaceURI
- the namespace URI to associate the prefix
with. If you use null, the namespace association will be removed.
addPortType
public void addPortType(PortType portType)
Add a portType to this WSDL description.
- addPortType in interface Definition
portType
- the portType to be added
addService
public void addService(Service service)
Add a service to this WSDL description.
- addService in interface Definition
service
- the service to be added
createTypes
public Types createTypes()
Create a new types section.
- createTypes in interface Definition
- the newly created types section
getBinding
public Binding getBinding(QName name)
Get the specified binding. Also checks imported documents.
- getBinding in interface Definition
name
- the name of the desired binding.
- the corresponding binding, or null if there wasn't
any matching binding
getBindings
public Map getBindings()
Get all the bindings defined here.
- getBindings in interface Definition
getDocumentBaseURI
public String getDocumentBaseURI()
Get the document base URI of this definition.
- getDocumentBaseURI in interface Definition
getDocumentationElement
public Element getDocumentationElement()
Get the documentation element. This dependency on org.w3c.dom.Element
should eventually be removed when a more appropriate way of
representing this information is employed.
- getDocumentationElement in interface Definition
- the documentation element
getImports
public Map getImports()
Get a map of lists containing all the imports defined here.
The map's keys are the namespaceURIs, and the map's values
are lists. There is one list for each namespaceURI for which
imports have been defined.
- getImports in interface Definition
getImports
public List getImports(String namespaceURI)
Get the list of imports for the specified namespaceURI.
- getImports in interface Definition
namespaceURI
- the namespaceURI associated with the
desired imports.
- a list of the corresponding imports, or null if
there weren't any matching imports
getMessage
public Message getMessage(QName name)
Get the specified message. Also checks imported documents.
- getMessage in interface Definition
name
- the name of the desired message.
- the corresponding message, or null if there wasn't
any matching message
getMessages
public Map getMessages()
Get all the messages defined here.
- getMessages in interface Definition
getNamespace
public String getNamespace(String prefix)
Get the namespace URI associated with this prefix. Or null if
there is no namespace URI associated with this prefix. This is
unrelated to the <wsdl:import> element.
- getNamespace in interface Definition
getNamespaces
public Map getNamespaces()
Get all namespace associations in this definition. The keys are
the prefixes, and the namespace URIs are the values. This is
unrelated to the <wsdl:import> element.
- getNamespaces in interface Definition
getPortType
public PortType getPortType(QName name)
Get the specified portType. Also checks imported documents.
- getPortType in interface Definition
name
- the name of the desired portType.
- the corresponding portType, or null if there wasn't
any matching portType
getPortTypes
public Map getPortTypes()
Get all the portTypes defined here.
- getPortTypes in interface Definition
getPrefix
public String getPrefix(String namespaceURI)
Get a prefix associated with this namespace URI. Or null if
there are no prefixes associated with this namespace URI. This is
unrelated to the <wsdl:import> element.
- getPrefix in interface Definition
getService
public Service getService(QName name)
Get the specified service. Also checks imported documents.
- getService in interface Definition
name
- the name of the desired service.
- the corresponding service, or null if there wasn't
any matching service
getServices
public Map getServices()
Get all the services defined here.
- getServices in interface Definition
getTargetNamespace
public String getTargetNamespace()
Get the target namespace in which the WSDL elements
are defined.
- getTargetNamespace in interface Definition
removeBinding
public Binding removeBinding(QName name)
Remove the specified binding from this definition.
- removeBinding in interface Definition
name
- the name of the binding to remove
- the binding previously associated with this qname, if there
was one; may return null
removeMessage
public Message removeMessage(QName name)
Remove the specified message from this definition.
- removeMessage in interface Definition
name
- the name of the message to remove
- the message previously associated with this qname, if there
was one; may return null
removePortType
public PortType removePortType(QName name)
Remove the specified portType from this definition.
- removePortType in interface Definition
name
- the name of the portType to remove
- the portType previously associated with this qname, if there
was one; may return null
removeService
public Service removeService(QName name)
Remove the specified service from this definition.
- removeService in interface Definition
name
- the name of the service to remove
- the service previously associated with this qname, if there
was one; may return null
setDocumentBaseURI
public void setDocumentBaseURI(String documentBaseURI)
Set the document base URI of this definition. Can be used to
represent the origin of the Definition, and can be exploited
when resolving relative URIs (e.g. in <import>s).
- setDocumentBaseURI in interface Definition
documentBaseURI
- the document base URI of this definition
setDocumentationElement
public void setDocumentationElement(Element docEl)
Set the documentation element for this document. This dependency
on org.w3c.dom.Element should eventually be removed when a more
appropriate way of representing this information is employed.
- setDocumentationElement in interface Definition
docEl
- the documentation element
setTargetNamespace
public void setTargetNamespace(String targetNamespace)
Set the target namespace in which WSDL elements are defined.
- setTargetNamespace in interface Definition
targetNamespace
- the target namespace
toString
public String toString()