org.apache.woden.wsdl20.enumeration
Class Direction
java.lang.Object
org.apache.woden.wsdl20.enumeration.Direction
public class Direction
- extends java.lang.Object
This class defines the values of the {direction} property of
InterfaceMessageReference and InterfaceFaultReference. This property
indicates whether a message is coming "in" to the service or going "out"
from the service.
The property is represented in XML by the message or fault
reference element's tag name:
- <input> and <infault> have the direction "in" -
represented by the constant IN
- <output> and <outfault> have the direction "out" -
represented by the constant OUT
This class uses the typesafe enum pattern. Applications should use the
public static final constants defined in this class to specify or to
evaluate direction.
Examples:
msgRef.setDirection(Direction.IN);
if(msgRef.getDirection() == Direction.IN) ...
if(msgRef.getDirection().equals(Direction.IN)) ...
Note that == and .equals() are equivalent.
TODO if extensibility is required, chg ctor to protected
- Author:
- jkaputin@apache.org
Method Summary |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IN
public static final Direction IN
OUT
public static final Direction OUT
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2005-2010 Apache Software Foundation. All Rights Reserved.