org.apache.woden.wsdl20.enumeration
Class Direction

java.lang.Object
  extended by 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:

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

Field Summary
static Direction IN
           
static Direction OUT
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IN

public static final Direction IN

OUT

public static final Direction OUT
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007. All Rights Reserved.