eu.reservoir.monitoring.core
Enum ProbeAttributeType

java.lang.Object
  extended by java.lang.Enum<ProbeAttributeType>
      extended by eu.reservoir.monitoring.core.ProbeAttributeType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ProbeAttributeType>

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

The type that an Attribute of a Probe can be.


Enum Constant Summary
BOOLEAN
           
BYTE
           
BYTES
           
CHAR
           
DOUBLE
           
FLOAT
           
INTEGER
           
LIST
           
LONG
           
SHORT
           
STRING
           
TABLE
           
 
Method Summary
static ProbeAttributeType fromCode(byte code)
          Get the correct ProbeAttributeType for a given code.
 byte getCode()
          Get the code for a ProbeAttributeType
static ProbeAttributeType lookup(java.lang.Object obj)
          A lookup function
static ProbeAttributeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ProbeAttributeType[] 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

BOOLEAN

public static final ProbeAttributeType BOOLEAN

BYTE

public static final ProbeAttributeType BYTE

CHAR

public static final ProbeAttributeType CHAR

SHORT

public static final ProbeAttributeType SHORT

INTEGER

public static final ProbeAttributeType INTEGER

LONG

public static final ProbeAttributeType LONG

FLOAT

public static final ProbeAttributeType FLOAT

DOUBLE

public static final ProbeAttributeType DOUBLE

STRING

public static final ProbeAttributeType STRING

BYTES

public static final ProbeAttributeType BYTES

TABLE

public static final ProbeAttributeType TABLE

LIST

public static final ProbeAttributeType LIST
Method Detail

values

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

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

valueOf

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

getCode

public byte getCode()
Get the code for a ProbeAttributeType


fromCode

public static ProbeAttributeType fromCode(byte code)
                                   throws TypeException
Get the correct ProbeAttributeType for a given code.

Throws:
TypeException

lookup

public static ProbeAttributeType lookup(java.lang.Object obj)
                                 throws TypeException
A lookup function

Throws:
TypeException


RESERVOIR Monitoring 0.6.4