de.fraunhofer.ipsi.xpathDatatypes
Class XS_Duration

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_Duration

public class XS_Duration
extends XDT_AnyAtomicType


Constructor Summary
XS_Duration(boolean pos, java.math.BigInteger years, java.math.BigInteger months, java.math.BigInteger days, java.math.BigInteger hours, java.math.BigInteger minutes, java.math.BigDecimal seconds)
          Constructor
XS_Duration(java.lang.String s)
          Constructor
 
Method Summary
<T extends XDT_AnyAtomicType>
T
castas(java.lang.Class<T> type)
          Method castas
 java.lang.String toString()
          Method toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XS_Duration

public XS_Duration(boolean pos,
                   java.math.BigInteger years,
                   java.math.BigInteger months,
                   java.math.BigInteger days,
                   java.math.BigInteger hours,
                   java.math.BigInteger minutes,
                   java.math.BigDecimal seconds)
Constructor

Parameters:
pos - a boolean
years - a BigInteger
months - a BigInteger
days - a BigInteger
hours - a BigInteger
minutes - a BigInteger
seconds - a BigDecimal

XS_Duration

public XS_Duration(java.lang.String s)
Constructor

Parameters:
duration - a XS_String
Method Detail

toString

public java.lang.String toString()
Method toString

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

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