public enum DataType extends Enum<DataType>
| Enum Constant and Description |
|---|
BOOLEAN |
NODESET
following are standard datatypes
|
NUMBER |
NUMBERS |
PRIMITIVE |
STRING |
STRINGS
these are extra datatypes that are used internally
|
| Modifier and Type | Field and Description |
|---|---|
Object |
defaultValue |
static Double |
ONE |
QName |
qname |
static Double |
ZERO |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
asBoolean(Object obj) |
static double |
asNumber(Object obj) |
static String |
asString(Object obj) |
Object |
convert(Object result) |
static DataType |
valueOf(Object literal) |
static DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType NODESET
public static final DataType STRING
public static final DataType NUMBER
public static final DataType BOOLEAN
public static final DataType STRINGS
public static final DataType NUMBERS
public static final DataType PRIMITIVE
public final QName qname
public final Object defaultValue
public static final Double ZERO
public static final Double ONE
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static boolean asBoolean(Object obj)
public static double asNumber(Object obj)
Copyright © 2019. All rights reserved.