public enum ValueType extends java.lang.Enum<ValueType>
enumeration lists the basic types (string, date, and number) and defines the necessary Java methods.
The types are:
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:simpleType name="ValueType"> <xs:restriction base="xs:string"> <xs:enumeration value="string"/> <xs:enumeration value="date"/> <xs:enumeration value="number"/> </xs:restriction> </xs:simpleType>
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
java.lang.String |
getPrettyName() |
static ValueType |
getValueTypeFromId(int valueTypeId) |
static ValueType |
getValueTypeFromPrettyName(java.lang.String prettyName) |
static ValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueType NUMBER
public static final ValueType STRING
public static final ValueType DATE
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getId()
public java.lang.String getPrettyName()
public static final ValueType getValueTypeFromPrettyName(java.lang.String prettyName)
public static final ValueType getValueTypeFromId(int valueTypeId)