org.bibalex.daf.commongui.datamodels
Enum TreeDataModel.TreeObjectTypes

java.lang.Object
  extended by java.lang.Enum<TreeDataModel.TreeObjectTypes>
      extended by org.bibalex.daf.commongui.datamodels.TreeDataModel.TreeObjectTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TreeDataModel.TreeObjectTypes>
Enclosing class:
TreeDataModel

protected static enum TreeDataModel.TreeObjectTypes
extends java.lang.Enum<TreeDataModel.TreeObjectTypes>

Defines the 3 Types of nodes (levels) suported by this tree model.

Author:
Fadi.Edward

Enum Constant Summary
Child
          Represents a leaf element.
Element
          Represents a non-leaf, non-Root element.
Root
          Represents a Root tree element.
 
Method Summary
static TreeDataModel.TreeObjectTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TreeDataModel.TreeObjectTypes[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Root

public static final TreeDataModel.TreeObjectTypes Root
Represents a Root tree element.


Element

public static final TreeDataModel.TreeObjectTypes Element
Represents a non-leaf, non-Root element.


Child

public static final TreeDataModel.TreeObjectTypes Child
Represents a leaf element.

Method Detail

values

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

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

valueOf

public static TreeDataModel.TreeObjectTypes 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