|
||||||||||
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.CalendarType
org.ucl.xpath.types.XSTime
A representation of the Time datatype
Constructor Summary | |
XSTime()
Initialises to the current time |
|
XSTime(java.util.Calendar cal,
XDTDayTimeDuration tz)
Initialises to the supplied time and timezone |
Method Summary | |
java.util.Calendar |
calendar()
Retrieves a Calendar representation of time stored |
java.lang.Object |
clone()
Creates a new copy of the time (and timezone) stored |
ResultSequence |
constructor(ResultSequence arg)
Creates a new ResultSequence consisting of the extractable time from the supplied ResultSequence |
boolean |
eq(AnyType arg)
Equality comparison between this and the supplied XSTime representation |
boolean |
gt(AnyType arg)
Comparison between this and the supplied XSTime representation |
int |
hour()
Retrieves the hour stored as an integer |
boolean |
lt(AnyType arg)
Comparison between this and the supplied XSTime representation |
ResultSequence |
minus(ResultSequence arg)
Mathematical subtraction between this time stored and the supplied representation. |
int |
minute()
Retrieves the minute stored as an integer |
static XSTime |
parse_time(java.lang.String str)
Creates a new XSTime representing the String represented supplied time |
ResultSequence |
plus(ResultSequence arg)
Mathematical addition between this time stored and the supplied time duration. |
double |
second()
Retrieves the seconds stored as an integer |
java.lang.String |
string_type()
Retrieves the datatype's full pathname |
java.lang.String |
string_value()
Retrieves a String representation of the time stored |
boolean |
timezoned()
Check for whether the time stored has a timezone associated with it |
java.lang.String |
type_name()
Retrieves the datatype's name |
XDTDayTimeDuration |
tz()
Retrieves the timezone associated with the time stored as a duration of time |
double |
value()
Retrieves the time in milliseconds since the epoch |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSTime(java.util.Calendar cal, XDTDayTimeDuration tz)
cal
- Calendar representation of the time to be storedtz
- The timezone (possibly null) associated with this timepublic XSTime()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public java.lang.String type_name()
type_name
in class CtrType
public static XSTime parse_time(java.lang.String str)
str
- String represented time and timezone to be stored
public ResultSequence constructor(ResultSequence arg) throws DynamicError
constructor
in class CtrType
arg
- The ResultSequence from which to extract the time
DynamicError
public int hour()
public int minute()
public double second()
public boolean timezoned()
public java.lang.String string_value()
string_value
in class AnyType
public java.lang.String string_type()
string_type
in class AnyType
public java.util.Calendar calendar()
public XDTDayTimeDuration tz()
public double value()
public boolean eq(AnyType arg) throws DynamicError
eq
in interface CmpEq
arg
- The XSTime to compare with
DynamicError
public boolean lt(AnyType arg) throws DynamicError
lt
in interface CmpLt
arg
- The XSTime to compare with
DynamicError
- Dynamic error.public boolean gt(AnyType arg) throws DynamicError
gt
in interface CmpGt
arg
- The XSTime to compare with
DynamicError
public ResultSequence minus(ResultSequence arg) throws DynamicError
minus
in interface MathMinus
arg
- The representation to subtract (either XSTim or XDTDayTimeDuration)
DynamicError
- Dynamic error.public ResultSequence plus(ResultSequence arg) throws DynamicError
plus
in interface MathPlus
arg
- A XDTDayTimeDuration representation of the duration of time to add
DynamicError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |