org.apache.woden.internal.wsdl20
Class WSDLComponentImpl

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
All Implemented Interfaces:
AttributeExtensible, ElementExtensible, PropertyExtensible, WSDLComponent, DocumentableElement, WSDLElement
Direct Known Subclasses:
BindingImpl, DescriptionImpl, InterfaceImpl, NestedImpl, ServiceImpl

public abstract class WSDLComponentImpl
extends DocumentableImpl
implements WSDLComponent

All classes implementing the WSDL 2.0 Component and Element model interfaces directly or indirectly extend this abstract class. It implements the WSDL20Component interface which just provides a common reference for objects from the WSDL 2.0 Component API. This class also inherits common behaviour for WSDL Elements from WSDLElementImpl, which in turn provides a common reference for objects from the the WSDL 2.0 Element API.

Author:
jkaputin@apache.org

Constructor Summary
WSDLComponentImpl()
           
 
Method Summary
protected  boolean containsComponent(WSDLComponent comp, java.util.List components)
           
 boolean equals(WSDLComponent comp)
          Tests whether this component is logically equivalent the specified component.
 ComponentExtensionContext getComponentExtensionContext(java.net.URI extNamespace)
          Returns the ComponentExtensionContext object that provides access to this WSDL component's extension properties from the specified namespace.
 ExtensionProperty[] getExtensionProperties()
          Returns all of the component's extension properties.
 ExtensionProperty[] getExtensionProperties(java.net.URI extNamespace)
          Returns the component's extension properties from a particular namespace.
 ExtensionProperty getExtensionProperty(java.net.URI extNamespace, java.lang.String propertyName)
          Returns the component's named extension property from the specified namespace.
 void setComponentExtensionContext(java.net.URI extNamespace, ComponentExtensionContext compExtCtx)
          Stores the ComponentExtensionContext object that provides access to this WSDL component's extension properties from the specified namespace.
 java.lang.String toString()
          Returns a String serialisation of the fragment identifier for this WSDL 2.0 component.
 
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
getFragmentIdentifier
 
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

WSDLComponentImpl

public WSDLComponentImpl()
Method Detail

equals

public boolean equals(WSDLComponent comp)
Description copied from interface: WSDLComponent
Tests whether this component is logically equivalent the specified component. Equivalence is determined per spec WSDL 2.0 Part 1 Section 2.17 Equivalence of Components.

Specified by:
equals in interface WSDLComponent
Parameters:
comp - the WSDL component that this component will be compared to
Returns:
true if the components are logically equivalent

setComponentExtensionContext

public void setComponentExtensionContext(java.net.URI extNamespace,
                                         ComponentExtensionContext compExtCtx)
Description copied from interface: WSDLComponent
Stores the ComponentExtensionContext object that provides access to this WSDL component's extension properties from the specified namespace.

Specified by:
setComponentExtensionContext in interface WSDLComponent
Parameters:
extNamespace - the namespace URI of the extension properties
compExtCtx - the ComponentExtensionContext object for accessing the extension properties

getComponentExtensionContext

public ComponentExtensionContext getComponentExtensionContext(java.net.URI extNamespace)
Description copied from interface: WSDLComponent
Returns the ComponentExtensionContext object that provides access to this WSDL component's extension properties from the specified namespace.

Specified by:
getComponentExtensionContext in interface WSDLComponent
Parameters:
extNamespace - the namespace URI of the extension properties
Returns:
the ComponentExtensionContext object for accessing the extension properties

getExtensionProperties

public ExtensionProperty[] getExtensionProperties()
Description copied from interface: PropertyExtensible
Returns all of the component's extension properties. These may span multiple namespaces.

Specified by:
getExtensionProperties in interface PropertyExtensible

getExtensionProperties

public ExtensionProperty[] getExtensionProperties(java.net.URI extNamespace)
Description copied from interface: PropertyExtensible
Returns the component's extension properties from a particular namespace.

Specified by:
getExtensionProperties in interface PropertyExtensible
Parameters:
extNamespace - URI representing the namespace of the required extension properties
Returns:
extension properties from the specified namespace

getExtensionProperty

public ExtensionProperty getExtensionProperty(java.net.URI extNamespace,
                                              java.lang.String propertyName)
Description copied from interface: PropertyExtensible
Returns the component's named extension property from the specified namespace. Within the WSDL 2.0-defined extensions, the extension property name itself is unique, but it is possible that property name collisions could occur across different user-defined extensions, so the extension namespace is used with property name to ensure uniqueness.

Specified by:
getExtensionProperty in interface PropertyExtensible
Parameters:
extNamespace - the namespace of the named extension property
propertyName - the name of the required extension property
Returns:
the named extension property

containsComponent

protected boolean containsComponent(WSDLComponent comp,
                                    java.util.List components)

toString

public java.lang.String toString()
Description copied from interface: WSDLComponent
Returns a String serialisation of the fragment identifier for this WSDL 2.0 component.

Specified by:
toString in interface WSDLComponent
Overrides:
toString in class java.lang.Object
Returns:
a String the serialisation of the fragment identifier for this WSDL 2.0 component.


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