public class DefinitionImpl extends AbstractWSDLElement implements Definition
Modifier and Type | Field and Description |
---|---|
protected Map |
bindings |
protected String |
documentBaseURI |
protected ExtensionRegistry |
extReg |
protected Map |
imports |
protected Map |
messages |
protected QName |
name |
protected Map |
namespaces |
protected List |
nativeAttributeNames |
protected Map |
portTypes |
static long |
serialVersionUID |
protected Map |
services |
protected String |
targetNamespace |
protected Types |
types |
docEl, extElements, extensionAttributes
LIST_OF_QNAMES_TYPE, LIST_OF_STRINGS_TYPE, NO_DECLARED_TYPE, QNAME_TYPE, STRING_TYPE
Constructor and Description |
---|
DefinitionImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addBinding(Binding binding)
Add a binding to this WSDL description.
|
void |
addImport(Import importDef)
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.
|
Binding |
createBinding()
Create a new binding.
|
BindingFault |
createBindingFault()
Create a new binding fault.
|
BindingInput |
createBindingInput()
Create a new binding input.
|
BindingOperation |
createBindingOperation()
Create a new binding operation.
|
BindingOutput |
createBindingOutput()
Create a new binding output.
|
Fault |
createFault()
Create a new fault.
|
Import |
createImport()
Create a new import.
|
Input |
createInput()
Create a new input.
|
Message |
createMessage()
Create a new message.
|
Operation |
createOperation()
Create a new operation.
|
Output |
createOutput()
Create a new output.
|
Part |
createPart()
Create a new part.
|
Port |
createPort()
Create a new port.
|
PortType |
createPortType()
Create a new port type.
|
Service |
createService()
Create a new service.
|
Types |
createTypes()
Create a new types section.
|
Map |
getAllBindings()
Get all the bindings defined in this Definition and
those in any imported Definitions in the WSDL tree.
|
Map |
getAllPortTypes()
Get all the portTypes defined in this Definition and
those in any imported Definitions in the WSDL tree.
|
Map |
getAllServices()
Get all the services defined in this Definition and
those in any imported Definitions in the WSDL tree.
|
Binding |
getBinding(QName name)
Get the specified binding.
|
Map |
getBindings()
Get all the bindings defined in this Definition.
|
String |
getDocumentBaseURI()
Get the document base URI of this definition.
|
ExtensionRegistry |
getExtensionRegistry()
Get a reference to the ExtensionRegistry for this Definition.
|
Map |
getImports()
Get a map of lists containing all the imports defined here.
|
List |
getImports(String namespaceURI)
Get the list of imports for the specified namespaceURI.
|
Message |
getMessage(QName name)
Get the specified message.
|
Map |
getMessages()
Get all the messages defined here.
|
String |
getNamespace(String prefix)
Get the namespace URI associated with this prefix.
|
Map |
getNamespaces()
Get all namespace associations in this definition.
|
List |
getNativeAttributeNames()
Get the list of local attribute names defined for this element in
the WSDL specification.
|
PortType |
getPortType(QName name)
Get the specified portType.
|
Map |
getPortTypes()
Get all the portTypes defined in this Definition.
|
String |
getPrefix(String namespaceURI)
Get a prefix associated with this namespace URI.
|
QName |
getQName()
Get the name of this definition.
|
Service |
getService(QName name)
Get the specified service.
|
Map |
getServices()
Get all the services defined in this Definition.
|
String |
getTargetNamespace()
Get the target namespace in which the WSDL elements
are defined.
|
Types |
getTypes()
Get the types section.
|
Binding |
removeBinding(QName name)
Remove the specified binding from this definition.
|
Import |
removeImport(Import importDef)
Remove an import from this WSDL description.
|
Message |
removeMessage(QName name)
Remove the specified message from this definition.
|
String |
removeNamespace(String prefix)
Remove the namespace URI associated with this prefix.
|
PortType |
removePortType(QName name)
Remove the specified portType from this definition.
|
Service |
removeService(QName name)
Remove the specified service from this definition.
|
void |
setDocumentBaseURI(String documentBaseURI)
Set the document base URI of this definition.
|
void |
setExtensionRegistry(ExtensionRegistry extReg)
Set the ExtensionRegistry for this Definition.
|
void |
setQName(QName name)
Set the name of this definition.
|
void |
setTargetNamespace(String targetNamespace)
Set the target namespace in which WSDL elements are defined.
|
void |
setTypes(Types types)
Set the types section.
|
String |
toString() |
addExtensibilityElement, getDocumentationElement, getExtensibilityElements, getExtensionAttribute, getExtensionAttributes, removeExtensibilityElement, setDocumentationElement, setExtensionAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDocumentationElement, setDocumentationElement
getExtensionAttribute, getExtensionAttributes, setExtensionAttribute
addExtensibilityElement, getExtensibilityElements, removeExtensibilityElement
protected String documentBaseURI
protected QName name
protected String targetNamespace
protected Map namespaces
protected Map imports
protected Types types
protected Map messages
protected Map bindings
protected Map portTypes
protected Map services
protected List nativeAttributeNames
protected ExtensionRegistry extReg
public static final long serialVersionUID
public void setDocumentBaseURI(String documentBaseURI)
setDocumentBaseURI
in interface Definition
documentBaseURI
- the document base URI of this definitionpublic String getDocumentBaseURI()
getDocumentBaseURI
in interface Definition
public void setQName(QName name)
setQName
in interface Definition
name
- the desired namepublic QName getQName()
getQName
in interface Definition
public void setTargetNamespace(String targetNamespace)
setTargetNamespace
in interface Definition
targetNamespace
- the target namespacepublic String getTargetNamespace()
getTargetNamespace
in interface Definition
public void addNamespace(String prefix, String namespaceURI)
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.public String getNamespace(String prefix)
getNamespace
in interface Definition
addNamespace(String, String)
,
getPrefix(String)
public String removeNamespace(String prefix)
removeNamespace
in interface Definition
prefix
- the prefix of the namespace to be removed.public String getPrefix(String namespaceURI)
getPrefix
in interface Definition
addNamespace(String, String)
,
getNamespace(String)
public Map getNamespaces()
getNamespaces
in interface Definition
addNamespace(String, String)
public void setTypes(Types types)
setTypes
in interface Definition
public Types getTypes()
getTypes
in interface Definition
public void addImport(Import importDef)
addImport
in interface Definition
importDef
- the import to be addedpublic Import removeImport(Import importDef)
removeImport
in interface Definition
importDef
- the import to be removedpublic List getImports(String namespaceURI)
getImports
in interface Definition
namespaceURI
- the namespaceURI associated with the
desired imports.public Map getImports()
getImports
in interface Definition
public void addMessage(Message message)
addMessage
in interface Definition
message
- the message to be addedpublic Message getMessage(QName name)
getMessage
in interface Definition
name
- the name of the desired message.public Message removeMessage(QName name)
removeMessage
in interface Definition
name
- the name of the message to removepublic Map getMessages()
getMessages
in interface Definition
public void addBinding(Binding binding)
addBinding
in interface Definition
binding
- the binding to be addedpublic Binding getBinding(QName name)
getBinding
in interface Definition
name
- the name of the desired binding.public Binding removeBinding(QName name)
removeBinding
in interface Definition
name
- the name of the binding to removepublic Map getBindings()
getBindings
in interface Definition
public void addPortType(PortType portType)
addPortType
in interface Definition
portType
- the portType to be addedpublic PortType getPortType(QName name)
getPortType
in interface Definition
name
- the name of the desired portType.public PortType removePortType(QName name)
removePortType
in interface Definition
name
- the name of the portType to removepublic Map getPortTypes()
getPortTypes
in interface Definition
public void addService(Service service)
addService
in interface Definition
service
- the service to be addedpublic Service getService(QName name)
getService
in interface Definition
name
- the name of the desired service.public Service removeService(QName name)
removeService
in interface Definition
name
- the name of the service to removepublic Map getServices()
getServices
in interface Definition
public Binding createBinding()
createBinding
in interface Definition
public BindingFault createBindingFault()
createBindingFault
in interface Definition
public BindingInput createBindingInput()
createBindingInput
in interface Definition
public BindingOperation createBindingOperation()
createBindingOperation
in interface Definition
public BindingOutput createBindingOutput()
createBindingOutput
in interface Definition
public Fault createFault()
createFault
in interface Definition
public Import createImport()
createImport
in interface Definition
public Input createInput()
createInput
in interface Definition
public Message createMessage()
createMessage
in interface Definition
public Operation createOperation()
createOperation
in interface Definition
public Output createOutput()
createOutput
in interface Definition
public Part createPart()
createPart
in interface Definition
public Port createPort()
createPort
in interface Definition
public PortType createPortType()
createPortType
in interface Definition
public Service createService()
createService
in interface Definition
public Types createTypes()
createTypes
in interface Definition
public void setExtensionRegistry(ExtensionRegistry extReg)
setExtensionRegistry
in interface Definition
public ExtensionRegistry getExtensionRegistry()
getExtensionRegistry
in interface Definition
public String toString()
toString
in class AbstractWSDLElement
public List getNativeAttributeNames()
getNativeAttributeNames
in interface AttributeExtensible
public Map getAllBindings()
getAllBindings
in interface Definition
public Map getAllPortTypes()
getAllPortTypes
in interface Definition
public Map getAllServices()
getAllServices
in interface Definition
Copyright © 2018 JBoss by Red Hat. All rights reserved.