# DatatypeConstants

public final class **DatatypeConstants** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
<br />

Utility class to contain basic Datatype values as constants.

<br />

### Nested Class Summary

|---|---|---|---|
| class | [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html) || Type-safe enum class that represents six fields of the `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/Duration.html` class. |

### Constant Summary

|---|---|---|
| int | [APRIL](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#APRIL) | Value for fourth month of year. |
| int | [AUGUST](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#AUGUST) | Value for eighth month of year. |
| int | [DECEMBER](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#DECEMBER) | Value for twelve month of year. |
| int | [EQUAL](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#EQUAL) | Comparison result. |
| int | [FEBRUARY](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#FEBRUARY) | Value for second month of year. |
| int | [FIELD_UNDEFINED](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED) | Designation that an "int" field is not set. |
| int | [GREATER](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#GREATER) | Comparison result. |
| int | [INDETERMINATE](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#INDETERMINATE) | Comparison result. |
| int | [JANUARY](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#JANUARY) | Value for first month of year. |
| int | [JULY](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#JULY) | Value for seventh month of year. |
| int | [JUNE](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#JUNE) | Value for sixth month of year. |
| int | [LESSER](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#LESSER) | Comparison result. |
| int | [MARCH](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#MARCH) | Value for third month of year. |
| int | [MAX_TIMEZONE_OFFSET](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#MAX_TIMEZONE_OFFSET) | W3C XML Schema max timezone offset is -14:00. |
| int | [MAY](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#MAY) | Value for fifth month of year. |
| int | [MIN_TIMEZONE_OFFSET](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#MIN_TIMEZONE_OFFSET) | W3C XML Schema min timezone offset is +14:00. |
| int | [NOVEMBER](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#NOVEMBER) | Value for eleven month of year. |
| int | [OCTOBER](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#OCTOBER) | Value for tenth month of year. |
| int | [SEPTEMBER](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#SEPTEMBER) | Value for ninth month of year. |

### Field Summary

|---|---|---|
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [DATE](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#DATE) | Fully qualified name for W3C XML Schema 1.0 datatype `date`. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [DATETIME](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#DATETIME) | Fully qualified name for W3C XML Schema 1.0 datatype `dateTime`. |
| public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html) | [DAYS](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#DAYS) | A constant that represents the days field. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [DURATION](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#DURATION) | Fully qualified name for W3C XML Schema datatype `duration`. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [DURATION_DAYTIME](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#DURATION_DAYTIME) | Fully qualified name for XQuery 1.0 and XPath 2.0 datatype `dayTimeDuration`. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [DURATION_YEARMONTH](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#DURATION_YEARMONTH) | Fully qualified name for XQuery 1.0 and XPath 2.0 datatype `yearMonthDuration`. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [GDAY](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#GDAY) | Fully qualified name for W3C XML Schema 1.0 datatype `gDay`. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [GMONTH](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#GMONTH) | Fully qualified name for W3C XML Schema 1.0 datatype `gMonth`. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [GMONTHDAY](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#GMONTHDAY) | Fully qualified name for W3C XML Schema 1.0 datatype `gMonthDay`. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [GYEAR](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#GYEAR) | Fully qualified name for W3C XML Schema 1.0 datatype `gYear`. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [GYEARMONTH](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#GYEARMONTH) | Fully qualified name for W3C XML Schema 1.0 datatype `gYearMonth`. |
| public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html) | [HOURS](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#HOURS) | A constant that represents the hours field. |
| public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html) | [MINUTES](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#MINUTES) | A constant that represents the minutes field. |
| public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html) | [MONTHS](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#MONTHS) | A constant that represents the months field. |
| public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html) | [SECONDS](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#SECONDS) | A constant that represents the seconds field. |
| public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html) | [TIME](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#TIME) | Fully qualified name for W3C XML Schema 1.0 datatype `time`. |
| public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html) | [YEARS](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.html#YEARS) | A constant that represents the years field. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Constants

#### public static final int
**APRIL**

Value for fourth month of year.
Constant Value: 4

#### public static final int
**AUGUST**

Value for eighth month of year.
Constant Value: 8

#### public static final int
**DECEMBER**

Value for twelve month of year.
Constant Value: 12

#### public static final int
**EQUAL**

<br />

Comparison result.

<br />

Constant Value: 0

#### public static final int
**FEBRUARY**

Value for second month of year.
Constant Value: 2

#### public static final int
**FIELD_UNDEFINED**

Designation that an "int" field is not set.
Constant Value: -2147483648

#### public static final int
**GREATER**

<br />

Comparison result.

<br />

Constant Value: 1

#### public static final int
**INDETERMINATE**

<br />

Comparison result.

<br />

Constant Value: 2

#### public static final int
**JANUARY**

Value for first month of year.
Constant Value: 1

#### public static final int
**JULY**

Value for seventh month of year.
Constant Value: 7

#### public static final int
**JUNE**

Value for sixth month of year.
Constant Value: 6

#### public static final int
**LESSER**

<br />

Comparison result.

<br />

Constant Value: -1

#### public static final int
**MARCH**

Value for third month of year.
Constant Value: 3

#### public static final int
**MAX_TIMEZONE_OFFSET**

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

#### public static final int
**MAY**

Value for fifth month of year.
Constant Value: 5

#### public static final int
**MIN_TIMEZONE_OFFSET**

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

#### public static final int
**NOVEMBER**

Value for eleven month of year.
Constant Value: 11

#### public static final int
**OCTOBER**

Value for tenth month of year.
Constant Value: 10

#### public static final int
**SEPTEMBER**

Value for ninth month of year.
Constant Value: 9

## Fields

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**DATE**

<br />

Fully qualified name for W3C XML Schema 1.0 datatype `date`.

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**DATETIME**

<br />

Fully qualified name for W3C XML Schema 1.0 datatype `dateTime`.

<br />

#### public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html)
**DAYS**

<br />

A constant that represents the days field.

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**DURATION**

<br />

Fully qualified name for W3C XML Schema datatype `duration`.

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**DURATION_DAYTIME**

<br />

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

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**DURATION_YEARMONTH**

<br />

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

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**GDAY**

<br />

Fully qualified name for W3C XML Schema 1.0 datatype `gDay`.

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**GMONTH**

<br />

Fully qualified name for W3C XML Schema 1.0 datatype `gMonth`.

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**GMONTHDAY**

<br />

Fully qualified name for W3C XML Schema 1.0 datatype `gMonthDay`.

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**GYEAR**

<br />

Fully qualified name for W3C XML Schema 1.0 datatype `gYear`.

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**GYEARMONTH**

<br />

Fully qualified name for W3C XML Schema 1.0 datatype `gYearMonth`.

<br />

#### public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html)
**HOURS**

<br />

A constant that represents the hours field.

<br />

#### public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html)
**MINUTES**

<br />

A constant that represents the minutes field.

<br />

#### public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html)
**MONTHS**

<br />

A constant that represents the months field.

<br />

#### public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html)
**SECONDS**

<br />

A constant that represents the seconds field.

<br />

#### public static final [QName](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/namespace/QName.html)
**TIME**

<br />

Fully qualified name for W3C XML Schema 1.0 datatype `time`.

<br />

#### public static final [DatatypeConstants.Field](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/datatype/DatatypeConstants.Field.html)
**YEARS**

<br />

A constant that represents the years field.

<br />