org.codeforamerica.open311.facade.data
Enum AttributeInfo.Datatype

java.lang.Object
  extended by java.lang.Enum<AttributeInfo.Datatype>
      extended by org.codeforamerica.open311.facade.data.AttributeInfo.Datatype
All Implemented Interfaces:
Serializable, Comparable<AttributeInfo.Datatype>
Enclosing class:
AttributeInfo

public static enum AttributeInfo.Datatype
extends Enum<AttributeInfo.Datatype>


Enum Constant Summary
DATETIME
           
MULTIVALUELIST
           
NUMBER
           
SINGLEVALUELIST
           
STRING
           
TEXT
           
 
Method Summary
static AttributeInfo.Datatype getFromString(String datatype)
          Returns an instance of this class from a given string.
static AttributeInfo.Datatype valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AttributeInfo.Datatype[] 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

STRING

public static final AttributeInfo.Datatype STRING

NUMBER

public static final AttributeInfo.Datatype NUMBER

DATETIME

public static final AttributeInfo.Datatype DATETIME

TEXT

public static final AttributeInfo.Datatype TEXT

SINGLEVALUELIST

public static final AttributeInfo.Datatype SINGLEVALUELIST

MULTIVALUELIST

public static final AttributeInfo.Datatype MULTIVALUELIST
Method Detail

values

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

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

valueOf

public static AttributeInfo.Datatype valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getFromString

public static AttributeInfo.Datatype getFromString(String datatype)
Returns an instance of this class from a given string.

Parameters:
datatype - String representation of the datatype.
Returns:
null if the string is not one of the contained types.


Copyright © 2013 Code for America. All Rights Reserved.