public final class

DatatypeConstants

extends Object
java.lang.Object
   ↳javax.xml.datatype.DatatypeConstants

Class Overview

Utility class to contain basic Datatype values as constants.

Summary

Nested Classes
classDatatypeConstants.FieldType-safe enum class that represents six fields of the Duration class. 
Constants
intAPRILValue for fourth month of year.
intAUGUSTValue for eighth month of year.
QNameDATE

Fully qualified name for W3C XML Schema 1.0 datatype date.

QNameDATETIME

Fully qualified name for W3C XML Schema 1.0 datatype dateTime.

DatatypeConstants.FieldDAYS

A constant that represents the days field.

intDECEMBERValue for twelve month of year.
QNameDURATION

Fully qualified name for W3C XML Schema datatype duration.

QNameDURATION_DAYTIME

Fully qualified name for XQuery 1.0 and XPath 2.0 datatype dayTimeDuration.

QNameDURATION_YEARMONTH

Fully qualified name for XQuery 1.0 and XPath 2.0 datatype yearMonthDuration.

intEQUAL

Comparison result.

intFEBRUARYValue for second month of year.
intFIELD_UNDEFINEDDesignation that an "int" field is not set.
QNameGDAY

Fully qualified name for W3C XML Schema 1.0 datatype gDay.

QNameGMONTH

Fully qualified name for W3C XML Schema 1.0 datatype gMonth.

QNameGMONTHDAY

Fully qualified name for W3C XML Schema 1.0 datatype gMonthDay.

intGREATER

Comparison result.

QNameGYEAR

Fully qualified name for W3C XML Schema 1.0 datatype gYear.

QNameGYEARMONTH

Fully qualified name for W3C XML Schema 1.0 datatype gYearMonth.

DatatypeConstants.FieldHOURS

A constant that represents the hours field.

intINDETERMINATE

Comparison result.

intJANUARYValue for first month of year.
intJULYValue for seventh month of year.
intJUNEValue for sixth month of year.
intLESSER

Comparison result.

intMARCHValue for third month of year.
intMAX_TIMEZONE_OFFSETW3C XML Schema max timezone offset is -14:00.
intMAYValue for fifth month of year.
DatatypeConstants.FieldMINUTES

A constant that represents the minutes field.

intMIN_TIMEZONE_OFFSETW3C XML Schema min timezone offset is +14:00.
DatatypeConstants.FieldMONTHS

A constant that represents the months field.

intNOVEMBERValue for eleven month of year.
intOCTOBERValue for tenth month of year.
DatatypeConstants.FieldSECONDS

A constant that represents the seconds field.

intSEPTEMBERValue for ninth month of year.
QNameTIME

Fully qualified name for W3C XML Schema 1.0 datatype time.

DatatypeConstants.FieldYEARS

A constant that represents the years field.

[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int APRIL

Since: API Level 8

Value for fourth month of year.

Constant Value: 4 (0x00000004)

public static final int AUGUST

Since: API Level 8

Value for eighth month of year.

Constant Value: 8 (0x00000008)

public static final QName DATE

Since: API Level 8

Fully qualified name for W3C XML Schema 1.0 datatype date.

public static final QName DATETIME

Since: API Level 8

Fully qualified name for W3C XML Schema 1.0 datatype dateTime.

public static final DatatypeConstants.Field DAYS

Since: API Level 8

A constant that represents the days field.

public static final int DECEMBER

Since: API Level 8

Value for twelve month of year.

Constant Value: 12 (0x0000000c)

public static final QName DURATION

Since: API Level 8

Fully qualified name for W3C XML Schema datatype duration.

public static final QName DURATION_DAYTIME

Since: API Level 8

Fully qualified name for XQuery 1.0 and XPath 2.0 datatype dayTimeDuration.

public static final QName DURATION_YEARMONTH

Since: API Level 8

Fully qualified name for XQuery 1.0 and XPath 2.0 datatype yearMonthDuration.

public static final int EQUAL

Since: API Level 8

Comparison result.

Constant Value: 0 (0x00000000)

public static final int FEBRUARY

Since: API Level 8

Value for second month of year.

Constant Value: 2 (0x00000002)

public static final int FIELD_UNDEFINED

Since: API Level 8

Designation that an "int" field is not set.

Constant Value: -2147483648 (0x80000000)

public static final QName GDAY

Since: API Level 8

Fully qualified name for W3C XML Schema 1.0 datatype gDay.

public static final QName GMONTH

Since: API Level 8

Fully qualified name for W3C XML Schema 1.0 datatype gMonth.

public static final QName GMONTHDAY

Since: API Level 8

Fully qualified name for W3C XML Schema 1.0 datatype gMonthDay.

public static final int GREATER

Since: API Level 8

Comparison result.

Constant Value: 1 (0x00000001)

public static final QName GYEAR

Since: API Level 8

Fully qualified name for W3C XML Schema 1.0 datatype gYear.

public static final QName GYEARMONTH

Since: API Level 8

Fully qualified name for W3C XML Schema 1.0 datatype gYearMonth.

public static final DatatypeConstants.Field HOURS

Since: API Level 8

A constant that represents the hours field.

public static final int INDETERMINATE

Since: API Level 8

Comparison result.

Constant Value: 2 (0x00000002)

public static final int JANUARY

Since: API Level 8

Value for first month of year.

Constant Value: 1 (0x00000001)

public static final int JULY

Since: API Level 8

Value for seventh month of year.

Constant Value: 7 (0x00000007)

public static final int JUNE

Since: API Level 8

Value for sixth month of year.

Constant Value: 6 (0x00000006)

public static final int LESSER

Since: API Level 8

Comparison result.

Constant Value: -1 (0xffffffff)

public static final int MARCH

Since: API Level 8

Value for third month of year.

Constant Value: 3 (0x00000003)

public static final int MAX_TIMEZONE_OFFSET

Since: API Level 8

W3C XML Schema max timezone offset is -14:00. Zone offset is in minutes.

Constant Value: -840 (0xfffffcb8)

public static final int MAY

Since: API Level 8

Value for fifth month of year.

Constant Value: 5 (0x00000005)

public static final DatatypeConstants.Field MINUTES

Since: API Level 8

A constant that represents the minutes field.

public static final int MIN_TIMEZONE_OFFSET

Since: API Level 8

W3C XML Schema min timezone offset is +14:00. Zone offset is in minutes.

Constant Value: 840 (0x00000348)

public static final DatatypeConstants.Field MONTHS

Since: API Level 8

A constant that represents the months field.

public static final int NOVEMBER

Since: API Level 8

Value for eleven month of year.

Constant Value: 11 (0x0000000b)

public static final int OCTOBER

Since: API Level 8

Value for tenth month of year.

Constant Value: 10 (0x0000000a)

public static final DatatypeConstants.Field SECONDS

Since: API Level 8

A constant that represents the seconds field.

public static final int SEPTEMBER

Since: API Level 8

Value for ninth month of year.

Constant Value: 9 (0x00000009)

public static final QName TIME

Since: API Level 8

Fully qualified name for W3C XML Schema 1.0 datatype time.

public static final DatatypeConstants.Field YEARS

Since: API Level 8

A constant that represents the years field.