gnu.kawa.xml

Class XTimeType

Implemented Interfaces:
TypeValue

public class XTimeType
extends XDataType

Field Summary

static XTimeType
dateTimeType
static XTimeType
dateType
static XTimeType
gDayType
static XTimeType
gMonthDayType
static XTimeType
gMonthType
static XTimeType
gYearMonthType
static XTimeType
gYearType
static XTimeType
timeType

Fields inherited from class gnu.kawa.xml.XDataType

ANY_ATOMIC_TYPE_CODE, ANY_URI_TYPE_CODE, BASE64_BINARY_TYPE_CODE, BOOLEAN_TYPE_CODE, BYTE_TYPE_CODE, DATE_TIME_TYPE_CODE, DATE_TYPE_CODE, DAY_TIME_DURATION_TYPE_CODE, DECIMAL_ONE, DECIMAL_TYPE_CODE, DOUBLE_ONE, DOUBLE_TYPE_CODE, DOUBLE_ZERO, DURATION_TYPE_CODE, ENTITY_TYPE_CODE, FLOAT_ONE, FLOAT_TYPE_CODE, FLOAT_ZERO, G_DAY_TYPE_CODE, G_MONTH_DAY_TYPE_CODE, G_MONTH_TYPE_CODE, G_YEAR_MONTH_TYPE_CODE, G_YEAR_TYPE_CODE, HEX_BINARY_TYPE_CODE, IDREF_TYPE_CODE, ID_TYPE_CODE, INTEGER_TYPE_CODE, INT_TYPE_CODE, LANGUAGE_TYPE_CODE, LONG_TYPE_CODE, NAME_TYPE_CODE, NCNAME_TYPE_CODE, NEGATIVE_INTEGER_TYPE_CODE, NMTOKEN_TYPE_CODE, NONNEGATIVE_INTEGER_TYPE_CODE, NON_POSITIVE_INTEGER_TYPE_CODE, NORMALIZED_STRING_TYPE_CODE, NOTATION_TYPE_CODE, NotationType, POSITIVE_INTEGER_TYPE_CODE, QNAME_TYPE_CODE, SHORT_TYPE_CODE, STRING_TYPE_CODE, TIME_TYPE_CODE, TOKEN_TYPE_CODE, UNSIGNED_BYTE_TYPE_CODE, UNSIGNED_INT_TYPE_CODE, UNSIGNED_LONG_TYPE_CODE, UNSIGNED_SHORT_TYPE_CODE, UNTYPED_ATOMIC_TYPE_CODE, YEAR_MONTH_DURATION_TYPE_CODE, anyAtomicType, anyURIType, base64BinaryType, booleanType, dayTimeDurationType, decimalType, doubleType, durationType, floatType, hexBinaryType, stringStringType, stringType, untypedAtomicType, yearMonthDurationType

Fields inherited from class gnu.bytecode.Type

booleanValue_method, boolean_ctype, boolean_type, byte_type, char_type, clone_method, doubleValue_method, double_type, floatValue_method, float_type, intValue_method, int_type, java_lang_Class_type, longValue_method, long_type, neverReturnsType, nullType, number_type, pointer_type, reflectClass, short_type, string_type, throwable_type, toString_method, tostring_type, typeArray0, void_type

Method Summary

boolean
isInstance(Object obj)
DateTime
now()
Return the current date or time in this type.
static DateTime
parseDateTime(String value, int mask)
Object
valueOf(String value)

Methods inherited from class gnu.kawa.xml.XDataType

cast, castable, coerceFromObject, compare, emitCoerceFromObject, emitCoerceToObject, emitIsInstance, emitTestIf, getConstructor, getImplementationType, getReflectClass, isInstance, makeDouble, makeFloat, print, toString, valueOf

Methods inherited from class gnu.bytecode.Type

coerceFromObject, coerceToObject, compare, emitCoerceFromObject, emitCoerceToObject, emitIsInstance, getImplementationType, getName, getReflectClass, getSignature, getSize, getSizeInWords, getType, hashCode, isInstance, isMoreSpecific, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSuperType, make, promote, registerTypeForClass, setName, setReflectClass, setSignature, signatureLength, signatureLength, signatureToName, signatureToPrimitive, signatureToType, signatureToType, swappedCompareResult, toString

Field Details

dateTimeType

public static final XTimeType dateTimeType

dateType

public static final XTimeType dateType

gDayType

public static final XTimeType gDayType

gMonthDayType

public static final XTimeType gMonthDayType

gMonthType

public static final XTimeType gMonthType

gYearMonthType

public static final XTimeType gYearMonthType

gYearType

public static final XTimeType gYearType

timeType

public static final XTimeType timeType

Method Details

isInstance

public boolean isInstance(Object obj)
Overrides:
isInstance in interface XDataType

now

public DateTime now()
Return the current date or time in this type.

parseDateTime

public static DateTime parseDateTime(String value,
                                     int mask)

valueOf

public Object valueOf(String value)
Overrides:
valueOf in interface XDataType