org.apache.woden.internal.wsdl20
Class BindingImpl

java.lang.Object
  extended by org.apache.woden.internal.wsdl20.WSDLElementImpl
      extended by org.apache.woden.internal.wsdl20.WSDLObjectImpl
          extended by org.apache.woden.internal.wsdl20.DocumentableImpl
              extended by org.apache.woden.internal.wsdl20.BindingImpl
All Implemented Interfaces:
Binding, AttributeExtensible, ElementExtensible, WSDLComponent, BindingElement, DocumentableElement, NestedElement, WSDLElement

public class BindingImpl
extends DocumentableImpl
implements Binding, BindingElement

This class represents the Binding component from the WSDL 2.0 Component Model and the WSDL <binding> element.

Author:
John Kaputin (jkaputin@apache.org)

Constructor Summary
BindingImpl()
           
 
Method Summary
 BindingFaultElement addBindingFaultElement()
          Create a BindingFaultElement with this BindingElement as its parent and return a reference to it.
 BindingOperationElement addBindingOperationElement()
          Create a BindingOperationElement with this BindingElement as its parent and return a reference to it.
 BindingFaultElement[] getBindingFaultElements()
          Return the set of BindingFaultElements within this BindingElement.
 BindingFaultElement getBindingFaultElementWithRef(QName qname)
           
 BindingFault[] getBindingFaults()
          Represents the {binding faults} property of the Binding component.
 BindingOperationElement[] getBindingOperationElements()
          Return the set of BindingOperationElements within this BindingElement This equates to the set of <operation> elements within the <binding> element.
 BindingOperationElement getBindingOperationElementWithRef(QName qname)
           
 BindingOperation[] getBindingOperations()
          Represents the {binding operations} property of the Binding component.
 Description getDescriptionComponent()
           
 Interface getInterface()
          Represents the {interface} property of the Binding component.
 InterfaceElement getInterfaceElement()
          Return the InterfaceElement referred to by this BindingElement.
 QName getInterfaceName()
          Return the name of the InterfaceElement referred to by this BindingElement.
 QName getName()
          Returns a QName representing the {name} property of the Binding component.
 WSDLElement getParentElement()
           
 java.net.URI getType()
          Returns a URI representing the {type} property of the Binding component.
 void setInterfaceName(QName qname)
          Specify the name of the InterfaceElement referred to by this BindingElement.
 void setName(NCName name)
          Set the name of this BindingElement to the specified NCName.
 void setParentElement(WSDLElement parent)
           
 void setType(java.net.URI type)
          Set the binding type to the specified URI.
 BindingElement toElement()
          Returns a WSDLElement that represents the element information item from the WSDL 2.0 infoset that maps to this WSDLComponent.
 
Methods inherited from class org.apache.woden.internal.wsdl20.DocumentableImpl
addDocumentationElement, getDocumentationElements
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLObjectImpl
containsComponent, equals, getComponentExtensionsForNamespace, setComponentExtensions
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLElementImpl
addExtensionElement, getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, getExtensionElements, getExtensionElementsOfType, hasExtensionAttributesForNamespace, hasExtensionElementsForNamespace, removeExtensionElement, setExtensionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.woden.wsdl20.WSDLComponent
equals, getComponentExtensionsForNamespace
 
Methods inherited from interface org.apache.woden.wsdl20.xml.DocumentableElement
addDocumentationElement, getDocumentationElements
 
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

BindingImpl

public BindingImpl()
Method Detail

getName

public QName getName()
Description copied from interface: Binding
Returns a QName representing the {name} property of the Binding component.

Specified by:
getName in interface Binding
Specified by:
getName in interface BindingElement
Returns:
QName the qualified name of the Binding

getInterface

public Interface getInterface()
Description copied from interface: Binding
Represents the {interface} property of the Binding component. This is the Interface component that this Binding defines concrete bindings for. For an 'interface-less' or 'generic' binding, this method will return null.

Specified by:
getInterface in interface Binding
Returns:
Interface for which bindings are provided by this Binding

getType

public java.net.URI getType()
Description copied from interface: Binding
Returns a URI representing the {type} property of the Binding component.

For example:
For a SOAP binding this will be the uri "http://www.w3.org/ns/wsdl/soap".
For an HTTP binding this will be the uri "http://www.w3.org/ns/wsdl/http".

Specified by:
getType in interface Binding
Specified by:
getType in interface BindingElement
Returns:
URI representing the binding type

getBindingFaults

