|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fraunhofer.ipsi.xpathDatatypes.XS_AnySimpleType
de.fraunhofer.ipsi.xpathDatatypes.XDT_AnyAtomicType
de.fraunhofer.ipsi.xpathDatatypes.XDT_YearMonthDuration
public class XDT_YearMonthDuration
Field Summary | |
---|---|
boolean |
positive
|
Constructor Summary | |
---|---|
XDT_YearMonthDuration(boolean positive,
java.math.BigInteger years,
java.math.BigInteger months)
Constructor |
|
XDT_YearMonthDuration(java.lang.String s)
Constructor |
Method Summary | ||
---|---|---|
XDT_YearMonthDuration |
add(XDT_YearMonthDuration yearMonthDuration)
Method addYearMonthDurations |
|
|
castas(java.lang.Class<T> type)
Method castas |
|
int |
compareTo(java.lang.Object o)
Method compareTo |
|
XDT_YearMonthDuration |
divide(XS_Decimal divide)
Method divideYearMonthDuration |
|
XS_Integer |
getMonths()
Method getMonthsFromYearMonthDuration |
|
XS_Integer |
getYears()
Method getYearsFromYearMonthDuration |
|
XDT_YearMonthDuration |
multiply(XS_Decimal multiply)
Method multiplyYearMonthDurations |
|
XDT_YearMonthDuration |
subtract(XDT_YearMonthDuration yearMonthDuration)
Method subtractYearMonthDurations |
|
int |
toMonths()
Method toMonths |
|
double |
toSeconds()
Method toSeconds |
|
java.lang.String |
toString()
Method toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final boolean positive
Constructor Detail |
---|
public XDT_YearMonthDuration(boolean positive, java.math.BigInteger years, java.math.BigInteger months)
positive
- a booleanyears
- a BigIntegermonths
- a BigIntegerpublic XDT_YearMonthDuration(java.lang.String s)
yearMonthDuration
- a XS_StringMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public XS_Integer getYears()
public XS_Integer getMonths()
public XDT_YearMonthDuration add(XDT_YearMonthDuration yearMonthDuration)
type
- XS_YearMonthDuration
public XDT_YearMonthDuration subtract(XDT_YearMonthDuration yearMonthDuration)
type
- XS_YearMonthDuration
public XDT_YearMonthDuration multiply(XS_Decimal multiply)
type
- XS_Decimal
public XDT_YearMonthDuration divide(XS_Decimal divide)
type
- XS_Decimal
public int toMonths()
public double toSeconds()
public <T extends XDT_AnyAtomicType> T castas(java.lang.Class<T> type) throws java.lang.ClassCastException, XPathDTException
castas
in class XDT_AnyAtomicType
type
- a BuiltinSimpleType
CastError
java.lang.ClassCastException
XPathDTException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |