javax.xml.datatype

Class DatatypeConstants


public final class DatatypeConstants
extends Object

Basic data type constants.
Since:
1.5

Nested Class Summary

static class
DatatypeConstants.Field
Typesafe enumerated class representing the six fields of the Duration class.

Field Summary

static int
APRIL
Value for April.
static int
AUGUST
Value for August.
static QName
DATE
The qualified-name for the date data type.
static QName
DATETIME
The qualified-name for the dateTime data type.
static DatatypeConstants.Field
DAYS
Constant that represents the days field.
static int
DECEMBER
Value for December.
static QName
DURATION
The qualified-name for the duration data type.
static QName
DURATION_DAYTIME
The qualified-name for the dayTimeDuration data type.
static QName
DURATION_YEARMONTH
The qualified-name for the yearMonthDuration data type.
static int
EQUAL
Comparison result.
static int
FEBRUARY
Value for February.
static int
FIELD_UNDEFINED
Comparison result.
static QName
GDAY
The qualified-name for the gDay data type.
static QName
GMONTH
The qualified-name for the gMonth data type.
static QName
GMONTHDAY
The qualified-name for the gMonthDay data type.
static int
GREATER
Comparison result.
static QName
GYEAR
The qualified-name for the gYear data type.
static QName
GYEARMONTH
The qualified-name for the gYearMonth data type.
static DatatypeConstants.Field
HOURS
Constant that represents the hours field.
static int
INDETERMINATE
Comparison result.
static int
JANUARY
Value for January.
static int
JULY
Value for July.
static int
JUNE
Value for June.
static int
LESSER
Comparison result.
static int
MARCH
Value for March.
static int
MAX_TIMEZONE_OFFSET
XML Schema maximum timezone offset, in minutes.
static int
MAY
Value for May.
static DatatypeConstants.Field
MINUTES
Constant that represents the minutes field.
static int
MIN_TIMEZONE_OFFSET
XML Schema minimum timezone offset, in minutes.
static DatatypeConstants.Field
MONTHS
Constant that represents the months field.
static int
NOVEMBER
Value for November.
static int
OCTOBER
Value for October.
static DatatypeConstants.Field
SECONDS
Constant that represents the seconds field.
static int
SEPTEMBER
Value for September.
static QName
TIME
The qualified-name for the time data type.
static DatatypeConstants.Field
YEARS
Constant that represents the years field.

Method Summary

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

APRIL

public static final int APRIL
Value for April.
Field Value:
4

AUGUST

public static final int AUGUST
Value for August.
Field Value:
8

DATE

public static final QName DATE
The qualified-name for the date data type.

DATETIME

public static final QName DATETIME
The qualified-name for the dateTime data type.

DAYS

public static final DatatypeConstants.Field DAYS
Constant that represents the days field.

DECEMBER

public static final int DECEMBER
Value for December.
Field Value:
12

DURATION

public static final QName DURATION
The qualified-name for the duration data type.

DURATION_DAYTIME

public static final QName DURATION_DAYTIME
The qualified-name for the dayTimeDuration data type.

DURATION_YEARMONTH

public static final QName DURATION_YEARMONTH
The qualified-name for the yearMonthDuration data type.

EQUAL

public static final int EQUAL
Comparison result.
Field Value:
0

FEBRUARY

public static final int FEBRUARY
Value for February.
Field Value:
2

FIELD_UNDEFINED

public static final int FIELD_UNDEFINED
Comparison result.
Field Value:
-2147483648

GDAY

public static final QName GDAY
The qualified-name for the gDay data type.

GMONTH

public static final QName GMONTH
The qualified-name for the gMonth data type.

GMONTHDAY

public static final QName GMONTHDAY
The qualified-name for the gMonthDay data type.

GREATER

public static final int GREATER
Comparison result.
Field Value:
1

GYEAR

public static final QName GYEAR
The qualified-name for the gYear data type.

GYEARMONTH

public static final QName GYEARMONTH
The qualified-name for the gYearMonth data type.

HOURS

public static final DatatypeConstants.Field HOURS
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 January.
Field Value:
1

JULY

public static final int JULY
Value for July.
Field Value:
7

JUNE

public static final int JUNE
Value for June.
Field Value:
6

LESSER

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

MARCH

public static final int MARCH
Value for March.
Field Value:
3

MAX_TIMEZONE_OFFSET

public static final int MAX_TIMEZONE_OFFSET
XML Schema maximum timezone offset, in minutes.
Field Value:
-840

MAY

public static final int MAY
Value for May.
Field Value:
5

MINUTES

public static final DatatypeConstants.Field MINUTES
Constant that represents the minutes field.

MIN_TIMEZONE_OFFSET

public static final int MIN_TIMEZONE_OFFSET
XML Schema minimum timezone offset, in minutes.
Field Value:
840

MONTHS

public static final DatatypeConstants.Field MONTHS
Constant that represents the months field.

NOVEMBER

public static final int NOVEMBER
Value for November.
Field Value:
11

OCTOBER

public static final int OCTOBER
Value for October.
Field Value:
10

SECONDS

public static final DatatypeConstants.Field SECONDS
Constant that represents the seconds field.

SEPTEMBER

public static final int SEPTEMBER
Value for September.
Field Value:
9

TIME

public static final QName TIME
The qualified-name for the time data type.

YEARS

public static final DatatypeConstants.Field YEARS
Constant that represents the years field.

DatatypeConstants.java -- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.