org.graphdrawing.graphml
Enum KeyForType

java.lang.Object
  extended by java.lang.Enum<KeyForType>
      extended by org.graphdrawing.graphml.KeyForType
All Implemented Interfaces:
Comparable<KeyForType>, Enumerator

public enum KeyForType
extends Enum<KeyForType>
implements Enumerator

A representation of the literals of the enumeration 'Key For Type', and utility methods for working with them. Simple type for the for attribute of <key>. key.for.type is a restriction of xs:NMTOKEN Allowed values: all, graph, node, edge, hyperedge, port and endpoint.

See Also:
GraphMLPackage.getKeyForType()
Rating red
Generated:
This code was automatically generated.
Model element:
extendedMetaData=name='key.for.type'

Enum Constant Summary
ALL
          The 'All' literal object.
EDGE
          The 'Edge' literal object.
ENDPOINT
          The 'Endpoint' literal object.
GRAPH
          The 'Graph' literal object.
GRAPHML
          The 'Graphml' literal object.
HYPEREDGE
          The 'Hyperedge' literal object.
NODE
          The 'Node' literal object.
PORT
          The 'Port' literal object.
 
Field Summary
static int ALL_VALUE
          The 'All' literal value.
static int EDGE_VALUE
          The 'Edge' literal value.
static int ENDPOINT_VALUE
          The 'Endpoint' literal value.
static int GRAPH_VALUE
          The 'Graph' literal value.
static int GRAPHML_VALUE
          The 'Graphml' literal value.
static int HYPEREDGE_VALUE
          The 'Hyperedge' literal value.
static int NODE_VALUE
          The 'Node' literal value.
static int PORT_VALUE
          The 'Port' literal value.
static List<KeyForType> VALUES
          A public read-only list of all the 'Key For Type' enumerators.
 
Method Summary
static KeyForType get(int value)
          Returns the 'Key For Type' literal with the specified integer value.
static KeyForType get(String literal)
          Returns the 'Key For Type' literal with the specified literal value.
static KeyForType getByName(String name)
          Returns the 'Key For 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 KeyForType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KeyForType[] 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

ALL

public static final KeyForType ALL
The 'All' literal object.

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

GRAPHML

public static final KeyForType GRAPHML
The 'Graphml' literal object.

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

GRAPH

public static final KeyForType GRAPH
The 'Graph' literal object.

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

NODE

public static final KeyForType NODE
The 'Node' literal object.

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

EDGE

public static final KeyForType EDGE
The 'Edge' literal object.

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

HYPEREDGE

public static final KeyForType HYPEREDGE
The 'Hyperedge' literal object.

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

PORT

public static final KeyForType PORT
The 'Port' literal object.

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

ENDPOINT

public static final KeyForType ENDPOINT
The 'Endpoint' literal object.

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

ALL_VALUE

public static final int ALL_VALUE
The 'All' literal value.

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

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

GRAPHML_VALUE

public static final int GRAPHML_VALUE
The 'Graphml' literal value.

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

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

GRAPH_VALUE

public static final int GRAPH_VALUE
The 'Graph' literal value.

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

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

NODE_VALUE

public static final int NODE_VALUE
The 'Node' literal value.

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

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

EDGE_VALUE

public static final int EDGE_VALUE
The 'Edge' literal value.

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

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

HYPEREDGE_VALUE

public static final int HYPEREDGE_VALUE
The 'Hyperedge' literal value.

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

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

PORT_VALUE

public static final int PORT_VALUE
The 'Port' literal value.

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

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

ENDPOINT_VALUE

public static final int ENDPOINT_VALUE
The 'Endpoint' literal value.

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

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

VALUES

public static final List<KeyForType> VALUES
A public read-only list of all the 'Key For Type' enumerators.

Generated:
This code was automatically generated.
Method Detail

values

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

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

valueOf

public static KeyForType 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 KeyForType get(String literal)
Returns the 'Key For Type' literal with the specified literal value.

Generated:
This code was automatically generated.

getByName

public static KeyForType getByName(String name)
Returns the 'Key For Type' literal with the specified name.

Generated:
This code was automatically generated.

get

public static KeyForType get(int value)
Returns the 'Key For 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<KeyForType>
Generated:
This code was automatically generated.