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