|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<KeyForType>
org.graphdrawing.graphml.KeyForType
public enum KeyForType
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.
GraphMLPackage.getKeyForType()
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 |
---|
public static final KeyForType ALL
ALL_VALUE
public static final KeyForType GRAPHML
GRAPHML_VALUE
public static final KeyForType GRAPH
GRAPH_VALUE
public static final KeyForType NODE
NODE_VALUE
public static final KeyForType EDGE
EDGE_VALUE
public static final KeyForType HYPEREDGE
HYPEREDGE_VALUE
public static final KeyForType PORT
PORT_VALUE
public static final KeyForType ENDPOINT
ENDPOINT_VALUE
Field Detail |
---|
public static final int ALL_VALUE
If the meaning of 'All' literal object isn't clear, there really should be more of a description here...
ALL
,
Constant Field Valuesname | = | all |
public static final int GRAPHML_VALUE
If the meaning of 'Graphml' literal object isn't clear, there really should be more of a description here...
GRAPHML
,
Constant Field Valuesname | = | graphml |
public static final int GRAPH_VALUE
If the meaning of 'Graph' literal object isn't clear, there really should be more of a description here...
GRAPH
,
Constant Field Valuesname | = | graph |
public static final int NODE_VALUE
If the meaning of 'Node' literal object isn't clear, there really should be more of a description here...
NODE
,
Constant Field Valuesname | = | node |
public static final int EDGE_VALUE
If the meaning of 'Edge' literal object isn't clear, there really should be more of a description here...
EDGE
,
Constant Field Valuesname | = | edge |
public static final int HYPEREDGE_VALUE
If the meaning of 'Hyperedge' literal object isn't clear, there really should be more of a description here...
HYPEREDGE
,
Constant Field Valuesname | = | hyperedge |
public static final int PORT_VALUE
If the meaning of 'Port' literal object isn't clear, there really should be more of a description here...
PORT
,
Constant Field Valuesname | = | port |
public static final int ENDPOINT_VALUE
If the meaning of 'Endpoint' literal object isn't clear, there really should be more of a description here...
ENDPOINT
,
Constant Field Valuesname | = | endpoint |
public static final List<KeyForType> VALUES
Method Detail |
---|
public static KeyForType[] values()
for (KeyForType c : KeyForType.values()) System.out.println(c);
public static KeyForType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static KeyForType get(String literal)
public static KeyForType getByName(String name)
public static KeyForType get(int value)
public int getValue()
getValue
in interface Enumerator
public String getName()
getName
in interface Enumerator
public String getLiteral()
getLiteral
in interface Enumerator
public String toString()
toString
in class Enum<KeyForType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |