public class Direction extends StringKey
Direction class represents the direction in which a DataMapping is
performed or the direction in which an access path is applied to an access point.
Always use "==" to check for equality.| Modifier and Type | Field and Description |
|---|---|
static Direction |
IN
The
IN direction represents a data mapping evaluation from the data
to the engine or application. |
static Direction |
IN_OUT
The
IN_OUT direction specifies that the access point accepts both
set and get access. |
static Direction |
OUT
The
OUT direction represents a data mapping evaluation from the engine
or application to the data. |
| Modifier and Type | Method and Description |
|---|---|
static Direction |
getDualValue(Direction direction)
Factory method to get the opposite direction to the specified one.
|
static Direction |
getKey(String id)
Translates the stringified ID into the appropriate key instance.
|
boolean |
isCompatibleWith(Direction direction)
Gets whether the supplied direction is compatible with this direction.
|
public static final Direction IN
IN direction represents a data mapping evaluation from the data
to the engine or application. In the case of access points, the IN
direction specifies that this access point accepts only set access.public static final Direction OUT
OUT direction represents a data mapping evaluation from the engine
or application to the data. In the case of access points, the OUT
direction specifies that this access point accepts only get access.public static final Direction IN_OUT
IN_OUT direction specifies that the access point accepts both
set and get access.public static Direction getKey(String id)
id - The stringified ID to be resolved.null if no key could be resolved.public static Direction getDualValue(Direction direction)
direction - the direction to which you want to obtain the opposite.public boolean isCompatibleWith(Direction direction)
direction - to compare with.Copyright © 2016 Eclipse Stardust. All Rights Reserved.