Package com.ibm.wsdl
Class DefinitionImpl
java.lang.Object
com.ibm.wsdl.AbstractWSDLElement
com.ibm.wsdl.DefinitionImpl
- All Implemented Interfaces:
Serializable
,Definition
,AttributeExtensible
,ElementExtensible
,WSDLElement
This class represents a WSDL definition.
- Author:
- Paul Fremantle, Nirmal Mukhi, Matthew J. Duftler
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map
protected String
protected ExtensionRegistry
protected Map
protected Map
protected QName
protected Map
protected List
protected Map
static final 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBinding
(Binding binding) Add a binding to this WSDL description.void
Add an import to this WSDL description.void
addMessage
(Message message) Add a message to this WSDL description.void
addNamespace
(String prefix, String namespaceURI) This is a way to add a namespace association to a definition.void
addPortType
(PortType portType) Add a portType to this WSDL description.void
addService
(Service service) Add a service to this WSDL description.Create a new binding.Create a new binding fault.Create a new binding input.Create a new binding operation.Create a new binding output.Create a new fault.Create a new import.Create a new input.Create a new message.Create a new operation.Create a new output.Create a new part.Create a new port.Create a new port type.Create a new service.Create a new types section.Get all the bindings defined in this Definition and those in any imported Definitions in the WSDL tree.Get all the portTypes defined in this Definition and those in any imported Definitions in the WSDL tree.Get all the services defined in this Definition and those in any imported Definitions in the WSDL tree.getBinding
(QName name) Get the specified binding.Get all the bindings defined in this Definition.Get the document base URI of this definition.Get a reference to the ExtensionRegistry for this Definition.Get a map of lists containing all the imports defined here.getImports
(String namespaceURI) Get the list of imports for the specified namespaceURI.getMessage
(QName name) Get the specified message.Get all the messages defined here.getNamespace
(String prefix) Get the namespace URI associated with this prefix.Get all namespace associations in this definition.Get the list of local attribute names defined for this element in the WSDL specification.getPortType
(QName name) Get the specified portType.Get all the portTypes defined in this Definition.Get a prefix associated with this namespace URI.getQName()
Get the name of this definition.getService
(QName name) Get the specified service.Get all the services defined in this Definition.Get the target namespace in which the WSDL elements are defined.getTypes()
Get the types section.removeBinding
(QName name) Remove the specified binding from this definition.removeImport
(Import importDef) Remove an import from this WSDL description.removeMessage
(QName name) Remove the specified message from this definition.removeNamespace
(String prefix) Remove the namespace URI associated with this prefix.removePortType
(QName name) Remove the specified portType from this definition.removeService
(QName name) Remove the specified service from this definition.void
setDocumentBaseURI
(String documentBaseURI) Set the document base URI of this definition.void
Set the ExtensionRegistry for this Definition.void
Set the name of this definition.void
setTargetNamespace
(String targetNamespace) Set the target namespace in which WSDL elements are defined.void
Set the types section.toString()
Methods inherited from class com.ibm.wsdl.AbstractWSDLElement
addExtensibilityElement, getDocumentationElement, getExtensibilityElements, getExtensionAttribute, getExtensionAttributes, removeExtensibilityElement, setDocumentationElement, setExtensionAttribute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.wsdl.extensions.AttributeExtensible
getExtensionAttribute, getExtensionAttributes, setExtensionAttribute
Methods inherited from interface javax.wsdl.extensions.ElementExtensible
addExtensibilityElement, getExtensibilityElements, removeExtensibilityElement
Methods inherited from interface javax.wsdl.WSDLElement
getDocumentationElement, setDocumentationElement
-
Field Details
-
documentBaseURI
-
name
-
targetNamespace
-
namespaces
-
imports
-
types
-
messages
-
bindings
-
portTypes
-
services
-
nativeAttributeNames
-
extReg
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
DefinitionImpl
public DefinitionImpl()
-
-
Method Details
-
setDocumentBaseURI
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 interfaceDefinition
- Parameters:
documentBaseURI
- the document base URI of this definition
-
getDocumentBaseURI
Get the document base URI of this definition.- Specified by:
getDocumentBaseURI
in interfaceDefinition
- Returns:
- the document base URI
-
setQName
Set the name of this definition.- Specified by:
setQName
in interfaceDefinition
- Parameters:
name
- the desired name
-
getQName
Get the name of this definition.- Specified by:
getQName
in interfaceDefinition
- Returns:
- the definition name
-
setTargetNamespace
Set the target namespace in which WSDL elements are defined.- Specified by:
setTargetNamespace
in interfaceDefinition
- Parameters:
targetNamespace
- the target namespace
-
getTargetNamespace
Get the target namespace in which the WSDL elements are defined.- Specified by:
getTargetNamespace
in interfaceDefinition
- Returns:
- the target namespace
-
addNamespace
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 interfaceDefinition
- 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.
-
getNamespace
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 interfaceDefinition
- See Also:
-
removeNamespace
Remove the namespace URI associated with this prefix.- Specified by:
removeNamespace
in interfaceDefinition
- Parameters:
prefix
- the prefix of the namespace to be removed.- Returns:
- the namespace URI which was removed
-
getPrefix
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 interfaceDefinition
- See Also:
-
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 interfaceDefinition
- See Also:
-
setTypes
Set the types section.- Specified by:
setTypes
in interfaceDefinition
-
getTypes
Get the types section.- Specified by:
getTypes
in interfaceDefinition
- Returns:
- the types section
-
addImport
Add an import to this WSDL description.- Specified by:
addImport
in interfaceDefinition
- Parameters:
importDef
- the import to be added
-
removeImport
Remove an import from this WSDL description.- Specified by:
removeImport
in interfaceDefinition
- Parameters:
importDef
- the import to be removed- Returns:
- the removed Import
-
getImports
Get the list of imports for the specified namespaceURI.- Specified by:
getImports
in interfaceDefinition
- 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
-
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 interfaceDefinition
-
addMessage
Add a message to this WSDL description.- Specified by:
addMessage
in interfaceDefinition
- Parameters:
message
- the message to be added
-
getMessage
Get the specified message. Also checks imported documents.- Specified by:
getMessage
in interfaceDefinition
- Parameters:
name
- the name of the desired message.- Returns:
- the corresponding message, or null if there wasn't any matching message
-
removeMessage
Remove the specified message from this definition.- Specified by:
removeMessage
in interfaceDefinition
- Parameters:
name
- the name of the message to remove- Returns:
- the message previously associated with this qname, if there was one; may return null
-
getMessages
Get all the messages defined here.- Specified by:
getMessages
in interfaceDefinition
-
addBinding
Add a binding to this WSDL description.- Specified by:
addBinding
in interfaceDefinition
- Parameters:
binding
- the binding to be added
-
getBinding
Get the specified binding. Also checks imported documents.- Specified by:
getBinding
in interfaceDefinition
- Parameters:
name
- the name of the desired binding.- Returns:
- the corresponding binding, or null if there wasn't any matching binding
-
removeBinding
Remove the specified binding from this definition.- Specified by:
removeBinding
in interfaceDefinition
- Parameters:
name
- the name of the binding to remove- Returns:
- the binding previously associated with this qname, if there was one; may return null
-
getBindings
Get all the bindings defined in this Definition.- Specified by:
getBindings
in interfaceDefinition
-
addPortType
Add a portType to this WSDL description.- Specified by:
addPortType
in interfaceDefinition
- Parameters:
portType
- the portType to be added
-
getPortType
Get the specified portType. Also checks imported documents.- Specified by:
getPortType
in interfaceDefinition
- Parameters:
name
- the name of the desired portType.- Returns:
- the corresponding portType, or null if there wasn't any matching portType
-
removePortType
Remove the specified portType from this definition.- Specified by:
removePortType
in interfaceDefinition
- Parameters:
name
- the name of the portType to remove- Returns:
- the portType previously associated with this qname, if there was one; may return null
-
getPortTypes
Get all the portTypes defined in this Definition.- Specified by:
getPortTypes
in interfaceDefinition
-
addService
Add a service to this WSDL description.- Specified by:
addService
in interfaceDefinition
- Parameters:
service
- the service to be added
-
getService
Get the specified service. Also checks imported documents.- Specified by:
getService
in interfaceDefinition
- Parameters:
name
- the name of the desired service.- Returns:
- the corresponding service, or null if there wasn't any matching service
-
removeService
Remove the specified service from this definition.- Specified by:
removeService
in interfaceDefinition
- Parameters:
name
- the name of the service to remove- Returns:
- the service previously associated with this qname, if there was one; may return null
-
getServices
Get all the services defined in this Definition.- Specified by:
getServices
in interfaceDefinition
-
createBinding
Create a new binding.- Specified by:
createBinding
in interfaceDefinition
- Returns:
- the newly created binding
-
createBindingFault
Create a new binding fault.- Specified by:
createBindingFault
in interfaceDefinition
- Returns:
- the newly created binding fault
-
createBindingInput
Create a new binding input.- Specified by:
createBindingInput
in interfaceDefinition
- Returns:
- the newly created binding input
-
createBindingOperation
Create a new binding operation.- Specified by:
createBindingOperation
in interfaceDefinition
- Returns:
- the newly created binding operation
-
createBindingOutput
Create a new binding output.- Specified by:
createBindingOutput
in interfaceDefinition
- Returns:
- the newly created binding output
-
createFault
Create a new fault.- Specified by:
createFault
in interfaceDefinition
- Returns:
- the newly created fault
-
createImport
Create a new import.- Specified by:
createImport
in interfaceDefinition
- Returns:
- the newly created import
-
createInput
Create a new input.- Specified by:
createInput
in interfaceDefinition
- Returns:
- the newly created input
-
createMessage
Create a new message.- Specified by:
createMessage
in interfaceDefinition
- Returns:
- the newly created message
-
createOperation
Create a new operation.- Specified by:
createOperation
in interfaceDefinition
- Returns:
- the newly created operation
-
createOutput
Create a new output.- Specified by:
createOutput
in interfaceDefinition
- Returns:
- the newly created output
-
createPart
Create a new part.- Specified by:
createPart
in interfaceDefinition
- Returns:
- the newly created part
-
createPort
Create a new port.- Specified by:
createPort
in interfaceDefinition
- Returns:
- the newly created port
-
createPortType
Create a new port type.- Specified by:
createPortType
in interfaceDefinition
- Returns:
- the newly created port type
-
createService
Create a new service.- Specified by:
createService
in interfaceDefinition
- Returns:
- the newly created service
-
createTypes
Create a new types section.- Specified by:
createTypes
in interfaceDefinition
- Returns:
- the newly created types section
-
setExtensionRegistry
Set the ExtensionRegistry for this Definition.- Specified by:
setExtensionRegistry
in interfaceDefinition
-
getExtensionRegistry
Get a reference to the ExtensionRegistry for this Definition.- Specified by:
getExtensionRegistry
in interfaceDefinition
-
toString
- Overrides:
toString
in classAbstractWSDLElement
-
getNativeAttributeNames
Get the list of local attribute names defined for this element in the WSDL specification.- Specified by:
getNativeAttributeNames
in interfaceAttributeExtensible
- Returns:
- a List of Strings, one for each local attribute name
-
getAllBindings
Get all the bindings defined in this Definition and those in any imported Definitions in the WSDL tree.- Specified by:
getAllBindings
in interfaceDefinition
-
getAllPortTypes
Get all the portTypes defined in this Definition and those in any imported Definitions in the WSDL tree.- Specified by:
getAllPortTypes
in interfaceDefinition
-
getAllServices
Get all the services defined in this Definition and those in any imported Definitions in the WSDL tree.- Specified by:
getAllServices
in interfaceDefinition
-