de.fraunhofer.ipsi.xpathDatatypes
Class XS_Time

java.lang.Object
  extended by de.fraunhofer.ipsi.xpathDatatypes.XS_AnySimpleType
      extended by de.fraunhofer.ipsi.xpathDatatypes.XDT_AnyAtomicType
          extended by de.fraunhofer.ipsi.xpathDatatypes.XS_Time
All Implemented Interfaces:
java.lang.Comparable

public class XS_Time
extends XDT_AnyAtomicType
implements java.lang.Comparable


Constructor Summary
XS_Time(int hours, int minutes, java.math.BigDecimal seconds)
          Constructor
XS_Time(java.lang.String value)
          Constructor
 
Method Summary
 XS_Time add(XDT_DayTimeDuration dayTimeDuration)
          Method add
<T extends XDT_AnyAtomicType>
T
castas(java.lang.Class<T> type)
          Method castas
 int compareTo(java.lang.Object o)
          Method compareTo
static XS_Time currentTime()
          Method currentTime
 XS_Integer getHours()
          Method getHoursFromTime
 XS_Integer getMinutes()
          Method getMinutesFromTime
 XS_Decimal getSeconds()
          Method getSecondsFromTime
 XS_Time secondsToTime(double seconds)
          Method secondsToTime
 XS_Time subtract(XDT_DayTimeDuration dayTimeDuration)
          Method subtract
 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
 

Constructor Detail

XS_Time

public XS_Time(int hours,
               int minutes,
               java.math.BigDecimal seconds)
Constructor

Parameters:
hours - an int
minutes - an int
seconds - a BigDecimal

XS_Time

public XS_Time(java.lang.String value)
Constructor

Parameters:
value - a XS_String
Method Detail

toString

public java.lang.String toString()
Method toString

Overrides:
toString in class java.lang.Object
Returns:
a String

currentTime

public static XS_Time currentTime()
Method currentTime

Returns:
type XS_Time

castas

public <T extends XDT_AnyAtomicType> T castas(java.lang.Class<T> type)
                                   throws java.lang.ClassCastException,
                                          XPathDTException
Method castas

Overrides:
castas in class XDT_AnyAtomicType
Parameters:
type - a BuiltinSimpleType
Returns:
a XS_AnySimpleType
Throws:
CastError
java.lang.ClassCastException
XPathDTException

compareTo

public int compareTo(java.lang.Object o)
Method compareTo

Specified by:
compareTo in interface java.lang.Comparable
Returns:
XS_Boolean

getHours

public XS_Integer getHours()
Method getHoursFromTime

Returns:
@XS_Integer

getMinutes

public XS_Integer getMinutes()
Method getMinutesFromTime

Returns:
@XS_Integer

getSeconds

public XS_Decimal getSeconds()
Method getSecondsFromTime

Returns:
@XS_Integer

toSeconds

public double toSeconds()
Method toSeconds

Returns:
double

secondsToTime

public XS_Time secondsToTime(double seconds)
Method secondsToTime

Parameters:
double -
Returns:
XS_Time

add

public XS_Time add(XDT_DayTimeDuration dayTimeDuration)
Method add

Returns:
XS_Time

subtract

public XS_Time subtract(XDT_DayTimeDuration dayTimeDuration)
Method subtract

Returns:
XS_Time