com.voidsearch.voidbase.serialization
Enum VoidBaseSerialization

java.lang.Object
  extended by java.lang.Enum<VoidBaseSerialization>
      extended by com.voidsearch.voidbase.serialization.VoidBaseSerialization
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VoidBaseSerialization>

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


Enum Constant Summary
NUMERIC
           
NUMERIC_TUPLE
           
STRING
           
STRING_TUPLE
           
UNKNOWN
           
 
Field Summary
static java.lang.String MULTIVALUE_DELIMITER
           
 
Method Summary
static double getDouble(java.lang.Object o)
           
static java.util.ArrayList<java.lang.Double> getDoubleArray(java.lang.Object o)
           
static VoidBaseSerialization getType(java.lang.Object o)
           
static VoidBaseSerialization valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VoidBaseSerialization[] 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

NUMERIC

public static final VoidBaseSerialization NUMERIC

NUMERIC_TUPLE

public static final VoidBaseSerialization NUMERIC_TUPLE

STRING_TUPLE

public static final VoidBaseSerialization STRING_TUPLE

STRING

public static final VoidBaseSerialization STRING

UNKNOWN

public static final VoidBaseSerialization UNKNOWN
Field Detail

MULTIVALUE_DELIMITER

public static java.lang.String MULTIVALUE_DELIMITER
Method Detail

values

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

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

valueOf

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

getType

public static VoidBaseSerialization getType(java.lang.Object o)

getDouble

public static double getDouble(java.lang.Object o)
                        throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

getDoubleArray

public static java.util.ArrayList<java.lang.Double> getDoubleArray(java.lang.Object o)
                                                            throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException


Copyright © 2009. All Rights Reserved.