javax.xml.datatype

Class DatatypeConstants


public final class DatatypeConstants
extends java.lang.Object

Utility class to contain basic Datatype values as constants.
Version:
$Revision: 226183 $, $Date: 2005-04-08 12:39:14 +0200 (Fri, 08 Apr 2005) $
Author:
Jeff Suttor
Since:
1.5

Nested Class Summary

static class
DatatypeConstants.Field
Type-safe enum class that represents six fields of the Duration class.

Field Summary

static int
APRIL
Value for fourth month of year.
static int
AUGUST
Value for eighth month of year.
static QName
DATE
Fully qualified name for W3C XML Schema 1.0 datatype date.
static QName
DATETIME
Fully qualified name for W3C XML Schema 1.0 datatype dateTime.
static DatatypeConstants.Field
DAYS
A constant that represents the days field.
static int
DECEMBER
Value for twelve month of year.
static QName
DURATION
Fully qualified name for W3C XML Schema datatype duration.
static QName
DURATION_DAYTIME
Fully qualified name for XQuery 1.0 and XPath 2.0 datatype dayTimeDuration.
static QName
DURATION_YEARMONTH
Fully qualified name for XQuery 1.0 and XPath 2.0 datatype yearMonthDuration.
static int
EQUAL
Comparison result.
static int
FEBRUARY
Value for second month of year.
static int
FIELD_UNDEFINED
Designation that an "int" field is not set.
static QName
GDAY
Fully qualified name for W3C XML Schema 1.0 datatype gDay.
static QName
GMONTH
Fully qualified name for W3C XML Schema 1.0 datatype gMonth.
static QName
GMONTHDAY
Fully qualified name for W3C XML Schema 1.0 datatype gMonthDay.
static int
GREATER
Comparison result.
static QName
GYEAR
Fully qualified name for W3C XML Schema 1.0 datatype gYear.
static QName
GYEARMONTH
Fully qualified name for W3C XML Schema 1.0 datatype gYearMonth.
static DatatypeConstants.Field
HOURS
A constant that represents the hours field.
static int
INDETERMINATE
Comparison result.
static int
JANUARY
Value for first month of year.
static int
JULY
Value for seventh month of year.
static int
JUNE
Value for sixth month of year.
static int
LESSER
Comparison result.
static int
MARCH
Value for third month of year.
static int
MAX_TIMEZONE_OFFSET
W3C XML Schema max timezone offset is -14:00.
static int
MAY
Value for fifth month of year.
static DatatypeConstants.Field
MINUTES
A constant that represents the minutes field.
static int
MIN_TIMEZONE_OFFSET
W3C XML Schema min timezone offset is +14:00.
static DatatypeConstants.Field
MONTHS
A constant that represents the months field.
static int
NOVEMBER
Value for eleven month of year.
static int
OCTOBER
Value for tenth month of year.
static DatatypeConstants.Field
SECONDS
A constant that represents the seconds field.
static int
SEPTEMBER
Value for ninth month of year.
static QName
TIME
Fully qualified name for W3C XML Schema 1.0 datatype time.
static DatatypeConstants.Field
YEARS
A constant that represents the years field.

Field Details

APRIL

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

AUGUST

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

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.
Field Value:
12

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.
Field Value:
0

FEBRUARY

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

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.
Field Value:
1

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.
Field Value:
2

JANUARY

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

JULY

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

JUNE

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

LESSER

public static final int LESSER
Comparison result.
Field Value:
-1

MARCH

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

MAX_TIMEZONE_OFFSET

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

MAY

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

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.
Field Value:
840

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.
Field Value:
11

OCTOBER

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

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.
Field Value:
9

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.