APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.xml.datatype

public final Class DatatypeConstants

extends Object
Class Inheritance
Imports
javax.xml.XMLConstants, javax.xml.namespace.QName

Utility class to contain basic Datatype values as constants.

Author
Jeff Suttor
Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
DatatypeConstants.Field

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

Field Summary

Modifier and TypeField and Description
public static final int
APRIL

Value for fourth month of year.

public static final int
AUGUST

Value for eighth month of year.

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 int
DECEMBER

Value for twelve month of year.

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 int
EQUAL

Comparison result.

public static final int
FEBRUARY

Value for second month of year.

public static final int
FIELD_UNDEFINED

Designation that an "int" field is not set.

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 int
GREATER

Comparison result.

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 int
INDETERMINATE

Comparison result.

public static final int
JANUARY

Value for first month of year.

public static final int
JULY

Value for seventh month of year.

public static final int
JUNE

Value for sixth month of year.

public static final int
LESSER

Comparison result.

public static final int
MARCH

Value for third month of year.

public static final int
MAX_TIMEZONE_OFFSET

W3C XML Schema max timezone offset is -14:00.

public static final int
MAY

Value for fifth month of year.

public static final int
MIN_TIMEZONE_OFFSET

W3C XML Schema min timezone offset is +14:00.

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 int
NOVEMBER

Value for eleven month of year.

public static final int
OCTOBER

Value for tenth month of year.

public static final DatatypeConstants.Field
SECONDS

A constant that represents the seconds field.

public static final int
SEPTEMBER

Value for ninth month of year.

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.

Constructor Summary

AccessConstructor and Description
private
DatatypeConstants()

Private constructor to prevent instantiation.

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

APRILback to summary
public static final int APRIL

Value for fourth month of year.

AUGUSTback to summary
public static final int AUGUST

Value for eighth month of year.

DATEback to summary
public static final QName DATE

Fully qualified name for W3C XML Schema 1.0 datatype date.

DATETIMEback to summary
public static final QName DATETIME

Fully qualified name for W3C XML Schema 1.0 datatype dateTime.

DAYSback to summary
public static final DatatypeConstants.Field DAYS

A constant that represents the days field.

DECEMBERback to summary
public static final int DECEMBER

Value for twelve month of year.

DURATIONback to summary
public static final QName DURATION

Fully qualified name for W3C XML Schema datatype duration.

DURATION_DAYTIMEback to summary
public static final QName DURATION_DAYTIME

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

DURATION_YEARMONTHback to summary
public static final QName DURATION_YEARMONTH

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

EQUALback to summary
public static final int EQUAL

Comparison result.

FEBRUARYback to summary
public static final int FEBRUARY

Value for second month of year.

FIELD_UNDEFINEDback to summary
public static final int FIELD_UNDEFINED

Designation that an "int" field is not set.

GDAYback to summary
public static final QName GDAY

Fully qualified name for W3C XML Schema 1.0 datatype gDay.

GMONTHback to summary
public static final QName GMONTH

Fully qualified name for W3C XML Schema 1.0 datatype gMonth.

GMONTHDAYback to summary
public static final QName GMONTHDAY

Fully qualified name for W3C XML Schema 1.0 datatype gMonthDay.

GREATERback to summary
public static final int GREATER

Comparison result.

GYEARback to summary
public static final QName GYEAR

Fully qualified name for W3C XML Schema 1.0 datatype gYear.

GYEARMONTHback to summary
public static final QName GYEARMONTH

Fully qualified name for W3C XML Schema 1.0 datatype gYearMonth.

HOURSback to summary
public static final DatatypeConstants.Field HOURS

A constant that represents the hours field.

INDETERMINATEback to summary
public static final int INDETERMINATE

Comparison result.

JANUARYback to summary
public static final int JANUARY

Value for first month of year.

JULYback to summary
public static final int JULY

Value for seventh month of year.

JUNEback to summary
public static final int JUNE

Value for sixth month of year.

LESSERback to summary
public static final int LESSER

Comparison result.

MARCHback to summary
public static final int MARCH

Value for third month of year.

MAX_TIMEZONE_OFFSETback to summary
public static final int MAX_TIMEZONE_OFFSET

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

MAYback to summary
public static final int MAY

Value for fifth month of year.

MIN_TIMEZONE_OFFSETback to summary
public static final int MIN_TIMEZONE_OFFSET

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

MINUTESback to summary
public static final DatatypeConstants.Field MINUTES

A constant that represents the minutes field.

MONTHSback to summary
public static final DatatypeConstants.Field MONTHS

A constant that represents the months field.

NOVEMBERback to summary
public static final int NOVEMBER

Value for eleven month of year.

OCTOBERback to summary
public static final int OCTOBER

Value for tenth month of year.

SECONDSback to summary
public static final DatatypeConstants.Field SECONDS

A constant that represents the seconds field.

SEPTEMBERback to summary
public static final int SEPTEMBER

Value for ninth month of year.

TIMEback to summary
public static final QName TIME

Fully qualified name for W3C XML Schema 1.0 datatype time.

YEARSback to summary
public static final DatatypeConstants.Field YEARS

A constant that represents the years field.

Constructor Detail

DatatypeConstantsback to summary
private DatatypeConstants()

Private constructor to prevent instantiation.

javax.xml.datatype back to summary

public final Class DatatypeConstants.Field

extends Object
Class Inheritance

Type-safe enum class that represents six fields of the Duration class.
Since
1.5

Field Summary

Modifier and TypeField and Description
private final int
id

Unique id of the field.

private final String
str

String representation of Field.

Constructor Summary

AccessConstructor and Description
private
Field(final String
String representation of Field
str
,
final int
int representation of Field
id
)

Construct a Field with specified values.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

Id of field.
getId
()

Get id of this Field.

public String

Returns:

a non-null valid String constant.
toString
()

Overrides java.lang.Object.toString.

Returns a field name in English.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

idback to summary
private final int id

Unique id of the field.

This value allows the Duration class to use switch statements to process fields.

strback to summary
private final String str

String representation of Field.

Constructor Detail

Fieldback to summary
private Field(final String str, final int id)

Construct a Field with specified values.

Parameters
str:String

String representation of Field

id:int

int representation of Field

Method Detail

getIdback to summary
public int getId()

Get id of this Field.

Returns:int

Id of field.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a field name in English. This method is intended to be used for debugging/diagnosis and not for display to end-users.

Returns:String

a non-null valid String constant.