public enum Type extends Enum<Type>
Enum Constant and Description |
---|
ANY_ATOMIC_TYPE
XML Schema type 'anyAtomicType'.
|
ANY_SIMPLE_TYPE
XML Schema type 'anySimpleType'.
|
ANY_TYPE
XML Schema type 'anyType.
|
ANY_URI
XML Schema type 'anyURI'.
|
BASE_64_BINARY
XML Schema type 'base64Binary'.
|
BOOLEAN
XML Schema type 'boolean'.
|
BYTE
XML Schema type 'byte'.
|
DATE
XML Schema type 'date'.
|
DATE_TIME
XML Schema type 'dateTime'.
|
DAY_TIME_DURATION
XML Schema type 'DayTimeDuration'.
|
DECIMAL
XML Schema type 'decimal'.
|
DOUBLE
XML Schema type 'double'.
|
DURATION
XML Schema type 'duration'.
|
ENTITY
XML Schema type 'ENTITY'.
|
FLOAT
XML Schema type 'float'.
|
G_DAY
XML Schema type 'gDay'.
|
G_MONTH
XML Schema type 'gMonth'.
|
G_MONTH_DAY
XML Schema type 'gMonthDay'.
|
G_YEAR
XML Schema type 'gYear'.
|
G_YEAR_MONTH
XML Schema type 'gYearMonth'.
|
HEX_BINARY
XML Schema type 'hexBinary'.
|
ID
XML Schema type 'ID'.
|
IDFRES
XML Schema type 'IDREFS'.
|
IDREF
XML Schema type 'IDREF'.
|
INT
XML Schema type 'int'.
|
INTEGER
XML Schema type 'integer'.
|
LANGUAGE
XML Schema type 'language'.
|
LONG
XML Schema type 'long'.
|
NAME
XML Schema type 'name'.
|
NCNAME
XML Schema type 'NCName'.
|
NEGATIVE_INTEGER
XML Schema type 'negativeInteger'.
|
NMTOKEN
XML Schema type 'ENTITIES'.
|
NMTOKENS
XML Schema type 'NMTOKENS'.
|
NON_NEGATIVE_INTERGER
XML Schema type 'nonNegativeInteger'.
|
NON_POSITIVE_INTEGER
XML Schema type 'nonPositiveInteger'.
|
NORMALIZED_STRING
XML Schema type 'normalizedString'.
|
NOTATION
XML Schema type 'NOTATION'.
|
PDECIMAL
XML Schema type 'pDecimal'.
|
POSITIVE_INTEGER
XML Schema type 'positiveInteger'.
|
QNAME
XML Schema type 'QName'.
|
SHORT
XML Schema type 'short'.
|
STRING
XML Schema type 'string'.
|
TIME
XML Schema type 'time'.
|
TOKEN
XML Schema type 'token'.
|
UNSIGNED_BYTE
XML Schema type 'unsignedByte'.
|
UNSIGNED_INT
XML Schema type 'unsignedInt'.
|
UNSIGNED_LONG
XML Schema type 'unsignedLong'.
|
UNSIGNED_SHORT
XML Schema type 'unsignedShort'.
|
UNTYPED
Additional XMD type 'untyped'.
|
UNTYPED_ATOMIC
Additional XMD type 'untyped value'.
|
YEAR_MONTH_DURATION
XML Schema type 'YearMonthDuration'.
|
Modifier and Type | Method and Description |
---|---|
boolean |
castsTo(Type mTargetType)
Defines if the current type is castable to the targetType.
|
boolean |
derivesFrom(Type mExpectedType)
Tests whether a type is derived by restriction from a certain type.
|
String |
getFacet()
Gets the facet of the type.
|
static Type |
getLeastCommonType(int mType1,
int mType2) |
static Type |
getLeastCommonType(Type mType1,
Type mType2)
Returns the least common base type of the given types.
|
Type |
getPrimitiveBaseType()
Return the next base type of the current type that is a primitive one.
|
String |
getStringRepr()
Returns the string representation of the current type.
|
static Type |
getType(int paramKey)
Getting the type for the key
|
static Type |
getType(String paramRepr)
Getting type for string
|
boolean |
isCastableTo(Type mTargetType,
String mValue)
Determines, whether a value of the current type can be casted to the
input type, as defined in XML Schema 1.1-1 Spec.
|
boolean |
isNumericType()
Specifies if the current type is a numeric type or derived from a numeric
type.
|
boolean |
isPrimitive()
Declare, whether the type is one of the primitive value types.
|
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type ANY_TYPE
public static final Type ANY_SIMPLE_TYPE
public static final Type ANY_ATOMIC_TYPE
public static final Type UNTYPED_ATOMIC
public static final Type UNTYPED
public static final Type STRING
public static final Type DURATION
public static final Type YEAR_MONTH_DURATION
public static final Type DAY_TIME_DURATION
public static final Type DATE_TIME
public static final Type TIME
public static final Type DATE
public static final Type G_YEAR_MONTH
public static final Type G_YEAR
public static final Type G_MONTH_DAY
public static final Type G_DAY
public static final Type G_MONTH
public static final Type BOOLEAN
public static final Type BASE_64_BINARY
public static final Type HEX_BINARY
public static final Type ANY_URI
public static final Type QNAME
public static final Type NOTATION
public static final Type FLOAT
public static final Type DOUBLE
public static final Type PDECIMAL
public static final Type DECIMAL
public static final Type INTEGER
public static final Type LONG
public static final Type INT
public static final Type SHORT
public static final Type BYTE
public static final Type NON_POSITIVE_INTEGER
public static final Type NEGATIVE_INTEGER
public static final Type NON_NEGATIVE_INTERGER
public static final Type POSITIVE_INTEGER
public static final Type UNSIGNED_LONG
public static final Type UNSIGNED_INT
public static final Type UNSIGNED_SHORT
public static final Type UNSIGNED_BYTE
public static final Type NORMALIZED_STRING
public static final Type TOKEN
public static final Type LANGUAGE
public static final Type NAME
public static final Type NCNAME
public static final Type ID
public static final Type IDREF
public static final Type ENTITY
public static final Type IDFRES
public static final Type NMTOKEN
public static final Type NMTOKENS
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 Type getType(int paramKey)
paramKey
- the key for the typepublic static Type getType(String paramRepr)
paramRepr
- the string for the typepublic boolean isPrimitive()
public String getStringRepr()
public static Type getLeastCommonType(int mType1, int mType2)
public static Type getLeastCommonType(Type mType1, Type mType2)
mType1
- First typemType2
- Second typepublic boolean derivesFrom(Type mExpectedType)
mExpectedType
- the type to check, if this type is derived frompublic boolean isNumericType()
public boolean isCastableTo(Type mTargetType, String mValue) throws TTXPathException
mTargetType
- type to which the current value shall be casted tomValue
- value of the source valueTTXPathException
- if casts failspublic Type getPrimitiveBaseType() throws TTXPathException
TTXPathException
public String getFacet()
public boolean castsTo(Type mTargetType)
mTargetType
- the type the current type should be casted toCopyright © 2013. All Rights Reserved.