org.pfsw.odem
Enum TypeClassification

java.lang.Object
  extended by java.lang.Enum<TypeClassification>
      extended by org.pfsw.odem.TypeClassification
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TypeClassification>

public enum TypeClassification
extends java.lang.Enum<TypeClassification>

Specifies the currently supported types


Enum Constant Summary
ANNOTATION
           
CLASS
           
ENUM
           
INTERFACE
           
UNKNOWN
           
 
Method Summary
 java.lang.String asString()
          Returns the external string representation (which is not the same as the enum value name).
static TypeClassification fromString(java.lang.String valueName)
          Returns the enum value with the given name.
 java.lang.String getExternalName()
           
 java.lang.String toString()
          Returns a debug string that should not be used in business logic.
static TypeClassification valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TypeClassification[] 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

UNKNOWN

public static final TypeClassification UNKNOWN

CLASS

public static final TypeClassification CLASS

INTERFACE

public static final TypeClassification INTERFACE

ENUM

public static final TypeClassification ENUM

ANNOTATION

public static final TypeClassification ANNOTATION
Method Detail

values

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

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

valueOf

public static TypeClassification 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

fromString

public static TypeClassification fromString(java.lang.String valueName)
Returns the enum value with the given name. If none with that name can be found null will be returned.


getExternalName

public java.lang.String getExternalName()

asString

public java.lang.String asString()
Returns the external string representation (which is not the same as the enum value name).


toString

public java.lang.String toString()
Returns a debug string that should not be used in business logic.

Overrides:
toString in class java.lang.Enum<TypeClassification>