com.sap.engine.interfaces.messaging.api

Class MessageDirection

java.lang.Object
  extended by com.sap.engine.interfaces.messaging.api.MessageDirection
All Implemented Interfaces:
Serializable

public class MessageDirection
extends Object
implements Serializable

The MessageDirection object is a typesafe enumeration class that indicates the direction of the processed message (inbound or outbound). The class encapsulates the database representation of the states in the MSG table in Java form. There are exactly two possible directions:

See Also:
Serialized Form

Field Summary
static MessageDirection INBOUND
           
static MessageDirection OUTBOUND
           
 
Constructor Summary
protected MessageDirection(String value)
           
 
Method Summary
 boolean equals(Object obj)
           
static MessageDirection[] getMessageDirections()
          Returns an array of all known MessageDirection constants.
 int hashCode()
           
protected  Object readResolve()
           
 String toString()
          Returns the string representation of the direction.
static MessageDirection valueOf(String s)
          Returns an instance of MessageDirection 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 MessageDirection INBOUND

OUTBOUND

public static final MessageDirection OUTBOUND
Constructor Detail

MessageDirection

protected MessageDirection(String value)
Method Detail

toString

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

Overrides:
toString in class Object
Returns:
the string representation of the MessageDirection.

valueOf

public static MessageDirection valueOf(String s)
Returns an instance of MessageDirection that represents the direction given as a string. This will typically be used to create a MessageDirection object from a string retrieved from the database.

Throws:
NullPointerException - if the argument is null.
IllegalArgumentException - if the argument is not a known transport.

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

getMessageDirections

public static MessageDirection[] getMessageDirections()
Returns an array of all known MessageDirection constants.

Returns:
An array containing all known MessageDirection constants.
Access Rights

This class can be accessed from:


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


Copyright 2014 SAP AG Complete Copyright Notice