de.cau.cs.kieler.keg
Enum EdgeType

java.lang.Object
  extended by java.lang.Enum<EdgeType>
      extended by de.cau.cs.kieler.keg.EdgeType
All Implemented Interfaces:
Comparable<EdgeType>, Enumerator

public enum EdgeType
extends Enum<EdgeType>
implements Enumerator

A representation of the literals of the enumeration 'Edge Type', and utility methods for working with them.

See Also:
KEGPackage.getEdgeType()
Rating red
Generated:
This code was automatically generated.
Model element

Enum Constant Summary
NODE2_NODE
          The 'Node2 Node' literal object.
NODE2_PORT
          The 'Node2 Port' literal object.
PORT2_NODE
          The 'Port2 Node' literal object.
PORT2_PORT
          The 'Port2 Port' literal object.
 
Field Summary
static int NODE2_NODE_VALUE
          The 'Node2 Node' literal value.
static int NODE2_PORT_VALUE
          The 'Node2 Port' literal value.
static int PORT2_NODE_VALUE
          The 'Port2 Node' literal value.
static int PORT2_PORT_VALUE
          The 'Port2 Port' literal value.
static List<EdgeType> VALUES
          A public read-only list of all the 'Edge Type' enumerators.
 
Method Summary
static EdgeType get(int value)
          Returns the 'Edge Type' literal with the specified integer value.
static EdgeType get(String literal)
          Returns the 'Edge Type' literal with the specified literal value.
static EdgeType getByName(String name)
          Returns the 'Edge Type' literal with the specified name.
 String getLiteral()
           
 String getName()
           
 int getValue()
           
 String toString()
          Returns the literal value of the enumerator, which is its string representation.
static EdgeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EdgeType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NODE2_NODE

public static final EdgeType NODE2_NODE
The 'Node2 Node' literal object.

See Also:
NODE2_NODE_VALUE
Generated:
This code was automatically generated.
Ordered

NODE2_PORT

public static final EdgeType NODE2_PORT
The 'Node2 Port' literal object.

See Also:
NODE2_PORT_VALUE
Generated:
This code was automatically generated.
Ordered

PORT2_NODE

public static final EdgeType PORT2_NODE
The 'Port2 Node' literal object.

See Also:
PORT2_NODE_VALUE
Generated:
This code was automatically generated.
Ordered

PORT2_PORT

public static final EdgeType PORT2_PORT
The 'Port2 Port' literal object.

See Also:
PORT2_PORT_VALUE
Generated:
This code was automatically generated.
Ordered
Field Detail

NODE2_NODE_VALUE

public static final int NODE2_NODE_VALUE
The 'Node2 Node' literal value.

If the meaning of 'Node2 Node' literal object isn't clear, there really should be more of a description here...

See Also:
NODE2_NODE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=Node2Node
Ordered

NODE2_PORT_VALUE

public static final int NODE2_PORT_VALUE
The 'Node2 Port' literal value.

If the meaning of 'Node2 Port' literal object isn't clear, there really should be more of a description here...

See Also:
NODE2_PORT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=Node2Port
Ordered

PORT2_NODE_VALUE

public static final int PORT2_NODE_VALUE
The 'Port2 Node' literal value.

If the meaning of 'Port2 Node' literal object isn't clear, there really should be more of a description here...

See Also:
PORT2_NODE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=Port2Node
Ordered

PORT2_PORT_VALUE

public static final int PORT2_PORT_VALUE
The 'Port2 Port' literal value.

If the meaning of 'Port2 Port' literal object isn't clear, there really should be more of a description here...

See Also:
PORT2_PORT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=Port2Port
Ordered

VALUES

public static final List<EdgeType> VALUES
A public read-only list of all the 'Edge Type' enumerators.

Generated:
This code was automatically generated.
Method Detail

values

public static EdgeType[] 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 (EdgeType c : EdgeType.values())
    System.out.println(c);

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

valueOf

public static EdgeType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

get

public static EdgeType get(String literal)
Returns the 'Edge Type' literal with the specified literal value.

Generated:
This code was automatically generated.

getByName

public static EdgeType getByName(String name)
Returns the 'Edge Type' literal with the specified name.

Generated:
This code was automatically generated.

get

public static EdgeType get(int value)
Returns the 'Edge Type' literal with the specified integer value.

Generated:
This code was automatically generated.

getValue

public int getValue()

Specified by:
getValue in interface Enumerator
Generated:
This code was automatically generated.

getName

public String getName()

Specified by:
getName in interface Enumerator
Generated:
This code was automatically generated.

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface Enumerator
Generated:
This code was automatically generated.

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<EdgeType>
Generated:
This code was automatically generated.