org.apache.woden.internal.wsdl20
Class DescriptionImpl

java.lang.Object
  extended by org.apache.woden.internal.wsdl20.WSDLElementImpl
      extended by org.apache.woden.internal.wsdl20.DocumentableImpl
          extended by org.apache.woden.internal.wsdl20.WSDLComponentImpl
              extended by org.apache.woden.internal.wsdl20.DescriptionImpl
All Implemented Interfaces:
Description, AttributeExtensible, ElementExtensible, PropertyExtensible, WSDLComponent, DescriptionElement, DocumentableElement, WSDLElement

public class DescriptionImpl
extends WSDLComponentImpl
implements Description, DescriptionElement

This class provides the implementation for a Description component from the WSDL Component Model, as described in the WSDL 2.0 specification.

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.

Author:
jkaputin@apache.org

Constructor Summary
DescriptionImpl(WSDLContext wsdlContext)
           
 
Method Summary
 BindingElement addBindingElement()
           
 ImportElement addImportElement()
           
 IncludeElement addIncludeElement()
           
 InterfaceElement addInterfaceElement()
           
 ServiceElement addServiceElement()
           
 TypesElement addTypesElement()
           
 Binding getBinding(QName name)
           
 BindingElement[] getBindingElements()
           
 Binding[] getBindings()
           
 java.net.URI getDocumentBaseURI()
           
 ElementDeclaration getElementDeclaration(QName qname)
           
 ElementDeclaration[] getElementDeclarations()
           
 FragmentIdentifier getFragmentIdentifier()
           
 ImportElement[] getImportElements()
           
 IncludeElement[] getIncludeElements()
           
 Interface getInterface(QName name)
           
 InterfaceElement[] getInterfaceElements()
           
 Interface[] getInterfaces()
           
 Service getService(QName name)
           
 ServiceElement[] getServiceElements()
           
 Service[] getServices()
           
 java.net.URI getTargetNamespace()
           
 TypeDefinition getTypeDefinition(QName qname)
           
 TypeDefinition[] getTypeDefinitions()
           
 TypesElement getTypesElement()
           
 void setDocumentBaseURI(java.net.URI documentBaseURI)
           
 void setTargetNamespace(java.net.URI namespace)
           
 Description toComponent()
           
 DescriptionElement toElement()
           
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLComponentImpl
containsComponent, equals, getComponentExtensionContext, getExtensionProperties, getExtensionProperties, getExtensionProperty, isEquivalentTo, setComponentExtensionContext, toString
 
Methods inherited from class org.apache.woden.internal.wsdl20.DocumentableImpl
addDocumentationElement, getDocumentationElements
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLElementImpl
addExtensionElement, addNamespace, getDeclaredNamespaces, getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, getExtensionElements, getExtensionElementsOfType, getInScopeNamespaces, getNamespacePrefix, getNamespaceURI, hasExtensionAttributesForNamespace, hasExtensionElementsForNamespace, removeExtensionElement, removeNamespace, setExtensionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.woden.wsdl20.WSDLComponent
equals, getComponentExtensionContext, isEquivalentTo, setComponentExtensionContext, toString
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.PropertyExtensible
getExtensionProperties, getExtensionProperties, getExtensionProperty
 
Methods inherited from interface org.apache.woden.wsdl20.xml.DocumentableElement
addDocumentationElement, getDocumentationElements
 
Methods inherited from interface org.apache.woden.wsdl20.xml.WSDLElement
addNamespace, getDeclaredNamespaces, getInScopeNamespaces, getNamespacePrefix, getNamespaceURI, removeNamespace
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.AttributeExtensible
getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, hasExtensionAttributesForNamespace, setExtensionAttribute
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.ElementExtensible
addExtensionElement, getExtensionElements, getExtensionElementsOfType, hasExtensionElementsForNamespace, removeExtensionElement
 

Constructor Detail

DescriptionImpl

public DescriptionImpl(WSDLContext wsdlContext)
Method Detail

getInterfaces

public Interface[] getInterfaces()
Specified by:
getInterfaces in interface Description

getInterface

public Interface getInterface(QName name)
Specified by:
getInterface in interface Description

getBindings

public Binding[] getBindings()
Specified by:
getBindings in interface Description

getBinding

public Binding getBinding(QName name)
Specified by:
getBinding in interface Description

getServices

public Service[] getServices()
Specified by:
getServices in interface Description

getService

public Service getService(QName name)
Specified by:
getService in interface Description

getElementDeclarations

public ElementDeclaration[] getElementDeclarations()
Specified by:
getElementDeclarations in interface Description

getElementDeclaration

public ElementDeclaration getElementDeclaration(QName qname)
Specified by:
getElementDeclaration in interface Description

getTypeDefinitions

public TypeDefinition[] getTypeDefinitions()
Specified by:
getTypeDefinitions in interface Description

getTypeDefinition

public TypeDefinition getTypeDefinition(QName qname)
Specified by:
getTypeDefinition in interface Description

toElement

public DescriptionElement toElement()
Specified by:
toElement in interface Description

setDocumentBaseURI

public void setDocumentBaseURI(java.net.URI documentBaseURI)
Specified by:
setDocumentBaseURI in interface DescriptionElement

getDocumentBaseURI

public java.net.URI getDocumentBaseURI()
Specified by:
getDocumentBaseURI in interface DescriptionElement

setTargetNamespace

public void setTargetNamespace(java.net.URI namespace)
Specified by:
setTargetNamespace in interface DescriptionElement

getTargetNamespace

public java.net.URI getTargetNamespace()
Specified by:
getTargetNamespace in interface DescriptionElement

getImportElements

public ImportElement[] getImportElements()
Specified by:
getImportElements in interface DescriptionElement

getIncludeElements

public IncludeElement[] getIncludeElements()
Specified by:
getIncludeElements in interface DescriptionElement

getTypesElement

public TypesElement getTypesElement()
Specified by:
getTypesElement in interface DescriptionElement

addTypesElement

public TypesElement addTypesElement()
                             throws WSDLException
Specified by:
addTypesElement in interface DescriptionElement
Throws:
WSDLException

getInterfaceElements

public InterfaceElement[] getInterfaceElements()
Specified by:
getInterfaceElements in interface DescriptionElement

getBindingElements

public BindingElement[] getBindingElements()
Specified by:
getBindingElements in interface DescriptionElement

getServiceElements

public ServiceElement[] getServiceElements()
Specified by:
getServiceElements in interface DescriptionElement

addImportElement

public ImportElement addImportElement()
Specified by:
addImportElement in interface DescriptionElement

addIncludeElement

public IncludeElement addIncludeElement()
Specified by:
addIncludeElement in interface DescriptionElement

addInterfaceElement

public InterfaceElement addInterfaceElement()
Specified by:
addInterfaceElement in interface DescriptionElement

addBindingElement

public BindingElement addBindingElement()
Specified by:
addBindingElement in interface DescriptionElement

addServiceElement

public ServiceElement addServiceElement()
Specified by:
addServiceElement in interface DescriptionElement

toComponent

public Description toComponent()
Specified by:
toComponent in interface DescriptionElement

getFragmentIdentifier

public FragmentIdentifier getFragmentIdentifier()
Specified by:
getFragmentIdentifier in interface WSDLComponent


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.