public BindingFault[] getBindingFaults()
Description copied from interface: Binding
Represents the {binding faults} property of the Binding component. This is the set of binding faults declared by this binding. The method will return an empty array if there are no binding faults.

Specified by:
getBindingFaults in interface Binding
Returns:
an array of BindingFault objects

getBindingOperations

public BindingOperation[] getBindingOperations()
Description copied from interface: Binding
Represents the {binding operations} property of the Binding component. This is the set of binding operations declared by this binding. The method will return an empty array if there are no binding operations.

Specified by:
getBindingOperations in interface Binding
Returns:
an array of BindingOperation objects

toElement

public BindingElement toElement()
Description copied from interface: Binding
Returns a WSDLElement that represents the element information item from the WSDL 2.0 infoset that maps to this WSDLComponent.

Specified by:
toElement in interface Binding
Returns:
the BindingElement that maps to this Binding

setName

public void setName(NCName name)
Description copied from interface: BindingElement
Set the name of this BindingElement to the specified NCName. This corresponds to the name attribute of the <binding> element.

Specified by:
setName in interface BindingElement
Parameters:
name - the NCName that represents this binding.

setInterfaceName

public void setInterfaceName(QName qname)
Description copied from interface: BindingElement
Specify the name of the InterfaceElement referred to by this BindingElement. This corresponds to the interface attribute of the <binding> element.

Specified by:
setInterfaceName in interface BindingElement
Parameters:
qname - the QName of the interface

getInterfaceName

public QName getInterfaceName()
Description copied from interface: BindingElement
Return the name of the InterfaceElement referred to by this BindingElement. This corresponds to the interface attribute of the <binding> element.

Specified by:
getInterfaceName in interface BindingElement
Returns:
the interface QName

getInterfaceElement

public InterfaceElement getInterfaceElement()
Description copied from interface: BindingElement
Return the InterfaceElement referred to by this BindingElement. This equates to the <interface> element referred to by the interface attribute of the <binding> element. If this reference cannot be resolved to an InterfaceElement or if this BindingElement is a generic (interface-less) binding, this method will return null.

Specified by:
getInterfaceElement in interface BindingElement
Returns:
the InterfaceElement

setType

public void setType(java.net.URI type)
Description copied from interface: BindingElement
Set the binding type to the specified URI. This identifies the type of WSDL extensions used with this binding. This corresponds to the type attribute of the <binding> element.

Specified by:
setType in interface BindingElement
Parameters:
type - the URI indicating the binding type

addBindingFaultElement

public BindingFaultElement addBindingFaultElement()
Description copied from interface: BindingElement
Create a BindingFaultElement with this BindingElement as its parent and return a reference to it. This equates to adding a <fault> element to the <binding> element.

Specified by:
addBindingFaultElement in interface BindingElement
Returns:
the BindingFaultElement

getBindingFaultElements

public BindingFaultElement[] getBindingFaultElements()
Description copied from interface: BindingElement
Return the set of BindingFaultElements within this BindingElement. This equates to the set of <fault> elements within the <binding> element. If no BindingFaultElements exist, an empty array is returned.

Specified by:
getBindingFaultElements in interface BindingElement
Returns:
an array of BindingFaultElement

addBindingOperationElement

public BindingOperationElement addBindingOperationElement()
Description copied from interface: BindingElement
Create a BindingOperationElement with this BindingElement as its parent and return a reference to it. This equates to adding an <operation> element to the <binding> element.

Specified by:
addBindingOperationElement in interface BindingElement
Returns:
the BindingOperationElement

getBindingOperationElements

public BindingOperationElement[] getBindingOperationElements()
Description copied from interface: BindingElement
Return the set of BindingOperationElements within this BindingElement This equates to the set of <operation> elements within the <binding> element. If no BindingOperationElements exist, an empty array is returned.

Specified by:
getBindingOperationElements in interface BindingElement
Returns:
an array of BindingOperationElement

setParentElement

public void setParentElement(WSDLElement parent)
Specified by:
setParentElement in interface NestedElement

getParentElement

public WSDLElement getParentElement()
Specified by:
getParentElement in interface NestedElement

getBindingFaultElementWithRef

public BindingFaultElement getBindingFaultElementWithRef(QName qname)

getBindingOperationElementWithRef

public BindingOperationElement getBindingOperationElementWithRef(QName qname)

getDescriptionComponent

public Description getDescriptionComponent()


Copyright © 2007. All Rights Reserved.