public class DescriptionImpl extends WSDLComponentImpl implements Description, DescriptionElement, EdDescription
Note: this class is different to the other WSDL implementation classes,
which all implement two Java interfaces; a component model interface and the
interface for the corresponding WSDL element. Different implementations
are used for the Description component and for the <wsdl:description>
element because the latter exposes the composite structure of imported and
included WSDL documents, while the Description component 'flattens' this
structure into an abstract view of the WSDL. A separate implementation
class, DescriptionElementImpl, exists to represent
the <wsdl:description> element.
| Constructor and Description |
|---|
DescriptionImpl(WSDLContext wsdlContext) |
| Modifier and Type | Method and Description |
|---|---|
EdBinding |
addBinding() |
BindingElement |
addBindingElement()
Create a BindingElement with this DescriptionElement as its parent and
return a reference to it.
|
ImportElement |
addImportElement()
Create an ImportElement with this DescriptionElement as its parent and
return a reference to it.
|
IncludeElement |
addIncludeElement()
Create an IncludeElement with this DescriptionElement as its parent and
return a reference to it.
|
EdInterface |
addInterface() |
InterfaceElement |
addInterfaceElement()
Create an InterfaceElement with this DescriptionElement as its parent and
return a reference to it.
|
EdService |
addService() |
ServiceElement |
addServiceElement()
Create a ServiceElement with this DescriptionElement as its parent and
return a reference to it.
|
EdTypeDefinition |
addTypeDefinition() |
TypesElement |
addTypesElement()
Create a TypesElement with this DescriptionElement as its parent and
return a reference to it.
|
Binding |
getBinding(QName name)
Returns a Binding with the specified name from the {bindings} property of this
Description.
|
BindingElement[] |
getBindingElements()
Return the set of BindingElements within this DescriptionElement.
|
Binding[] |
getBindings()
Represents the {bindings} property of the Description component.
|
URI |
getDocumentBaseURI()
Return the document base URI that was used to locate the <description> element that
this DescriptionElement corresponds to.
|
ElementDeclaration |
getElementDeclaration(QName qname)
Returns the ElementDeclaration with the specified name from the set of ElementDeclarations
represented by the {element declarations} property of this Description.
|
ElementDeclaration[] |
getElementDeclarations()
Represents the {element declarations} property of the Description component.
|
FragmentIdentifier |
getFragmentIdentifier()
Returns the fragment identifier for this WSDL 2.0 component.
|
ImportElement[] |
getImportElements()
Return the set of ImportElements within this DescriptionElement.
|
IncludeElement[] |
getIncludeElements()
Return the set of IncludeElements within this DescriptionElement.
|
Interface |
getInterface(QName name)
Returns an Interface with the specified name from the {interfaces} property of this
Description.
|
InterfaceElement[] |
getInterfaceElements()
Return the set of InterfaceElements within this DescriptionElement.
|
Interface[] |
getInterfaces()
Represents the {interfaces} property of the Description component.
|
String |
getserializationStrategy() |
Service |
getService(QName name)
Returns a Service with the specified name from the {services} property of this
Description.
|
ServiceElement[] |
getServiceElements()
Return the set of ServiceElements within this DescriptionElement.
|
Service[] |
getServices()
Represents the {services} property of the Description component.
|
URI |
getTargetNamespace()
Return the target namespace URI.
|
TypeDefinition |
getTypeDefinition(QName qname)
Returns the TypeDefinition with the specified name from the set of TypeDefinitions
represented by the {type definitions} property of this Description.
|
TypeDefinition[] |
getTypeDefinitions()
Represents the {type definitions} property of the Description component.
|
TypesElement |
getTypesElement()
Return the TypesElement within this DescriptionElement.
|
void |
serialize(OutputStream sink)
serialize WSDL content according to the provided SearalizationStrategy.
|
void |
serialize(Writer sink) |
void |
setDocumentBaseURI(URI documentBaseURI)
Set the document base URI to the specified URI.
|
void |
setserializationStrategy(String searalizationStrategy) |
void |
setTargetNamespace(URI namespace)
Set the target namespace to the specified URI.
|
Description |
toComponent()
Return the Description component derived from this DescriptionElement.
|
DescriptionElement |
toElement()
Returns a WSDLElement that represents the element information item from the WSDL 2.0
infoset that maps to this WSDLComponent.
|
containsComponent, equals, getComponentExtensionContext, getExtensionProperties, getExtensionProperties, getExtensionProperty, isEquivalentTo, setComponentExtensionContext, toStringaddDocumentationElement, getDocumentationElementsaddExtensionElement, addNamespace, getDeclaredNamespaces, getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, getExtensionElements, getExtensionElementsOfType, getInScopeNamespaces, getNamespacePrefix, getNamespaceURI, hasExtensionAttributesForNamespace, hasExtensionElementsForNamespace, removeExtensionElement, removeNamespace, setExtensionAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDocumentationElement, getDocumentationElementsaddNamespace, getDeclaredNamespaces, getInScopeNamespaces, getNamespacePrefix, getNamespaceURI, removeNamespacegetExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, hasExtensionAttributesForNamespace, setExtensionAttributeaddExtensionElement, getExtensionElements, getExtensionElementsOfType, hasExtensionElementsForNamespace, removeExtensionElementequals, getComponentExtensionContext, isEquivalentTo, setComponentExtensionContext, toStringgetExtensionProperties, getExtensionProperties, getExtensionPropertypublic DescriptionImpl(WSDLContext wsdlContext)
public Interface[] getInterfaces()
DescriptiongetInterfaces in interface Descriptionpublic Interface getInterface(QName name)
DescriptiongetInterface in interface Descriptionname - the QName of the required Interfacepublic Binding[] getBindings()
DescriptiongetBindings in interface Descriptionpublic Binding getBinding(QName name)
DescriptiongetBinding in interface Descriptionname - the QName of the required Bindingpublic Service[] getServices()
DescriptiongetServices in interface Descriptionpublic Service getService(QName name)
DescriptiongetService in interface Descriptionname - the QName of the required Servicepublic ElementDeclaration[] getElementDeclarations()
DescriptiongetElementDeclarations in interface Descriptionpublic ElementDeclaration getElementDeclaration(QName qname)
DescriptiongetElementDeclaration in interface Descriptionqname - the QName of the required ElementDeclarationpublic TypeDefinition[] getTypeDefinitions()
DescriptiongetTypeDefinitions in interface Descriptionpublic TypeDefinition getTypeDefinition(QName qname)
DescriptiongetTypeDefinition in interface Descriptionqname - the QName of the required TypeDefinitionpublic DescriptionElement toElement()
DescriptionThe Description component is unlike other WSDL components which map neatly to a single WSDL element. Description represents a 'flattened' view of the entire WSDL infoset tree, including the WSDL components from any imported or included WSDL documents, so it could contain the content of multiple <wsdl:description> elements.
If the Component model has been derived from such a composite WSDL infoset, the behaviour of this method is to return the DescriptionElement that represents the root <wsdl:description> element.
toElement in interface Descriptionpublic void setDocumentBaseURI(URI documentBaseURI)
DescriptionElementsetDocumentBaseURI in interface EdDescriptionsetDocumentBaseURI in interface DescriptionElementdocumentBaseURI - the base URI of the WSDLpublic URI getDocumentBaseURI()
DescriptionElementgetDocumentBaseURI in interface DescriptionElementpublic void setTargetNamespace(URI namespace)
DescriptionElementtargetNamespace attribute of the <description>
element.setTargetNamespace in interface EdDescriptionsetTargetNamespace in interface DescriptionElementnamespace - the target namespace URIpublic URI getTargetNamespace()
DescriptionElementtargetNamespace attribute of the <description>
element.getTargetNamespace in interface DescriptionElementpublic ImportElement[] getImportElements()
DescriptionElementgetImportElements in interface DescriptionElementpublic IncludeElement[] getIncludeElements()
DescriptionElementgetIncludeElements in interface DescriptionElementpublic TypesElement getTypesElement()
DescriptionElementgetTypesElement in interface DescriptionElementpublic TypesElement addTypesElement() throws WSDLException
DescriptionElementaddTypesElement in interface DescriptionElementWSDLExceptionpublic InterfaceElement[] getInterfaceElements()
DescriptionElementgetInterfaceElements in interface DescriptionElementpublic BindingElement[] getBindingElements()
DescriptionElementgetBindingElements in interface DescriptionElementpublic ServiceElement[] getServiceElements()
DescriptionElementgetServiceElements in interface DescriptionElementpublic ImportElement addImportElement()
DescriptionElementaddImportElement in interface DescriptionElementpublic IncludeElement addIncludeElement()
DescriptionElementaddIncludeElement in interface DescriptionElementpublic InterfaceElement addInterfaceElement()
DescriptionElementaddInterfaceElement in interface DescriptionElementpublic BindingElement addBindingElement()
DescriptionElementaddBindingElement in interface DescriptionElementpublic ServiceElement addServiceElement()
DescriptionElementaddServiceElement in interface DescriptionElementpublic Description toComponent()
DescriptionElementThe Description component is unlike other WSDL components which map neatly to a single WSDL element. Description represents a 'flattened' view of the entire WSDL infoset tree, including the WSDL components from any imported or included WSDL documents, so it could contain the content of multiple <description> elements.
If this DescriptionElement imports or includes other DescriptionElements (that is, if it is the root of a composite WSDL document), the behaviour of this method is equivalent to traversing the WSDL tree recursively and aggregating the WSDL content of each DescriptionElement into a single Description component.
This equates to retrieving the root <description> element and traversing any <wsdl:import> or <wsdl:include> elements to retrieve WSDL content of any nested <description> elements.
The toComponent() method is only defined for DescriptionElement, not for
other WSDL Element interfaces. This is because the WSDL 2.0 Component model is a nested
hierarchy with a single Description component at the top. To access WSDL components,
we must start at the Description and traverse the component model from there.
toComponent in interface DescriptionElementpublic FragmentIdentifier getFragmentIdentifier()
WSDLComponentgetFragmentIdentifier in interface WSDLComponentpublic EdBinding addBinding()
addBinding in interface EdDescriptionpublic EdInterface addInterface()
addInterface in interface EdDescriptionpublic EdService addService()
addService in interface EdDescriptionpublic void serialize(OutputStream sink)
EdDescriptionserialize in interface EdDescriptionpublic void serialize(Writer sink)
serialize in interface EdDescriptionpublic EdTypeDefinition addTypeDefinition()
addTypeDefinition in interface EdDescriptionpublic String getserializationStrategy()
getserializationStrategy in interface EdDescriptionpublic void setserializationStrategy(String searalizationStrategy)
setserializationStrategy in interface EdDescriptionCopyright © 2005–2019 Apache Software Foundation. All rights reserved.