public enum ValueType extends Enum<ValueType>
| Enum Constant and Description |
|---|
ATOMIC |
ATTRIBUTE |
BASE64_BINARY |
BOOLEAN |
COMMENT |
DATE |
DATE_TIME |
DAY |
DAY_TIME_DURATION |
DECIMAL |
DOCUMENT |
DOUBLE |
ELEMENT |
EMPTY |
FLOAT |
HEX_BINARY |
INT |
INTEGER |
MONTH |
MONTH_DAY |
NODE |
PROCESSING_INSTRUCTION |
QNAME |
STRING |
TEXT |
TIME |
UNTYPED_ATOMIC |
VALUE |
YEAR |
YEAR_MONTH |
YEAR_MONTH_DURATION |
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_NUMBER |
static String[] |
CARDINALITY_MARKER |
static int |
EXACTLY_ONE |
static int |
EXACTLY_ZERO |
boolean |
isAtomic |
boolean |
isNode |
boolean |
isNumeric |
String |
name |
static int |
ONE_OR_MORE |
static int |
ZERO_OR_ONE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
is(ValueType other) |
ValueType |
promote(ValueType type) |
ValueType |
restrict(ValueType type) |
String |
toString() |
String |
toString(QName qName) |
static ValueType |
valueOf(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 VALUE
public static final ValueType DOCUMENT
public static final ValueType NODE
public static final ValueType ELEMENT
public static final ValueType ATTRIBUTE
public static final ValueType TEXT
public static final ValueType COMMENT
public static final ValueType PROCESSING_INSTRUCTION
public static final ValueType ATOMIC
public static final ValueType STRING
public static final ValueType INT
public static final ValueType INTEGER
public static final ValueType BOOLEAN
public static final ValueType DATE
public static final ValueType DATE_TIME
public static final ValueType DAY
public static final ValueType DAY_TIME_DURATION
public static final ValueType MONTH_DAY
public static final ValueType YEAR
public static final ValueType YEAR_MONTH
public static final ValueType YEAR_MONTH_DURATION
public static final ValueType FLOAT
public static final ValueType DOUBLE
public static final ValueType DECIMAL
public static final ValueType TIME
public static final ValueType HEX_BINARY
public static final ValueType BASE64_BINARY
public static final ValueType MONTH
public static final ValueType UNTYPED_ATOMIC
public static final ValueType QNAME
public static final ValueType EMPTY
public static final int EXACTLY_ZERO
public static final int EXACTLY_ONE
public static final int ZERO_OR_ONE
public static final int ONE_OR_MORE
public static final int ANY_NUMBER
public static final String[] CARDINALITY_MARKER
public final boolean isNode
public final boolean isAtomic
public final boolean isNumeric
public final String name
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType 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 boolean is(ValueType other)
other - another typepublic ValueType promote(ValueType type)
type - the other typeCopyright © 2013. All Rights Reserved.