com.sap.aii.af.service.cpa

Class Direction

java.lang.Object
  extended by com.sap.aii.af.service.cpa.Direction
All Implemented Interfaces:
Serializable

public class Direction
extends Object
implements Serializable

The Direction object is a typed enumeration class that indicates the direction of CPA configuration (inbound or outbound) for the Channel and Binding object (sender/receiver agreement in XI notation). Note that the direction in the Adapter Framework is handled in respect to the Adapter Framework itself, instead of the Integration Server. There are exactly two possible directions:

See Also:
Binding, Channel, Serialized Form

Field Summary
static Direction INBOUND
           
static Direction OUTBOUND
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDBFlag()
          Returns the String representation of the direction for storage in the database.
static Direction getDirectionFromDBFlag(String flag)
          Returns the Direction instance for a given DB representation String.
 int hashCode()
           
protected  Object readResolve()
           
 String toString()
          Returns the string representation of the direction.
static Direction valueOf(String s)
          Returns an instance of Direction that represents the direction given as a String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INBOUND

public static final Direction INBOUND

OUTBOUND

public static final Direction OUTBOUND
Method Detail

toString

public String toString()
Returns the string representation of the direction. This value can be used to get a Direction instance by a call to valueOf (String).

Overrides:
toString in class Object
Returns:
The String representation of the Direction.
See Also:
valueOf(String)

getDBFlag

public String getDBFlag()
Returns the String representation of the direction for storage in the database. This method is necessary, because the representation in the DB is different than the String constants defined in this class. The DB representation String can be turned back into an Direction instance with the getDirectionFromDBFlag.

Returns:
The String representation of the Direction for writing to the database.
See Also:
getDirectionFromDBFlag(String)

getDirectionFromDBFlag

public static Direction getDirectionFromDBFlag(String flag)
Returns the Direction instance for a given DB representation String.

Returns:
The Direction instance for the given DB representation String.
See Also:
getDBFlag()

valueOf

public static Direction valueOf(String s)
Returns an instance of Direction that represents the direction given as a String.

Parameters:
s - The String representation where the Direction is to be created from.
Throws:
NullPointerException - if the argument is null.
IllegalArgumentException - if the argument is not a known direction.

readResolve

protected Object readResolve()
                      throws ObjectStreamException
Throws:
ObjectStreamException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.af.svc.facade api BC-XI


Copyright 2014 SAP AG Complete Copyright Notice