org.codeforamerica.open311.facade.data
Enum AttributeInfo.Datatype
java.lang.Object
java.lang.Enum<AttributeInfo.Datatype>
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>
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
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.