net.xqhs.graphs.representation.text
Enum TextRepresentationElement.Type

java.lang.Object
  extended by java.lang.Enum<TextRepresentationElement.Type>
      extended by net.xqhs.graphs.representation.text.TextRepresentationElement.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TextRepresentationElement.Type>
Enclosing class:
TextRepresentationElement

public static enum TextRepresentationElement.Type
extends java.lang.Enum<TextRepresentationElement.Type>

Enumeration containing the types of elements that may appear in a textual graph representation.

Author:
Andrei Olaru

Enum Constant Summary
BRANCH
          An edge to a node that has not previously appeared in the representation.
ELEMENT_CONTAINER
          The container representation for a graph, that may be part of a multilevel representation.
EXTERNAL_LINK
          An edge to a node that is not part of the current subgraph.
INTERNAL_LINK
          An edge to a node that has already appeared in the representation (from left to right).
NODE
          A node in the graph.
SUBGRAPH
          A subgraph.
 
Method Summary
static TextRepresentationElement.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextRepresentationElement.Type[] 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

NODE

public static final TextRepresentationElement.Type NODE
A node in the graph.


BRANCH

public static final TextRepresentationElement.Type BRANCH
An edge to a node that has not previously appeared in the representation.


INTERNAL_LINK

public static final TextRepresentationElement.Type INTERNAL_LINK
An edge to a node that has already appeared in the representation (from left to right).


EXTERNAL_LINK

public static final TextRepresentationElement.Type EXTERNAL_LINK
An edge to a node that is not part of the current subgraph.


SUBGRAPH

public static final TextRepresentationElement.Type SUBGRAPH
A subgraph.


ELEMENT_CONTAINER

public static final TextRepresentationElement.Type ELEMENT_CONTAINER
The container representation for a graph, that may be part of a multilevel representation.

Method Detail

values

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

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

valueOf

public static TextRepresentationElement.Type 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