Interface Definition
- All Superinterfaces:
AttributeExtensible, ElementExtensible, Serializable, WSDLElement
- All Known Implementing Classes:
DefinitionImpl
This interface represents a WSDL definition.
- Author:
- Paul Fremantle, Nirmal Mukhi, Matthew J. Duftler
-
Field Summary
Fields inherited from interface AttributeExtensible
LIST_OF_QNAMES_TYPE, LIST_OF_STRINGS_TYPE, NO_DECLARED_TYPE, QNAME_TYPE, STRING_TYPE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBinding(Binding binding) Add a binding to this WSDL description.voidAdd an import to this WSDL description.voidaddMessage(Message message) Add a message to this WSDL description.voidaddNamespace(String prefix, String namespaceURI) This is a way to add a namespace association to a definition.voidaddPortType(PortType portType) Add a portType to this WSDL description.voidaddService(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 down the WSDL tree.Get all the portTypes defined in this Definition and those in any imported Definitions down the WSDL tree.Get all the services defined in this Definition and those in any imported Definitions down 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.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.voidsetDocumentBaseURI(String documentBaseURI) Set the document base URI of this definition.voidSet the ExtensionRegistry for this Definition.voidSet the name of this definition.voidsetTargetNamespace(String targetNamespace) Set the target namespace in which WSDL elements are defined.voidSet the types section.Methods inherited from interface AttributeExtensible
getExtensionAttribute, getExtensionAttributes, getNativeAttributeNames, setExtensionAttributeMethods inherited from interface ElementExtensible
addExtensibilityElement, getExtensibilityElements, removeExtensibilityElementMethods inherited from interface WSDLElement
getDocumentationElement, setDocumentationElement
-
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).- Parameters:
documentBaseURI- the document base URI of this definition
-
getDocumentBaseURI
String getDocumentBaseURI()Get the document base URI of this definition.- Returns:
- the document base URI
-
setQName
-
getQName
-
setTargetNamespace
Set the target namespace in which WSDL elements are defined.- Parameters:
targetNamespace- the target namespace
-
getTargetNamespace
String getTargetNamespace()Get the target namespace in which the WSDL elements are defined.- 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.- 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
-
removeNamespace
-
getPrefix
-
getNamespaces
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.- See Also:
-
setTypes
Set the types section. -
getTypes
-
addImport
Add an import to this WSDL description.- Parameters:
importDef- the import to be added
-
removeImport
-
getImports
-
getImports
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. -
addMessage
Add a message to this WSDL description.- Parameters:
message- the message to be added
-
getMessage
-
removeMessage
-
getMessages
Map getMessages()Get all the messages defined here. -
addBinding
Add a binding to this WSDL description.- Parameters:
binding- the binding to be added
-
getBinding
-
removeBinding
-
getBindings
Map getBindings()Get all the bindings defined in this Definition. -
getAllBindings
Map getAllBindings()Get all the bindings defined in this Definition and those in any imported Definitions down the WSDL tree. -
addPortType
Add a portType to this WSDL description.- Parameters:
portType- the portType to be added
-
getPortType
-
removePortType
-
getPortTypes
Map getPortTypes()Get all the portTypes defined in this Definition. -
getAllPortTypes
Map getAllPortTypes()Get all the portTypes defined in this Definition and those in any imported Definitions down the WSDL tree. -
addService
Add a service to this WSDL description.- Parameters:
service- the service to be added
-
getService
-
removeService
-
getServices
Map getServices()Get all the services defined in this Definition. -
getAllServices
Map getAllServices()Get all the services defined in this Definition and those in any imported Definitions down the WSDL tree. -
createBinding
-
createBindingFault
BindingFault createBindingFault()Create a new binding fault.- Returns:
- the newly created binding fault
-
createBindingInput
BindingInput createBindingInput()Create a new binding input.- Returns:
- the newly created binding input
-
createBindingOperation
BindingOperation createBindingOperation()Create a new binding operation.- Returns:
- the newly created binding operation
-
createBindingOutput
BindingOutput createBindingOutput()Create a new binding output.- Returns:
- the newly created binding output
-
createFault
-
createImport
-
createInput
-
createMessage
-
createOperation
-
createOutput
-
createPart
-
createPort
-
createPortType
-
createService
-
createTypes
-
getExtensionRegistry
ExtensionRegistry getExtensionRegistry()Get a reference to the ExtensionRegistry for this Definition. -
setExtensionRegistry
Set the ExtensionRegistry for this Definition.
-