javax.xml.datatype

Class DatatypeConstants

public final class DatatypeConstants extends Object

Utility class to contain basic Datatype values as constants.

Since: 1.5

Version: $Revision: 226183 $, $Date: 2005-04-08 06:39:14 -0400 (Fri, 08 Apr 2005) $

Author: Jeff Suttor

Nested Class Summary
static classDatatypeConstants.Field
Type-safe enum class that represents six fields of the {@link Duration} class.
Field Summary
static intAPRIL
Value for fourth month of year.
static intAUGUST
Value for eighth month of year.
static QNameDATE

Fully qualified name for W3C XML Schema 1.0 datatype date.

static QNameDATETIME

Fully qualified name for W3C XML Schema 1.0 datatype dateTime.

static DatatypeConstants.FieldDAYS

A constant that represents the days field.

static intDECEMBER
Value for twelve month of year.
static QNameDURATION

Fully qualified name for W3C XML Schema datatype duration.

static QNameDURATION_DAYTIME

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

static QNameDURATION_YEARMONTH

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

static intEQUAL

Comparison result.

static intFEBRUARY
Value for second month of year.
static intFIELD_UNDEFINED
Designation that an "int" field is not set.
static QNameGDAY

Fully qualified name for W3C XML Schema 1.0 datatype gDay.

static QNameGMONTH

Fully qualified name for W3C XML Schema 1.0 datatype gMonth.

static QNameGMONTHDAY

Fully qualified name for W3C XML Schema 1.0 datatype gMonthDay.

static intGREATER

Comparison result.

static QNameGYEAR

Fully qualified name for W3C XML Schema 1.0 datatype gYear.

static QNameGYEARMONTH

Fully qualified name for W3C XML Schema 1.0 datatype gYearMonth.

static DatatypeConstants.FieldHOURS

A constant that represents the hours field.

static intINDETERMINATE

Comparison result.

static intJANUARY
Value for first month of year.
static intJULY
Value for seventh month of year.
static intJUNE
Value for sixth month of year.
static intLESSER

Comparison result.

static intMARCH
Value for third month of year.
static intMAX_TIMEZONE_OFFSET
W3C XML Schema max timezone offset is -14:00.
static intMAY
Value for fifth month of year.
static DatatypeConstants.FieldMINUTES

A constant that represents the minutes field.

static intMIN_TIMEZONE_OFFSET
W3C XML Schema min timezone offset is +14:00.
static DatatypeConstants.FieldMONTHS

A constant that represents the months field.

static intNOVEMBER
Value for eleven month of year.
static intOCTOBER
Value for tenth month of year.
static DatatypeConstants.FieldSECONDS

A constant that represents the seconds field.

static intSEPTEMBER
Value for ninth month of year.
static QNameTIME

Fully qualified name for W3C XML Schema 1.0 datatype time.

static DatatypeConstants.FieldYEARS

A constant that represents the years field.

Field Detail

APRIL

public static final int APRIL
Value for fourth month of year.

AUGUST

public static final int AUGUST
Value for eighth month of year.

DATE

public static final QName DATE

Fully qualified name for W3C XML Schema 1.0 datatype date.

DATETIME

public static final QName DATETIME

Fully qualified name for W3C XML Schema 1.0 datatype dateTime.

DAYS

public static final DatatypeConstants.Field DAYS

A constant that represents the days field.

DECEMBER

public static final int DECEMBER
Value for twelve month of year.

DURATION

public static final QName DURATION

Fully qualified name for W3C XML Schema datatype duration.

DURATION_DAYTIME

public static final QName DURATION_DAYTIME

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

DURATION_YEARMONTH

public static final QName DURATION_YEARMONTH

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

EQUAL

public static final int EQUAL

Comparison result.

FEBRUARY

public static final int FEBRUARY
Value for second month of year.

FIELD_UNDEFINED

public static final int FIELD_UNDEFINED
Designation that an "int" field is not set.

GDAY

public static final QName GDAY

Fully qualified name for W3C XML Schema 1.0 datatype gDay.

GMONTH

public static final QName GMONTH

Fully qualified name for W3C XML Schema 1.0 datatype gMonth.

GMONTHDAY

public static final QName GMONTHDAY

Fully qualified name for W3C XML Schema 1.0 datatype gMonthDay.

GREATER

public static final int GREATER

Comparison result.

GYEAR

public static final QName GYEAR

Fully qualified name for W3C XML Schema 1.0 datatype gYear.

GYEARMONTH

public static final QName GYEARMONTH

Fully qualified name for W3C XML Schema 1.0 datatype gYearMonth.

HOURS

public static final DatatypeConstants.Field HOURS

A constant that represents the hours field.

INDETERMINATE

public static final int INDETERMINATE

Comparison result.

JANUARY

public static final int JANUARY
Value for first month of year.

JULY

public static final int JULY
Value for seventh month of year.

JUNE

public static final int JUNE
Value for sixth month of year.

LESSER

public static final int LESSER

Comparison result.

MARCH

public static final int MARCH
Value for third month of year.

MAX_TIMEZONE_OFFSET

public static final int MAX_TIMEZONE_OFFSET
W3C XML Schema max timezone offset is -14:00. Zone offset is in minutes.

MAY

public static final int MAY
Value for fifth month of year.

MINUTES

public static final DatatypeConstants.Field MINUTES

A constant that represents the minutes field.

MIN_TIMEZONE_OFFSET

public static final int MIN_TIMEZONE_OFFSET
W3C XML Schema min timezone offset is +14:00. Zone offset is in minutes.

MONTHS

public static final DatatypeConstants.Field MONTHS

A constant that represents the months field.

NOVEMBER

public static final int NOVEMBER
Value for eleven month of year.

OCTOBER

public static final int OCTOBER
Value for tenth month of year.

SECONDS

public static final DatatypeConstants.Field SECONDS

A constant that represents the seconds field.

SEPTEMBER

public static final int SEPTEMBER
Value for ninth month of year.

TIME

public static final QName TIME

Fully qualified name for W3C XML Schema 1.0 datatype time.

YEARS

public static final DatatypeConstants.Field YEARS

A constant that represents the years field.