peakml
Enum Annotation.ValueType

java.lang.Object
  extended by java.lang.Enum<Annotation.ValueType>
      extended by peakml.Annotation.ValueType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Annotation.ValueType>
Enclosing class:
Annotation

public static enum Annotation.ValueType
extends java.lang.Enum<Annotation.ValueType>

This enum defines the different types of annotations that can occur. This will help in the interpretation of the data stored in a label-value annotation pair.


Enum Constant Summary
DOUBLE
          The annotation value is represented by a double
INTEGER
          The annotation value is represented by an integer
ONTOLOGY
          The annotation label is actualy an ontology term.
STRING
          The annotation value is represented by a string
 
Method Summary
static Annotation.ValueType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Annotation.ValueType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INTEGER

public static final Annotation.ValueType INTEGER
The annotation value is represented by an integer


DOUBLE

public static final Annotation.ValueType DOUBLE
The annotation value is represented by a double


STRING

public static final Annotation.ValueType STRING
The annotation value is represented by a string


ONTOLOGY

public static final Annotation.ValueType ONTOLOGY
The annotation label is actualy an ontology term. It is up to the user to interpret this.

Method Detail

values

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

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

valueOf

public static Annotation.ValueType 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