|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RelationDirection>
org.umlgraph.doclet.RelationDirection
public enum RelationDirection
The possibile directions of a relation given a reference class (used in context diagrams)
Enum Constant Summary | |
---|---|
BOTH
|
|
IN
|
|
NONE
|
|
OUT
|
Method Summary | |
---|---|
boolean |
contains(RelationDirection d)
Returns true if this direction "contains" the specified one, that is, either it's equal to it, or this direction is BOTH |
RelationDirection |
inverse()
Inverts the direction of the relation. |
RelationDirection |
sum(RelationDirection d)
Adds the current direction |
static RelationDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RelationDirection[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RelationDirection NONE
public static final RelationDirection IN
public static final RelationDirection OUT
public static final RelationDirection BOTH
Method Detail |
---|
public static RelationDirection[] values()
for (RelationDirection c : RelationDirection.values()) System.out.println(c);
public static RelationDirection valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic RelationDirection sum(RelationDirection d)
d
-
public boolean contains(RelationDirection d)
BOTH
d
-
public RelationDirection inverse()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |