public final class DirectionKind extends Object
This class cannot be instantiated or subclassed by clients.
ModelParameter.getDirection()
Modifier and Type | Field and Description |
---|---|
static DirectionKind |
IN
in : elements are read in the input model, no modification performed.
|
static DirectionKind |
INOUT
inout : some elements are read and others are created in the model.
|
static DirectionKind |
OUT
out : elements are created in the output model.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isIn()
Return
true if the direction is in . |
boolean |
isInOut()
Return
true if the direction is inout . |
boolean |
isOut()
Return
true if the direction is out . |
String |
toString()
Returns a
String representation of this direction. |
static DirectionKind |
valueOf(String value)
Determines the direction represented as a
String value. |
public static final DirectionKind IN
public static final DirectionKind OUT
public static final DirectionKind INOUT
public static DirectionKind valueOf(String value) throws IllegalArgumentException
String
value.value
- a String
representing a direction.IllegalArgumentException
- if the value is not recognized.public boolean isIn()
true
if the direction is in
.true
if the direction is in
.IN
public boolean isOut()
true
if the direction is out
.true
if the direction is out
.OUT
public boolean isInOut()
true
if the direction is inout
.true
if the direction is inout
.INOUT