javax.xml.datatype
6 classes of the module java.xml.
Load them with:
using {
"javax.xml.datatype"
}
DatatypeConfigurationException DatatypeConstants DatatypeConstantsField DatatypeDuration DatatypeFactory XMLGregorianCalendar
DatatypeConfigurationException#
class · extends Exception · javax.xml.datatype.DatatypeConfigurationException
Constructors
new DatatypeConfigurationException() |
new DatatypeConfigurationException(Throwable cause) |
new DatatypeConfigurationException(String message) |
new DatatypeConfigurationException(String message, Throwable cause) |
Ring: new DatatypeConfigurationException(args) uses the constructor with the fewest parameters (at least one); new DatatypeConfigurationException makes the object with the constructor without parameters; the others: (new DatatypeConfigurationException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
DatatypeConstants#
class final · extends Object · javax.xml.datatype.DatatypeConstants
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
JANUARY | int | constant · static | o.JANUARY |
FEBRUARY | int | constant · static | o.FEBRUARY |
MARCH | int | constant · static | o.MARCH |
APRIL | int | constant · static | o.APRIL |
MAY | int | constant · static | o.MAY |
JUNE | int | constant · static | o.JUNE |
JULY | int | constant · static | o.JULY |
AUGUST | int | constant · static | o.AUGUST |
SEPTEMBER | int | constant · static | o.SEPTEMBER |
OCTOBER | int | constant · static | o.OCTOBER |
NOVEMBER | int | constant · static | o.NOVEMBER |
DECEMBER | int | constant · static | o.DECEMBER |
LESSER | int | constant · static | o.LESSER |
EQUAL | int | constant · static | o.EQUAL |
GREATER | int | constant · static | o.GREATER |
INDETERMINATE | int | constant · static | o.INDETERMINATE |
FIELD_UNDEFINED | int | constant · static | o.FIELD_UNDEFINED |
YEARS | Field | constant · static | o.YEARS |
MONTHS | Field | constant · static | o.MONTHS |
DAYS | Field | constant · static | o.DAYS |
HOURS | Field | constant · static | o.HOURS |
MINUTES | Field | constant · static | o.MINUTES |
SECONDS | Field | constant · static | o.SECONDS |
DATETIME | QName | constant · static | o.DATETIME |
TIME | QName | constant · static | o.TIME |
DATE | QName | constant · static | o.DATE |
GYEARMONTH | QName | constant · static | o.GYEARMONTH |
GMONTHDAY | QName | constant · static | o.GMONTHDAY |
GYEAR | QName | constant · static | o.GYEAR |
GMONTH | QName | constant · static | o.GMONTH |
GDAY | QName | constant · static | o.GDAY |
DURATION | QName | constant · static | o.DURATION |
DURATION_DAYTIME | QName | constant · static | o.DURATION_DAYTIME |
DURATION_YEARMONTH | QName | constant · static | o.DURATION_YEARMONTH |
MAX_TIMEZONE_OFFSET | int | constant · static | o.MAX_TIMEZONE_OFFSET |
MIN_TIMEZONE_OFFSET | int | constant · static | o.MIN_TIMEZONE_OFFSET |
The methods and fields of Object are inherited.
DatatypeConstantsField#
class final · extends Object · javax.xml.datatype.DatatypeConstants$Field
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getId | getId() | int getId() |
The methods and fields of Object are inherited.
DatatypeDuration#
abstract · extends Object · javax.xml.datatype.Duration
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@getField | @getField(field) | Number getField(Field field) |
add | add(rhs) | Duration add(Duration rhs) |
addTo | addTo(date) | void addTo(Date date)void addTo(Calendar calendar) |
compare | compare(duration) | int compare(Duration duration) |
getDays | getDays() | int getDays() |
getHours | getHours() | int getHours() |
getMinutes | getMinutes() | int getMinutes() |
getMonths | getMonths() | int getMonths() |
getSeconds | getSeconds() | int getSeconds() |
getSign | getSign() | int getSign() |
getTimeInMillis | getTimeInMillis(startInstant) | long getTimeInMillis(Date startInstant)long getTimeInMillis(Calendar startInstant) |
getXMLSchemaType | getXMLSchemaType() | QName getXMLSchemaType() |
getYears | getYears() | int getYears() |
isLongerThan | isLongerThan(duration) | boolean isLongerThan(Duration duration) |
isSet | isSet(field) | boolean isSet(Field field) |
isShorterThan | isShorterThan(duration) | boolean isShorterThan(Duration duration) |
multiply | multiply(factor) | Duration multiply(BigDecimal factor)Duration multiply(int factor) |
negate | negate() | Duration negate() |
normalizeWith | normalizeWith(startTimeInstant) | Duration normalizeWith(Calendar startTimeInstant) |
subtract | subtract(rhs) | Duration subtract(Duration rhs) |
The methods and fields of Object are inherited.
DatatypeFactory#
abstract · extends Object · javax.xml.datatype.DatatypeFactory
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DATATYPEFACTORY_PROPERTY | String | constant · static | o.DATATYPEFACTORY_PROPERTY |
DATATYPEFACTORY_IMPLEMENTATION_CLASS | String | constant · static | o.DATATYPEFACTORY_IMPLEMENTATION_CLASS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@newInstance | @newInstance([factoryClassName,classLoader])@newInstance([ :factoryClassName = v, :classLoader = v ]) | static DatatypeFactory newInstance(String factoryClassName, ClassLoader classLoader) |
@newXMLGregorianCalendar | @newXMLGregorianCalendar(cal)@newXMLGregorianCalendar([year,month,day,hour,minute,second,fractionalSecond,timezone])@newXMLGregorianCalendar([ :year = v, :month = v, :day = v, :hour = v, :minute = v, :second = v, :fractionalSecond = v, :timezone = v ]) | XMLGregorianCalendar newXMLGregorianCalendar(GregorianCalendar cal)XMLGregorianCalendar newXMLGregorianCalendar(String lexicalRepresentation)XMLGregorianCalendar newXMLGregorianCalendar(BigInteger year, int month, int day, int hour, int minute, int second, BigDecimal fractionalSecond, int timezone)XMLGregorianCalendar newXMLGregorianCalendar(int year, int month, int day, int hour, int minute, int second, int millisecond, int timezone) |
newDefaultInstance | newDefaultInstance() | static DatatypeFactory newDefaultInstance() |
newDuration | newDuration(durationInMilliSeconds)newDuration([isPositive,years,months,days,hours,minutes,seconds])newDuration([ :isPositive = v, :years = v, :months = v, :days = v, :hours = v, :minutes = v, :seconds = v ]) | Duration newDuration(long durationInMilliSeconds)Duration newDuration(String lexicalRepresentation)Duration newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)Duration newDuration(boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds) |
newDurationDayTime | newDurationDayTime(durationInMilliseconds)newDurationDayTime([isPositive,day,hour,minute,second])newDurationDayTime([ :isPositive = v, :day = v, :hour = v, :minute = v, :second = v ]) | Duration newDurationDayTime(long durationInMilliseconds)Duration newDurationDayTime(String lexicalRepresentation)Duration newDurationDayTime(boolean isPositive, BigInteger day, BigInteger hour, BigInteger minute, BigInteger second)Duration newDurationDayTime(boolean isPositive, int day, int hour, int minute, int second) |
newDurationYearMonth | newDurationYearMonth(durationInMilliseconds)newDurationYearMonth([isPositive,year,month])newDurationYearMonth([ :isPositive = v, :year = v, :month = v ]) | Duration newDurationYearMonth(long durationInMilliseconds)Duration newDurationYearMonth(String lexicalRepresentation)Duration newDurationYearMonth(boolean isPositive, int year, int month)Duration newDurationYearMonth(boolean isPositive, BigInteger year, BigInteger month) |
newInstance | newInstance() | static DatatypeFactory newInstance() |
newXMLGregorianCalendar | newXMLGregorianCalendar() | XMLGregorianCalendar newXMLGregorianCalendar() |
newXMLGregorianCalendarDate | newXMLGregorianCalendarDate(year,month,day,timezone) | XMLGregorianCalendar newXMLGregorianCalendarDate(int year, int month, int day, int timezone) |
newXMLGregorianCalendarTime | newXMLGregorianCalendarTime([hours,minutes,seconds,timezone])newXMLGregorianCalendarTime([ :hours = v, :minutes = v, :seconds = v, :timezone = v ])newXMLGregorianCalendarTime([hours,minutes,seconds,fractionalSecond,timezone])newXMLGregorianCalendarTime([ :hours = v, :minutes = v, :seconds = v, :fractionalSecond = v, :timezone = v ]) | XMLGregorianCalendar newXMLGregorianCalendarTime(int hours, int minutes, int seconds, int timezone)XMLGregorianCalendar newXMLGregorianCalendarTime(int hours, int minutes, int seconds, BigDecimal fractionalSecond, int timezone)XMLGregorianCalendar newXMLGregorianCalendarTime(int hours, int minutes, int seconds, int milliseconds, int timezone) |
The methods and fields of Object are inherited.
XMLGregorianCalendar#
abstract · extends Object · javax.xml.datatype.XMLGregorianCalendar
Implements: Cloneable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@getTimezone | @getTimezone(defaultZoneoffset) | TimeZone getTimeZone(int defaultZoneoffset) |
@toGregorianCalendar | @toGregorianCalendar([timezone,aLocale,defaults])@toGregorianCalendar([ :timezone = v, :aLocale = v, :defaults = v ]) | GregorianCalendar toGregorianCalendar(TimeZone timezone, Locale aLocale, XMLGregorianCalendar defaults) |
add | add(duration) | void add(Duration duration) |
clear | clear() | void clear() |
clone | clone() | Object clone() |
compare | compare(xmlGregorianCalendar) | int compare(XMLGregorianCalendar xmlGregorianCalendar) |
getDay | getDay() | int getDay() |
getEon | getEon() | BigInteger getEon() |
getEonAndYear | getEonAndYear() | BigInteger getEonAndYear() |
getFractionalSecond | getFractionalSecond() | BigDecimal getFractionalSecond() |
getHour | getHour() | int getHour() |
getMillisecond | getMillisecond() | int getMillisecond() |
getMinute | getMinute() | int getMinute() |
getMonth | getMonth() | int getMonth() |
getSecond | getSecond() | int getSecond() |
getTimezone | getTimezone() | int getTimezone() |
getXMLSchemaType | getXMLSchemaType() | QName getXMLSchemaType() |
getYear | getYear() | int getYear() |
isValid | isValid() | boolean isValid() |
normalize | normalize() | XMLGregorianCalendar normalize() |
reset | reset() | void reset() |
setDay | setDay(day) | void setDay(int day) |
setFractionalSecond | setFractionalSecond(fractional) | void setFractionalSecond(BigDecimal fractional) |
setHour | setHour(hour) | void setHour(int hour) |
setMillisecond | setMillisecond(millisecond) | void setMillisecond(int millisecond) |
setMinute | setMinute(minute) | void setMinute(int minute) |
setMonth | setMonth(month) | void setMonth(int month) |
setSecond | setSecond(second) | void setSecond(int second) |
setTime | setTime([hour,minute,second])setTime([ :hour = v, :minute = v, :second = v ])setTime([hour,minute,second,fractional])setTime([ :hour = v, :minute = v, :second = v, :fractional = v ]) | void setTime(int hour, int minute, int second)void setTime(int hour, int minute, int second, BigDecimal fractional)void setTime(int hour, int minute, int second, int millisecond) |
setTimezone | setTimezone(offset) | void setTimezone(int offset) |
setYear | setYear(year) | void setYear(BigInteger year)void setYear(int year) |
toGregorianCalendar | toGregorianCalendar() | GregorianCalendar toGregorianCalendar() |
toXMLFormat | toXMLFormat() | String toXMLFormat() |
The methods and fields of Object are inherited.