Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.ibm.wsdl.AbstractWSDLElement
com.ibm.wsdl.DefinitionImpl
Field Summary | |
protected Map | |
protected String | |
protected ExtensionRegistry | |
protected Map | |
protected Map | |
protected QName | |
protected Map | |
protected List | |
protected Map | |
static long | |
protected Map | |
protected String | |
protected Types |
Fields inherited from class com.ibm.wsdl.AbstractWSDLElement | |
docEl , extElements , extensionAttributes |
Fields inherited from interface javax.wsdl.extensions.AttributeExtensible | |
LIST_OF_QNAMES_TYPE , LIST_OF_STRINGS_TYPE , NO_DECLARED_TYPE , QNAME_TYPE , STRING_TYPE |
Method Summary | |
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
Binding |
|
BindingFault |
|
BindingInput |
|
BindingOperation |
|
BindingOutput |
|
Fault |
|
Import |
|
Input |
|
Message |
|
Operation |
|
Output |
|
Part |
|
Port |
|
PortType |
|
Service |
|
Types |
|
Map |
|
Map |
|
Map |
|
Binding |
|
Map |
|
String |
|
ExtensionRegistry |
|
Map |
|
List |
|
Message |
|
Map |
|
String |
|
Map |
|
List |
|
PortType |
|
Map |
|
String |
|
QName |
|
Service |
|
Map |
|
String |
|
Types |
|
Binding |
|
Import |
|
Message |
|
String |
|
PortType |
|
Service |
|
void |
|
void |
|
void | |
void |
|
void | |
String |
|
Methods inherited from class com.ibm.wsdl.AbstractWSDLElement | |
addExtensibilityElement , getDocumentationElement , getExtensibilityElements , getExtensionAttribute , getExtensionAttributes , removeExtensibilityElement , setDocumentationElement , setExtensionAttribute , toString |
protected Map bindings
protected String documentBaseURI
protected Map imports
protected Map messages
protected Map namespaces
protected List nativeAttributeNames
protected Map portTypes
public static final long serialVersionUID
- Field Value:
- 1L
protected Map services
protected String targetNamespace
public void addBinding(Binding binding)
Add a binding to this WSDL description.
- Specified by:
- addBinding in interface Definition
- Parameters:
binding
- the binding to be added
public void addImport(Import importDef)
Add an import to this WSDL description.
- Specified by:
- addImport in interface Definition
- Parameters:
importDef
- the import to be added
public void addMessage(Message message)
Add a message to this WSDL description.
- Specified by:
- addMessage in interface Definition
- Parameters:
message
- the message to be added
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.
- Specified by:
- addNamespace in interface Definition
- Parameters:
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.
public void addPortType(PortType portType)
Add a portType to this WSDL description.
- Specified by:
- addPortType in interface Definition
- Parameters:
portType
- the portType to be added
public void addService(Service service)
Add a service to this WSDL description.
- Specified by:
- addService in interface Definition
- Parameters:
service
- the service to be added
public Binding createBinding()
Create a new binding.
- Specified by:
- createBinding in interface Definition
- Returns:
- the newly created binding
public BindingFault createBindingFault()
Create a new binding fault.
- Specified by:
- createBindingFault in interface Definition
- Returns:
- the newly created binding fault
public BindingInput createBindingInput()
Create a new binding input.
- Specified by:
- createBindingInput in interface Definition
- Returns:
- the newly created binding input
public BindingOperation createBindingOperation()
Create a new binding operation.
- Specified by:
- createBindingOperation in interface Definition
- Returns:
- the newly created binding operation
public BindingOutput createBindingOutput()
Create a new binding output.
- Specified by:
- createBindingOutput in interface Definition
- Returns:
- the newly created binding output
public Fault createFault()
Create a new fault.
- Specified by:
- createFault in interface Definition
- Returns:
- the newly created fault
public Import createImport()
Create a new import.
- Specified by:
- createImport in interface Definition
- Returns:
- the newly created import
public Input createInput()
Create a new input.
- Specified by:
- createInput in interface Definition
- Returns:
- the newly created input
public Message createMessage()
Create a new message.
- Specified by:
- createMessage in interface Definition
- Returns:
- the newly created message
public Operation createOperation()
Create a new operation.
- Specified by:
- createOperation in interface Definition
- Returns:
- the newly created operation
public Output createOutput()
Create a new output.
- Specified by:
- createOutput in interface Definition
- Returns:
- the newly created output
public Part createPart()
Create a new part.
- Specified by:
- createPart in interface Definition
- Returns:
- the newly created part
public Port createPort()
Create a new port.
- Specified by:
- createPort in interface Definition
- Returns:
- the newly created port
public PortType createPortType()
Create a new port type.
- Specified by:
- createPortType in interface Definition
- Returns:
- the newly created port type
public Service createService()
Create a new service.
- Specified by:
- createService in interface Definition
- Returns:
- the newly created service
public Types createTypes()
Create a new types section.
- Specified by:
- createTypes in interface Definition
- Returns:
- the newly created types section
public Map getAllBindings()
Get all the bindings defined in this Definition and those in any imported Definitions in the WSDL tree.
- Specified by:
- getAllBindings in interface Definition
public Map getAllPortTypes()
Get all the portTypes defined in this Definition and those in any imported Definitions in the WSDL tree.
- Specified by:
- getAllPortTypes in interface Definition
public Map getAllServices()
Get all the services defined in this Definition and those in any imported Definitions in the WSDL tree.
- Specified by:
- getAllServices in interface Definition
public Binding getBinding(QName name)
Get the specified binding. Also checks imported documents.
- Specified by:
- getBinding in interface Definition
- Parameters:
name
- the name of the desired binding.
- Returns:
- the corresponding binding, or null if there wasn't any matching binding
public Map getBindings()
Get all the bindings defined in this Definition.
- Specified by:
- getBindings in interface Definition
public String getDocumentBaseURI()
Get the document base URI of this definition.
- Specified by:
- getDocumentBaseURI in interface Definition
- Returns:
- the document base URI
public ExtensionRegistry getExtensionRegistry()
Get a reference to the ExtensionRegistry for this Definition.
- Specified by:
- getExtensionRegistry in interface Definition
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.
- Specified by:
- getImports in interface Definition
public List getImports(String namespaceURI)
Get the list of imports for the specified namespaceURI.
- Specified by:
- getImports in interface Definition
- Parameters:
namespaceURI
- the namespaceURI associated with the desired imports.
- Returns:
- a list of the corresponding imports, or null if there weren't any matching imports
public Message getMessage(QName name)
Get the specified message. Also checks imported documents.
- Specified by:
- getMessage in interface Definition
- Parameters:
name
- the name of the desired message.
- Returns:
- the corresponding message, or null if there wasn't any matching message
public Map getMessages()
Get all the messages defined here.
- Specified by:
- getMessages in interface Definition
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.
- Specified by:
- getNamespace in interface Definition
- See Also:
addNamespace(String,String)
,getPrefix(String)
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.
- Specified by:
- getNamespaces in interface Definition
- See Also:
addNamespace(String,String)
public List getNativeAttributeNames()
Get the list of local attribute names defined for this element in the WSDL specification.
- Specified by:
- getNativeAttributeNames in interface AttributeExtensible
- Returns:
- a List of Strings, one for each local attribute name
public PortType getPortType(QName name)
Get the specified portType. Also checks imported documents.
- Specified by:
- getPortType in interface Definition
- Parameters:
name
- the name of the desired portType.
- Returns:
- the corresponding portType, or null if there wasn't any matching portType
public Map getPortTypes()
Get all the portTypes defined in this Definition.
- Specified by:
- getPortTypes in interface Definition
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.
- Specified by:
- getPrefix in interface Definition
public QName getQName()
Get the name of this definition.
- Specified by:
- getQName in interface Definition
- Returns:
- the definition name
public Service getService(QName name)
Get the specified service. Also checks imported documents.
- Specified by:
- getService in interface Definition
- Parameters:
name
- the name of the desired service.
- Returns:
- the corresponding service, or null if there wasn't any matching service
public Map getServices()
Get all the services defined in this Definition.
- Specified by:
- getServices in interface Definition
public String getTargetNamespace()
Get the target namespace in which the WSDL elements are defined.
- Specified by:
- getTargetNamespace in interface Definition
- Returns:
- the target namespace
public Types getTypes()
Get the types section.
- Specified by:
- getTypes in interface Definition
- Returns:
- the types section
public Binding removeBinding(QName name)
Remove the specified binding from this definition.
- Specified by:
- removeBinding in interface Definition
- Parameters:
name
- the name of the binding to remove
- Returns:
- the binding previously associated with this qname, if there was one; may return null
public Import removeImport(Import importDef)
Remove an import from this WSDL description.
- Specified by:
- removeImport in interface Definition
- Parameters:
importDef
- the import to be removed
public Message removeMessage(QName name)
Remove the specified message from this definition.
- Specified by:
- removeMessage in interface Definition
- Parameters:
name
- the name of the message to remove
- Returns:
- the message previously associated with this qname, if there was one; may return null
public String removeNamespace(String prefix)
Remove the namespace URI associated with this prefix.
- Specified by:
- removeNamespace in interface Definition
- Parameters:
prefix
- the prefix of the namespace to be removed.
- Returns:
- the namespace URI which was removed
public PortType removePortType(QName name)
Remove the specified portType from this definition.
- Specified by:
- removePortType in interface Definition
- Parameters:
name
- the name of the portType to remove
- Returns:
- the portType previously associated with this qname, if there was one; may return null
public Service removeService(QName name)
Remove the specified service from this definition.
- Specified by:
- removeService in interface Definition
- Parameters:
name
- the name of the service to remove
- Returns:
- the service previously associated with this qname, if there was one; may return null
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).
- Specified by:
- setDocumentBaseURI in interface Definition
- Parameters:
documentBaseURI
- the document base URI of this definition
public void setExtensionRegistry(ExtensionRegistry extReg)
Set the ExtensionRegistry for this Definition.
- Specified by:
- setExtensionRegistry in interface Definition
public void setQName(QName name)
Set the name of this definition.
- Specified by:
- setQName in interface Definition
- Parameters:
name
- the desired name
public void setTargetNamespace(String targetNamespace)
Set the target namespace in which WSDL elements are defined.
- Specified by:
- setTargetNamespace in interface Definition
- Parameters:
targetNamespace
- the target namespace
public void setTypes(Types types)
Set the types section.
- Specified by:
- setTypes in interface Definition