publicabstract Duration
newDuration
(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)
public Duration
newDuration
(boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds)
public Duration
newDurationDayTime
(boolean isPositive, BigInteger day, BigInteger hour, BigInteger minute, BigInteger second)
Create a Duration of type xdt:dayTimeDuration using the specified
day, hour, minute and second as defined in
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
public Duration
newDurationDayTime
(boolean isPositive, int day, int hour, int minute, int second)
Create a Duration of type xdt:dayTimeDuration using the specified
day, hour, minute and second as defined in
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
public Duration
newDurationDayTime
(long durationInMilliseconds)
Create a Duration of type xdt:dayTimeDuration using the specified milliseconds as defined in
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
public Duration
newDurationDayTime
(String lexicalRepresentation)
Create a Duration of type xdt:dayTimeDuration by parsing its String representation,
"PnDTnHnMnS",
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
public Duration
newDurationYearMonth
(boolean isPositive, BigInteger year, BigInteger month)
Create a Duration of type xdt:yearMonthDuration using the specified
year and month as defined in
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
public Duration
newDurationYearMonth
(boolean isPositive, int year, int month)
Create a Duration of type xdt:yearMonthDuration using the specified
year and month as defined in
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
public Duration
newDurationYearMonth
(long durationInMilliseconds)
Create a Duration of type xdt:yearMonthDuration using the specified milliseconds as defined in
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
public Duration
newDurationYearMonth
(String lexicalRepresentation)
Create a Duration of type xdt:yearMonthDuration by parsing its String representation,
"PnYnM",
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
publicstatic DatatypeFactory
newInstance
(String factoryClassName, ClassLoader classLoader)
throws
DatatypeConfigurationException
publicabstract 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, BigDecimal fractionalSecond, int timezone)
public XMLGregorianCalendar
newXMLGregorianCalendarTime
(int hours, int minutes, int seconds, int timezone)
public XMLGregorianCalendar
newXMLGregorianCalendarTime
(int hours, int minutes, int seconds, int milliseconds, int timezone)