org.apache.woden.wsdl20.xml
Interface BindingElement

All Superinterfaces:
AttributeExtensible, DocumentableElement, ElementExtensible, NestedElement, WSDLElement
All Known Implementing Classes:
BindingImpl

public interface BindingElement
extends DocumentableElement, NestedElement

Represents the WSDL 2.0 <binding> element.

Author:
John Kaputin (jkaputin@apache.org)

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.
 BindingOperationElement[] getBindingOperationElements()
          Return the set of BindingOperationElements within this BindingElement This equates to the set of <operation> elements within the <binding> element.
 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()
          Return the qualified name of this BindingElement, which consists of its local name and the targetNamespace of the parent DescriptionElement.
 java.net.URI getType()
          Return the URI that identifies the binding type.
 void setInterfaceName(QName interfaceName)
          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 setType(java.net.URI type)
          Set the binding type to the specified URI.
 
Methods inherited from interface org.apache.woden.wsdl20.xml.DocumentableElement
addDocumentationElement, getDocumentationElements
 
Methods inherited from interface org.apache.woden.wsdl20.xml.NestedElement
getParentElement, setParentElement
 
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
 

Method Detail

setName

void setName(NCName name)
Set the name of this BindingElement to the specified NCName. This corresponds to the name attribute of the <binding> element.

Parameters:
name - the NCName that represents this binding.

getName

QName getName()
Return the qualified name of this BindingElement, which consists of its local name and the targetNamespace of the parent DescriptionElement.

Returns:
the binding QName

setInterfaceName

void setInterfaceName(QName interfaceName)
Specify the name of the InterfaceElement referred to by this BindingElement. This corresponds to the interface attribute of the <binding> element.

Parameters:
interfaceName - the QName of the interface

getInterfaceName

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

Returns:
the interface QName

getInterfaceElement

InterfaceElement getInterfaceElement()
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.

Returns:
the InterfaceElement

setType

void setType(java.net.URI type)
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.

Parameters:
type - the URI indicating the binding type

getType

java.net.URI getType()
Return the URI that identifies the binding type. This corresponds to the type attribute of the <binding> element.

Returns:
the binding type URI

addBindingFaultElement

BindingFaultElement addBindingFaultElement()
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.

Returns:
the BindingFaultElement

getBindingFaultElements

BindingFaultElement[] getBindingFaultElements()
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.

Returns:
an array of BindingFaultElement

addBindingOperationElement

BindingOperationElement addBindingOperationElement()
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.

Returns:
the BindingOperationElement

getBindingOperationElements

BindingOperationElement[] getBindingOperationElements()
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.

Returns:
an array of BindingOperationElement


Copyright © 2007. All Rights Reserved.