org.apache.woden.internal.wsdl20
Class InterfaceFaultReferenceImpl
java.lang.Object
org.apache.woden.internal.wsdl20.WSDLElementImpl
org.apache.woden.internal.wsdl20.DocumentableImpl
org.apache.woden.internal.wsdl20.WSDLComponentImpl
org.apache.woden.internal.wsdl20.NestedImpl
org.apache.woden.internal.wsdl20.InterfaceFaultReferenceImpl
- All Implemented Interfaces:
- AttributeExtensible, ElementExtensible, PropertyExtensible, 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
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLElementImpl |
addExtensionElement, addNamespace, getDeclaredNamespaces, getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, getExtensionElements, getExtensionElementsOfType, getInScopeNamespaces, getNamespacePrefix, getNamespaceURI, hasExtensionAttributesForNamespace, hasExtensionElementsForNamespace, removeExtensionElement, removeNamespace, setExtensionAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InterfaceFaultReferenceImpl
public InterfaceFaultReferenceImpl()
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
getFragmentIdentifier
public FragmentIdentifier getFragmentIdentifier()
- Description copied from interface:
WSDLComponent
- Returns the fragment identifier for this WSDL 2.0 component.
- Specified by:
getFragmentIdentifier
in interface WSDLComponent
- Returns:
- a FragmentIdentifier for this WSDL 2.0 component.
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.