org.apache.woden.internal.wsdl20
Class InterfaceOperationImpl

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.InterfaceOperationImpl
All Implemented Interfaces:
AttributeExtensible, ElementExtensible, InterfaceOperation, NestedComponent, WSDLComponent, DocumentableElement, InterfaceOperationElement, NestedElement, WSDLElement

public class InterfaceOperationImpl
extends NestedImpl
implements InterfaceOperation, InterfaceOperationElement

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

Author:
jkaputin@apache.org

Constructor Summary
InterfaceOperationImpl()
           
 
Method Summary
 InterfaceFaultReferenceElement addInterfaceFaultReferenceElement()
          Create an InterfaceFaultReferenceElement with this InterfaceOperationElement as its parent and return a reference to it.
 InterfaceMessageReferenceElement addInterfaceMessageReferenceElement()
          Create an InterfaceMessageReferenceElement with this InterfaceOperationElement as its parent and return a reference to it.
 void addStyleURI(java.net.URI uri)
          Add the specified URI to the set of style URIs used by this InterfaceOperationElement.
 InterfaceFaultReferenceElement[] getInterfaceFaultReferenceElements()
          Return the set of InterfaceFaultReferenceElement within this InterfaceOperationElement.
 InterfaceFaultReference[] getInterfaceFaultReferences()
          Represents the {interface fault references} property of the InterfaceOperation component.
 InterfaceMessageReferenceElement[] getInterfaceMessageReferenceElements()
          Return the set of InterfaceMessageReferenceElements within this InterfaceOperationElement.
 InterfaceMessageReference[] getInterfaceMessageReferences()
          Represents the {interface message references} property of the InterfaceOperation component.
 java.net.URI getMessageExchangePattern()
          Returns a URI representing the {message exchange pattern} property of this InterfaceOperation.
 QName getName()
          Returns the qualified name representing the {name} property of this InterfaceOperation.
 java.net.URI getPattern()
          Return the URI representing the message exchange pattern used by this InterfaceOperationElement.
 java.net.URI[] getStyle()
          Represents the {style} property of the InterfaceOperation component.
 void removeInterfaceFaultReferenceElement(InterfaceFaultReferenceElement faultRef)
          Remove the specified InterfaceFaultReferenceElement from the set of InterfaceFaultReferenceElements within this InterfaceOperationElement.
 void removeInterfaceMessageReferenceElement(InterfaceMessageReferenceElement msgRef)
          Remove the specified InterfaceMessageReferenceElement from the set of InterfaceMessageReferenceElements within this InterfaceOperationElement.
 void removeStyleURI(java.net.URI uri)
          Remove the specified URI from the set of style URIs used by this InterfaceOperationElement.
 void setName(NCName name)
          Set the name of this InterfaceOperationElement to the specified NCName.
 void setPattern(java.net.URI uri)
          Set the message exchange pattern used by this InterfaceOperationElement to the specified URI.
 InterfaceOperationElement 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

InterfaceOperationImpl

public InterfaceOperationImpl()
Method Detail

getName

public QName getName()
Description copied from interface: InterfaceOperation
Returns the qualified name representing the {name} property of this InterfaceOperation.

Specified by:
getName in interface InterfaceOperation
Specified by:
getName in interface InterfaceOperationElement
Returns:
QName representing the name of this InterfaceOperation

getMessageExchangePattern

public java.net.URI getMessageExchangePattern()
Description copied from interface: InterfaceOperation
Returns a URI representing the {message exchange pattern} property of this InterfaceOperation.

Specified by:
getMessageExchangePattern in interface InterfaceOperation
Returns:
URI of the message exchange pattern.

getInterfaceMessageReferences

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

Specified by:
getInterfaceMessageReferences in interface InterfaceOperation
Returns:
an array of InterfaceMessageReference

getInterfaceFaultReferences

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

Specified by:
getInterfaceFaultReferences in interface InterfaceOperation
Returns:
an array of InterfaceFaultReference

getStyle

public java.net.URI[] getStyle()
Description copied from interface: InterfaceOperation
Represents the {style} property of the InterfaceOperation component. This is a set of URIs which specify the rules that constrain the content of input and output messages and faults of the interface operation. This method will return an empty array if there are no style URIs.

Specified by:
getStyle in interface InterfaceOperation
Specified by:
getStyle in interface InterfaceOperationElement
Returns:
an array of URI

toElement

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

setName

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

Specified by:
setName in interface InterfaceOperationElement
Parameters:
name - the NCName that represents the local name of this interface operation

setPattern

public void setPattern(java.net.URI uri)
Description copied from interface: InterfaceOperationElement
Set the message exchange pattern used by this InterfaceOperationElement to the specified URI. This corresponds to the pattern attribute of the interface <operation> element.

Specified by:
setPattern in interface InterfaceOperationElement
Parameters:
uri - the message exchange pattern URI

getPattern

public java.net.URI getPattern()
Description copied from interface: InterfaceOperationElement
Return the URI representing the message exchange pattern used by this InterfaceOperationElement. This corresponds to the name attribute of the interface <operation> element.

Specified by:
getPattern in interface InterfaceOperationElement
Returns:
the URI representing the message exchange pattern

addStyleURI

public void addStyleURI(java.net.URI uri)
Description copied from interface: InterfaceOperationElement
Add the specified URI to the set of style URIs used by this InterfaceOperationElement. This equates to adding a URI to the style attribute of the interface <operation> element. If a null style URI is specified, no action is performed.

Specified by:
addStyleURI in interface InterfaceOperationElement
Parameters:
uri - a URI representing an operation style

removeStyleURI

public void removeStyleURI(java.net.URI uri)
Description copied from interface: InterfaceOperationElement
Remove the specified URI from the set of style URIs used by this InterfaceOperationElement. This equates to removing a URI from the style attribute of the interface <operation> element. If the specified URI is not present in the set of style URIs or if a null URI is specified, no action is performed.

Specified by:
removeStyleURI in interface InterfaceOperationElement
Parameters:
uri - a URI representing an operation style

addInterfaceMessageReferenceElement

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

Specified by:
addInterfaceMessageReferenceElement in interface InterfaceOperationElement
Returns:
the InterfaceMessageReferenceElement

removeInterfaceMessageReferenceElement

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

Specified by:
removeInterfaceMessageReferenceElement in interface InterfaceOperationElement
Parameters:
msgRef - the InterfaceMessageReferenceElement to be removed

getInterfaceMessageReferenceElements

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

Specified by:
getInterfaceMessageReferenceElements in interface InterfaceOperationElement
Returns:
an array of InterfaceMessageReferenceElement

addInterfaceFaultReferenceElement

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

Specified by:
addInterfaceFaultReferenceElement in interface InterfaceOperationElement
Returns:
the InterfaceFaultReferenceElement

removeInterfaceFaultReferenceElement

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

Specified by:
removeInterfaceFaultReferenceElement in interface InterfaceOperationElement
Parameters:
faultRef - the InterfaceFaultReferenceElement to be removed

getInterfaceFaultReferenceElements

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

Specified by:
getInterfaceFaultReferenceElements in interface InterfaceOperationElement
Returns:
an array of InterfaceFaultReferenceElement


Copyright © 2007. All Rights Reserved.