|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ucl.xpath.types.AnyType
org.ucl.xpath.types.AnySimpleType
org.ucl.xpath.types.AnyAtomicType
org.ucl.xpath.types.CtrType
org.ucl.xpath.types.XSDuration
org.ucl.xpath.types.XDTDayTimeDuration
A representation of the DayTimeDuration datatype
Constructor Summary | |
XDTDayTimeDuration()
Initialises to a duration of no time (0days, 0hours, 0minutes, 0seconds) |
|
XDTDayTimeDuration(double secs)
Initialises to the given number of seconds |
|
XDTDayTimeDuration(int days,
int hours,
int minutes,
double seconds,
boolean negative)
Initialises to the supplied parameters. |
Method Summary | |
java.lang.Object |
clone()
Creates a copy of this representation of a time duration |
ResultSequence |
constructor(ResultSequence arg)
Creates a new ResultSequence consisting of the extractable time duration from the supplied ResultSequence |
int |
days()
Retrieves the number of days within the duration of time stored |
ResultSequence |
div(ResultSequence arg)
Mathematical division between this duration stored and the supplied duration of time (of type XDTDayTimeDuration) |
boolean |
eq(AnyType arg)
Equality comparison between this and the supplied duration of time. |
boolean |
gt(AnyType arg)
Comparison between this and the supplied duration of time. |
int |
hours()
Retrieves the number of hours (max 24) within the duration of time stored |
boolean |
lt(AnyType arg)
Comparison between this and the supplied duration of time. |
ResultSequence |
minus(ResultSequence arg)
Mathematical subtraction between this duration stored and the supplied duration of time (of type XDTDayTimeDuration) |
int |
minutes()
Retrieves the number of minutes (max 60) within the duration of time stored |
boolean |
negative()
Retrieves whether this duration represents a backward passage through time |
static XDTDayTimeDuration |
parseDTDuration(java.lang.String str)
Creates a new XDTDayTimeDuration by parsing the supplied String represented duration of time |
ResultSequence |
plus(ResultSequence arg)
Mathematical addition between this duration stored and the supplied duration of time (of type XDTDayTimeDuration) |
double |
seconds()
Retrieves the number of seconds (max 60) within the duration of time stored |
java.lang.String |
string_type()
Retrieves the datatype's full pathname |
java.lang.String |
string_value()
Retrieves a String representation of the duration of time stored |
ResultSequence |
times(ResultSequence arg)
Mathematical multiplication between this duration stored and the supplied duration of time (of type XDTDayTimeDuration) |
java.lang.String |
type_name()
Retrives the datatype's name |
double |
value()
Retrieves the duration of time stored as the number of seconds within it |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XDTDayTimeDuration(int days, int hours, int minutes, double seconds, boolean negative)
days
- Number of days in this duration of timehours
- Number of hours in this duration of timeminutes
- Number of minutes in this duration of timeseconds
- Number of seconds in this duration of timenegative
- True if this duration of time represents a backwards passage
through time. False otherwisepublic XDTDayTimeDuration(double secs)
secs
- Number of seconds in the duration of timepublic XDTDayTimeDuration()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public static XDTDayTimeDuration parseDTDuration(java.lang.String str)
str
- String represented duration of time
public java.lang.String type_name()
type_name
in class CtrType
public ResultSequence constructor(ResultSequence arg) throws DynamicError
constructor
in class CtrType
arg
- The ResultSequence from which to extract
DynamicError
public boolean negative()
public int days()
public int minutes()
public int hours()
public double seconds()
public java.lang.String string_value()
string_value
in class AnyType
public java.lang.String string_type()
string_type
in class AnyType
public double value()
public boolean eq(AnyType arg) throws DynamicError
eq
in interface CmpEq
arg
- The duration of time to compare with
DynamicError
public boolean lt(AnyType arg) throws DynamicError
lt
in interface CmpLt
arg
- The duration of time to compare with
DynamicError
public boolean gt(AnyType arg) throws DynamicError
gt
in interface CmpGt
arg
- The duration of time to compare with
DynamicError
public ResultSequence plus(ResultSequence arg) throws DynamicError
plus
in interface MathPlus
arg
- The duration of time to add
DynamicError
public ResultSequence minus(ResultSequence arg) throws DynamicError
minus
in interface MathMinus
arg
- The duration of time to subtract
DynamicError
public ResultSequence times(ResultSequence arg) throws DynamicError
times
in interface MathTimes
arg
- The duration of time to multiply by
DynamicError
public ResultSequence div(ResultSequence arg) throws DynamicError
div
in interface MathDiv
arg
- The duration of time to divide by
DynamicError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |