org.apache.woden.internal.wsdl20
Class InterfaceFaultReferenceImpl

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.InterfaceFaultReferenceImpl
All Implemented Interfaces:
AttributeExtensible, ElementExtensible, InterfaceFaultReference, NestedComponent, WSDLComponent, DocumentableElement, InterfaceFaultReferenceElement, NestedElement, WSDLElement

public class InterfaceFaultReferenceImpl
extends NestedImpl
implements InterfaceFaultReference, InterfaceFaultReferenceElement

This class represents the InterfaceFaultReference component of the WSDL 2.0 Component model and the <infault> and <outfault> child elements of an interface <operation>.

Author:
jkaputin@apache.org

Constructor Summary
InterfaceFaultReferenceImpl()
           
 
Method Summary
 Direction getDirection()
          Returns an enumerated type, Direction, that represents the {direction} property of this InterfaceFaultReference.
 InterfaceFault getInterfaceFault()
          Returns an InterfaceFault representing the {interface fault} property of this InterfaceFaultReference.
 InterfaceFaultElement getInterfaceFaultElement()
          Return the InterfaceFaultElement referred to by this InterfaceFaultReferenceElement.
 NCName getMessageLabel()
          Returns an NCName representing the {message label} property of this InterfaceFaultReference.
 QName getRef()
          Return the name of the InterfaceFaultElement referred to by this InterfaceFaultReferenceElement.
 void setDirection(Direction dir)
          Set the message direction using the specified enumerated type, Direction, which indicates the direction of the fault.
 void setMessageLabel(NCName msgLabel)
          Set the message label to the specified NCName.
 void setRef(QName faultQName)
          Specify the name of the InterfaceFaultElement referred to by this InterfaceFaultReferenceElement.
 InterfaceFaultReferenceElement 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

InterfaceFaultReferenceImpl

public InterfaceFaultReferenceImpl()
Method Detail

getInterfaceFault

public InterfaceFault getInterfaceFault()
Description copied from interface: InterfaceFaultReference
Returns an InterfaceFault representing the {interface fault} property of this InterfaceFaultReference. It identifies the interface fault that is associated with the parent interface operation by this interface fault reference.

Specified by:
getInterfaceFault in interface InterfaceFaultReference
Returns:
an InterfaceFault associated by this InterfaceFaultReference

getMessageLabel

public NCName getMessageLabel()
Description copied from interface: InterfaceFaultReference
Returns an NCName representing the {message label} property of this InterfaceFaultReference. This associates the fault with a placeholder message in the message exchange pattern identified by the parent interface operation.

Specified by:
getMessageLabel in interface InterfaceFaultReference
Specified by:
getMessageLabel in interface InterfaceFaultReferenceElement
Returns:
an NCName representing the message label

getDirection

public Direction getDirection()
Description copied from interface: InterfaceFaultReference
Returns an enumerated type, Direction, that represents the {direction} property of this InterfaceFaultReference. This indicates the direction in which this fault is used; 'in' or 'out'.

Specified by:
getDirection in interface InterfaceFaultReference
Specified by:
getDirection in interface InterfaceFaultReferenceElement
Returns:
the Direction of this fault

toElement

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

setRef

public void setRef(QName faultQName)
Description copied from interface: InterfaceFaultReferenceElement
Specify the name of the InterfaceFaultElement referred to by this InterfaceFaultReferenceElement. The specified QName corresponds to the ref attribute of the interface operation <infault> or <outfault> element.

Specified by:
setRef in interface InterfaceFaultReferenceElement
Parameters:
faultQName - the QName of the interface fault

getRef

public QName getRef()
Description copied from interface: InterfaceFaultReferenceElement
Return the name of the InterfaceFaultElement referred to by this InterfaceFaultReferenceElement. This corresponds to the ref attribute of the interface operation <infault> or <outfault> element.

Specified by:
getRef in interface InterfaceFaultReferenceElement
Returns:
the QName of the interface fault

getInterfaceFaultElement

public InterfaceFaultElement getInterfaceFaultElement()
Description copied from interface: InterfaceFaultReferenceElement
Return the InterfaceFaultElement referred to by this InterfaceFaultReferenceElement. This equates to the interface <fault> element referred to by the ref attribute of the interface operation <infault> or <outfault> element. If this reference cannot be resolved to an InterfaceFaultElement, this method will return null.

Specified by:
getInterfaceFaultElement in interface InterfaceFaultReferenceElement
Returns:
the InterfaceFaultElement

setMessageLabel

public void setMessageLabel(NCName msgLabel)
Description copied from interface: InterfaceFaultReferenceElement
Set the message label to the specified NCName. This corresponds to the messageLabel attribute of the interface operation <infault> and <outfault> elements. It represents a placeholder message in the message exchange pattern specified by the parent interface <operation> element.

Specified by:
setMessageLabel in interface InterfaceFaultReferenceElement
Parameters:
msgLabel - the NCName representing the message label

setDirection

public void setDirection(Direction dir)
Description copied from interface: InterfaceFaultReferenceElement
Set the message direction using the specified enumerated type, Direction, which indicates the direction of the fault. Direction.IN corresponds to the interface operation <infault> element. Direction.OUT corresponds to the interface operation <outfault> element.

Specified by:
setDirection in interface InterfaceFaultReferenceElement
Parameters:
dir - the Direction of the fault


Copyright © 2007. All Rights Reserved.