|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.datatype.DatatypeFactory
public abstract class DatatypeFactory
Factory class to create new datatype objects mapping XML to and from Java objects.
Field Summary | |
---|---|
static String |
DATATYPEFACTORY_IMPLEMENTATION_CLASS
JAXP 1.3 default implementation class name. |
static String |
DATATYPEFACTORY_PROPERTY
JAXP 1.3 default property name. |
Constructor Summary | |
---|---|
protected |
DatatypeFactory()
|
Method Summary | |
---|---|
abstract Duration |
newDuration(boolean isPositive,
BigInteger years,
BigInteger months,
BigInteger days,
BigInteger hours,
BigInteger minutes,
BigDecimal seconds)
Returns a new duration by specifying the individual components. |
Duration |
newDuration(boolean isPositive,
int years,
int months,
int days,
int hours,
int minutes,
int seconds)
Returns a new duration by specifying the individual components. |
abstract Duration |
newDuration(long durationInMilliSeconds)
Returns a new duration. |
abstract Duration |
newDuration(String lexicalRepresentation)
Returns a new duration from its string representation. |
Duration |
newDurationDayTime(boolean isPositive,
BigInteger days,
BigInteger hours,
BigInteger minutes,
BigInteger seconds)
Returns a new dayTimeDuration by specifying the individual components. |
Duration |
newDurationDayTime(boolean isPositive,
int days,
int hours,
int minutes,
int seconds)
Returns a new dayTimeDuration by specifying the individual components. |
Duration |
newDurationDayTime(long durationInMilliseconds)
Returns a new dayTimeDuration. |
Duration |
newDurationDayTime(String lexicalRepresentation)
Returns a new dayTimeDuration from its string representation. |
Duration |
newDurationYearMonth(boolean isPositive,
BigInteger years,
BigInteger months)
Returns a new yearMonthDuration by specifying the individual components. |
Duration |
newDurationYearMonth(boolean isPositive,
int years,
int months)
Returns a new yearMonthDuration by specifying the individual components. |
Duration |
newDurationYearMonth(long durationInMilliseconds)
Returns a new yearMonthDuration. |
Duration |
newDurationYearMonth(String lexicalRepresentation)
Returns a new yearMonthDuration from its string representation. |
static DatatypeFactory |
newInstance()
Returns a new factory instance. |
abstract XMLGregorianCalendar |
newXMLGregorianCalendar()
Returns a new XMLGregorianCalendar with no fields initialized. |
abstract XMLGregorianCalendar |
newXMLGregorianCalendar(BigInteger year,
int month,
int day,
int hour,
int minute,
int second,
BigDecimal fractionalSecond,
int timezone)
Returns a new XMLGregorianCalendar with the specified components. |
abstract XMLGregorianCalendar |
newXMLGregorianCalendar(GregorianCalendar cal)
Returns a new XMLGregorianCalendar based on the specified Gregorian calendar. |
XMLGregorianCalendar |
newXMLGregorianCalendar(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int timezone)
Returns a new XMLGregorianCalendar with the specified components. |
abstract XMLGregorianCalendar |
newXMLGregorianCalendar(String lexicalRepresentation)
Returns a new XMLGregorianCalendar from a string representation. |
XMLGregorianCalendar |
newXMLGregorianCalendarDate(int year,
int month,
int day,
int timezone)
Returns a new XMLGregorianCalendar with the specified components. |
XMLGregorianCalendar |
newXMLGregorianCalendarTime(int hours,
int minutes,
int seconds,
BigDecimal fractionalSecond,
int timezone)
Returns a new XMLGregorianCalendar with the specified components. |
XMLGregorianCalendar |
newXMLGregorianCalendarTime(int hours,
int minutes,
int seconds,
int timezone)
Returns a new XMLGregorianCalendar with the specified components. |
XMLGregorianCalendar |
newXMLGregorianCalendarTime(int hours,
int minutes,
int seconds,
int milliseconds,
int timezone)
Returns a new XMLGregorianCalendar with the specified components. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DATATYPEFACTORY_PROPERTY
public static final String DATATYPEFACTORY_IMPLEMENTATION_CLASS
Constructor Detail |
---|
protected DatatypeFactory()
Method Detail |
---|
public static DatatypeFactory newInstance() throws DatatypeConfigurationException
DatatypeConfigurationException
public abstract Duration newDuration(String lexicalRepresentation)
lexicalRepresentation
- the lexical representation of the
duration, as specified in XML Schema 1.0 section 3.2.6.1.public abstract Duration newDuration(long durationInMilliSeconds)
durationInMilliSeconds
- the duration in millisecondspublic abstract Duration newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)
isPositive
- whether the duration is positiveyears
- the number of yearsmonths
- the number of monthsdays
- the number of dayshours
- the number of hoursminutes
- th number of minutesseconds
- the number of secondspublic Duration newDuration(boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds)
isPositive
- whether the duration is positiveyears
- the number of yearsmonths
- the number of monthsdays
- the number of dayshours
- the number of hoursminutes
- th number of minutesseconds
- the number of secondspublic Duration newDurationDayTime(String lexicalRepresentation)
lexicalRepresentation
- the lexical representation of the
duration, as specified in XML Schema 1.0 section 3.2.6.1.public Duration newDurationDayTime(long durationInMilliseconds)
durationInMilliseconds
- the duration in millisecondspublic Duration newDurationDayTime(boolean isPositive, BigInteger days, BigInteger hours, BigInteger minutes, BigInteger seconds)
isPositive
- whether the duration is positivedays
- the number of dayshours
- the number of hoursminutes
- th number of minutesseconds
- the number of secondspublic Duration newDurationDayTime(boolean isPositive, int days, int hours, int minutes, int seconds)
isPositive
- whether the duration is positivedays
- the number of dayshours
- the number of hoursminutes
- th number of minutesseconds
- the number of secondspublic Duration newDurationYearMonth(String lexicalRepresentation)
lexicalRepresentation
- the lexical representation of the
duration, as specified in XML Schema 1.0 section 3.2.6.1.public Duration newDurationYearMonth(long durationInMilliseconds)
durationInMilliseconds
- the duration in millisecondspublic Duration newDurationYearMonth(boolean isPositive, BigInteger years, BigInteger months)
isPositive
- whether the duration is positiveyears
- the number of yearsmonths
- the number of monthspublic Duration newDurationYearMonth(boolean isPositive, int years, int months)
isPositive
- whether the duration is positiveyears
- the number of yearsmonths
- the number of monthspublic abstract XMLGregorianCalendar newXMLGregorianCalendar()
public abstract XMLGregorianCalendar newXMLGregorianCalendar(String lexicalRepresentation)
lexicalRepresentation
- the lexical representation as specified in
XML Schema 1.0 Part 2, section 3.2.[7-14].1.public abstract XMLGregorianCalendar newXMLGregorianCalendar(GregorianCalendar cal)
public abstract XMLGregorianCalendar newXMLGregorianCalendar(BigInteger year, int month, int day, int hour, int minute, int second, BigDecimal fractionalSecond, int timezone)
public XMLGregorianCalendar newXMLGregorianCalendar(int year, int month, int day, int hour, int minute, int second, int millisecond, int timezone)
public XMLGregorianCalendar newXMLGregorianCalendarDate(int year, int month, int day, int timezone)
public XMLGregorianCalendar newXMLGregorianCalendarTime(int hours, int minutes, int seconds, int timezone)
public XMLGregorianCalendar newXMLGregorianCalendarTime(int hours, int minutes, int seconds, BigDecimal fractionalSecond, int timezone)
public XMLGregorianCalendar newXMLGregorianCalendarTime(int hours, int minutes, int seconds, int milliseconds, int timezone)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |