org.apache.woden.internal.wsdl20
Class BindingOperationImpl

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.NestedImpl
                  extended by org.apache.woden.internal.wsdl20.BindingOperationImpl
All Implemented Interfaces:
BindingOperation, AttributeExtensible, ElementExtensible, NestedComponent, WSDLComponent, BindingOperationElement, DocumentableElement, NestedElement, WSDLElement

public class BindingOperationImpl
extends NestedImpl
implements BindingOperation, BindingOperationElement

This class represents the BindingOperation component from the WSDL 2.0 Component Model and the <operation> child element of the WSDL <binding> element.

Author:
jkaputin@apache.org

Constructor Summary
BindingOperationImpl()
           
 
Method Summary
 BindingFaultReferenceElement addBindingFaultReferenceElement()
          Create a BindingFaultReferenceElement with this BindingOperationElement as its parent and return a reference to it.
 BindingMessageReferenceElement addBindingMessageReferenceElement()
          Create a BindingMessageReferenceElement with this BindingOperationElement as its parent and return a reference to it.
 BindingFaultReferenceElement[] getBindingFaultReferenceElements()
          Return the set of BindingFaultReferenceElements within this BindingOperationElement.
 BindingFaultReference[] getBindingFaultReferences()
          Represents the {binding fault references} property of the BindingOperation component.
 BindingMessageReferenceElement[] getBindingMessageReferenceElements()
          Return the set of BindingMessageReferenceElements within this BindingOperationElement.
 BindingMessageReference[] getBindingMessageReferences()
          Represents the {binding message references} property of the BindingOperation component.
 InterfaceOperation getInterfaceOperation()
          Returns an InterfaceOperation representing the {interface operation} property of the BindingOperation component.
 InterfaceOperationElement getInterfaceOperationElement()
          Return the InterfaceOperationElement referred to by this BindingOperationElement.
 QName getRef()
          Return the name of the InterfaceOperationElement referred to by this BindingOperationElement.
 void removeBindingFaultReferenceElement(BindingFaultReferenceElement faultRef)
          Remove the specified BindingFaultReferenceElement from the set of BindingFaultReferenceElements within this BindingOperationElement.
 void removeBindingMessageReferenceElement(BindingMessageReferenceElement msgRef)
          Remove the specified BindingMessageReferenceElement from the set of BindingMessageReferenceElements within this BindingOperationElement.
 void setRef(QName qname)
          Specify the name of the InterfaceOperationElement referred to by this BindingOperationElement.
 BindingOperationElement 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.NestedImpl
getParent, getParentElement, setParentElement
 
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.NestedComponent
getParent
 
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.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
 

Constructor Detail

BindingOperationImpl

public BindingOperationImpl()
Method Detail

getInterfaceOperation

public InterfaceOperation getInterfaceOperation()
Description copied from interface: BindingOperation
Returns an InterfaceOperation representing the {interface operation} property of the BindingOperation component. That is, the interface operation that this binding operation provides concrete bindings for.

Specified by:
getInterfaceOperation in interface BindingOperation
Returns:
InterfaceOperation bound by this BindingOperation

getBindingMessageReferences

public BindingMessageReference[] getBindingMessageReferences()
Description copied from interface: BindingOperation
Represents the {binding message references} property of the BindingOperation component. This is the set of binding message references declared by this binding operation. This method will return an empty array if there are no binding message references for this binding operation.

Specified by:
getBindingMessageReferences in interface BindingOperation
Returns:
an array of BindingMessageReference

getBindingFaultReferences

public BindingFaultReference[] getBindingFaultReferences()
Description copied from interface: BindingOperation
Represents the {binding fault references} property of the BindingOperation component. This is the set of binding fault references declared by this binding operation. This method will return an empty array if there are no binding fault references for this binding operation.

Specified by:
getBindingFaultReferences in interface BindingOperation
Returns:
an array of BindingFaultReference

toElement

public BindingOperationElement toElement()
Description copied from interface: BindingOperation
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 BindingOperation
Returns:
the BindingOperationElement that maps to this BindingOperation

setRef

public void setRef(QName qname)
Description copied from interface: BindingOperationElement
Specify the name of the InterfaceOperationElement referred to by this BindingOperationElement. The specified QName corresponds to the ref attribute of the binding <operation> element.

Specified by:
setRef in interface BindingOperationElement
Parameters:
qname - the QName of the interface operation.

getRef

public QName getRef()
Description copied from interface: BindingOperationElement
Return the name of the InterfaceOperationElement referred to by this BindingOperationElement. This corresponds to the ref attribute of the binding <operation> element.

Specified by:
getRef in interface BindingOperationElement
Returns:
the QName of the interface operation

getInterfaceOperationElement

public InterfaceOperationElement getInterfaceOperationElement()
Description copied from interface: BindingOperationElement
Return the InterfaceOperationElement referred to by this BindingOperationElement. This equates to the interface <operation> element referred to by the ref attribute of the binding <operation> element. If this reference cannot be resolved to an InterfaceOperationElement, this method will return null.

Specified by:
getInterfaceOperationElement in interface BindingOperationElement
Returns:
the InterfaceOperationElement

addBindingMessageReferenceElement

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

Specified by:
addBindingMessageReferenceElement in interface BindingOperationElement
Returns:
the BindingMessageReferenceElement

removeBindingMessageReferenceElement

public void removeBindingMessageReferenceElement(BindingMessageReferenceElement msgRef)
Description copied from interface: BindingOperationElement
Remove the specified BindingMessageReferenceElement from the set of BindingMessageReferenceElements within this BindingOperationElement. This equates to removing an <input> or <output> element from the binding <operation> element. If the specified BindingMessageReferenceElement does not exist or if a null value is specified, no action is performed.

Specified by:
removeBindingMessageReferenceElement in interface BindingOperationElement
Parameters:
msgRef - the BindingMessageReferenceElement to be removed

getBindingMessageReferenceElements

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

Specified by:
getBindingMessageReferenceElements in interface BindingOperationElement
Returns:
an array of BindingMessageReferenceElement

addBindingFaultReferenceElement

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

Specified by:
addBindingFaultReferenceElement in interface BindingOperationElement
Returns:
the BindingFaultReferenceElement

removeBindingFaultReferenceElement

public void removeBindingFaultReferenceElement(BindingFaultReferenceElement faultRef)
Description copied from interface: BindingOperationElement
Remove the specified BindingFaultReferenceElement from the set of BindingFaultReferenceElements within this BindingOperationElement. This equates to removing an <infault> or <outfault> element from the binding <operation> element. If the specified BindingFaultReferenceElement does not exist or if a null value is specified, no action is performed.

Specified by:
removeBindingFaultReferenceElement in interface BindingOperationElement
Parameters:
faultRef - the BindingFaultReferenceElement to be removed

getBindingFaultReferenceElements

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

Specified by:
getBindingFaultReferenceElements in interface BindingOperationElement
Returns:
an array of BindingFaultReferenceElement


Copyright © 2007. All Rights Reserved.