DatatypeConstants
Stay organized with collections
Save and categorize content based on your preferences.
Utility class to contain basic Datatype values as constants.
Constant Summary
int |
APRIL |
Value for fourth month of year. |
int |
AUGUST |
Value for eighth month of year. |
int |
DECEMBER |
Value for twelve month of year. |
int |
EQUAL |
Comparison result. |
int |
FEBRUARY |
Value for second month of year. |
int |
FIELD_UNDEFINED |
Designation that an "int" field is not set. |
int |
GREATER |
Comparison result. |
int |
INDETERMINATE |
Comparison result. |
int |
JANUARY |
Value for first month of year. |
int |
JULY |
Value for seventh month of year. |
int |
JUNE |
Value for sixth month of year. |
int |
LESSER |
Comparison result. |
int |
MARCH |
Value for third month of year. |
int |
MAX_TIMEZONE_OFFSET |
W3C XML Schema max timezone offset is -14:00. |
int |
MAY |
Value for fifth month of year. |
int |
MIN_TIMEZONE_OFFSET |
W3C XML Schema min timezone offset is +14:00. |
int |
NOVEMBER |
Value for eleven month of year. |
int |
OCTOBER |
Value for tenth month of year. |
int |
SEPTEMBER |
Value for ninth month of year. |
Field Summary
public
static
final
QName |
DATE |
Fully qualified name for W3C XML Schema 1.0 datatype date . |
public
static
final
QName |
DATETIME |
Fully qualified name for W3C XML Schema 1.0 datatype dateTime . |
public
static
final
DatatypeConstants.Field |
DAYS |
A constant that represents the days field. |
public
static
final
QName |
DURATION |
Fully qualified name for W3C XML Schema datatype duration . |
public
static
final
QName |
DURATION_DAYTIME |
Fully qualified name for XQuery 1.0 and XPath 2.0 datatype dayTimeDuration . |
public
static
final
QName |
DURATION_YEARMONTH |
Fully qualified name for XQuery 1.0 and XPath 2.0 datatype yearMonthDuration . |
public
static
final
QName |
GDAY |
Fully qualified name for W3C XML Schema 1.0 datatype gDay . |
public
static
final
QName |
GMONTH |
Fully qualified name for W3C XML Schema 1.0 datatype gMonth . |
public
static
final
QName |
GMONTHDAY |
Fully qualified name for W3C XML Schema 1.0 datatype gMonthDay . |
public
static
final
QName |
GYEAR |
Fully qualified name for W3C XML Schema 1.0 datatype gYear . |
public
static
final
QName |
GYEARMONTH |
Fully qualified name for W3C XML Schema 1.0 datatype gYearMonth . |
public
static
final
DatatypeConstants.Field |
HOURS |
A constant that represents the hours field. |
public
static
final
DatatypeConstants.Field |
MINUTES |
A constant that represents the minutes field. |
public
static
final
DatatypeConstants.Field |
MONTHS |
A constant that represents the months field. |
public
static
final
DatatypeConstants.Field |
SECONDS |
A constant that represents the seconds field. |
public
static
final
QName |
TIME |
Fully qualified name for W3C XML Schema 1.0 datatype time . |
public
static
final
DatatypeConstants.Field |
YEARS |
A constant that represents the years field. |
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals( Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
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()
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
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(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(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()
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
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
public
static
final
int
INDETERMINATE
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
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
DATE
Fully qualified name for W3C XML Schema 1.0 datatype date
.
public
static
final
QName
DATETIME
Fully qualified name for W3C XML Schema 1.0 datatype dateTime
.
A constant that represents the days field.
public
static
final
QName
DURATION
Fully qualified name for W3C XML Schema datatype duration
.
public
static
final
QName
DURATION_DAYTIME
Fully qualified name for XQuery 1.0 and XPath 2.0 datatype dayTimeDuration
.
public
static
final
QName
DURATION_YEARMONTH
Fully qualified name for XQuery 1.0 and XPath 2.0 datatype yearMonthDuration
.
public
static
final
QName
GDAY
Fully qualified name for W3C XML Schema 1.0 datatype gDay
.
public
static
final
QName
GMONTH
Fully qualified name for W3C XML Schema 1.0 datatype gMonth
.
public
static
final
QName
GMONTHDAY
Fully qualified name for W3C XML Schema 1.0 datatype gMonthDay
.
public
static
final
QName
GYEAR
Fully qualified name for W3C XML Schema 1.0 datatype gYear
.
public
static
final
QName
GYEARMONTH
Fully qualified name for W3C XML Schema 1.0 datatype gYearMonth
.
A constant that represents the hours field.
A constant that represents the minutes field.
A constant that represents the months field.
A constant that represents the seconds field.
public
static
final
QName
TIME
Fully qualified name for W3C XML Schema 1.0 datatype time
.
A constant that represents the years field.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eDatatypeConstants\u003c/code\u003e is a utility class providing constant values for basic datatypes and comparison results.\u003c/p\u003e\n"],["\u003cp\u003eIt includes constants for months of the year, comparison outcomes (EQUAL, GREATER, LESSER), and timezone offsets.\u003c/p\u003e\n"],["\u003cp\u003eIt defines fully qualified names for W3C XML Schema 1.0 datatypes like \u003ccode\u003edate\u003c/code\u003e, \u003ccode\u003edateTime\u003c/code\u003e, \u003ccode\u003eduration\u003c/code\u003e, \u003ccode\u003egDay\u003c/code\u003e, \u003ccode\u003egMonth\u003c/code\u003e, etc.\u003c/p\u003e\n"],["\u003cp\u003eThe nested \u003ccode\u003eDatatypeConstants.Field\u003c/code\u003e class offers type-safe enums for the six fields of the \u003ccode\u003eDuration\u003c/code\u003e class (years, months, days, hours, minutes, seconds).\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits methods from \u003ccode\u003ejava.lang.Object\u003c/code\u003e such as \u003ccode\u003eclone\u003c/code\u003e, \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, \u003ccode\u003etoString\u003c/code\u003e, etc.\u003c/p\u003e\n"]]],["`DatatypeConstants` is a utility class with constants for datatype values. It defines integer constants for months (e.g., `APRIL`, `DECEMBER`), comparison results (`EQUAL`, `GREATER`), and special values like `FIELD_UNDEFINED`. It also holds maximum and minimum timezone offset values. Additionally, it provides fully qualified names (`QName`) for W3C XML Schema datatypes like `DATE`, `DATETIME`, `DURATION`, and `gMonth`, and fields constants like `DAYS`, `HOURS`, `MONTHS`, and `YEARS`. It contains a nested class `DatatypeConstants.Field`.\n"],null,[]]