i3.dragos.gm.core.schema
Enum RelationEndDirection

java.lang.Object
  extended by java.lang.Enum<RelationEndDirection>
      extended by i3.dragos.gm.core.schema.RelationEndDirection
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RelationEndDirection>

public enum RelationEndDirection
extends java.lang.Enum<RelationEndDirection>

Relation ends may have different directions.

Author:
Boris Boehlen <boehlen@cs.rwth-aachen.de>

Enum Constant Summary
IN
          Directed towards the relation.
NONE
          No direction.
OUT
          Directed towards the graph element.
 
Method Summary
static RelationEndDirection getByIntValue(int i)
          Returns the enumeration element with the specified int value.
 int getIntValue()
          Returns the int value for this RelationEndDirection.
static RelationEndDirection valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RelationEndDirection[] 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

IN

public static final RelationEndDirection IN
Directed towards the relation.


OUT

public static final RelationEndDirection OUT
Directed towards the graph element.


NONE

public static final RelationEndDirection NONE
No direction.

Method Detail

values

public static RelationEndDirection[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RelationEndDirection c : RelationEndDirection.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RelationEndDirection valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getIntValue

public final int getIntValue()
Returns the int value for this RelationEndDirection.

Returns:
the int value for this RelationEndDirection.

getByIntValue

public static final RelationEndDirection getByIntValue(int i)
                                                throws DragosException
Returns the enumeration element with the specified int value. This methdod has to be updated when introducing new elements!

Parameters:
i - The internal identifier of the element.
Returns:
The requested element.
Throws:
DragosException - If an invalid int value was supplied.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.