com.xml_project.morganaxdm
Class XS_Duration.Duration

java.lang.Object
  extended by com.xml_project.morganaxdm.XS_Duration.Duration
Enclosing class:
XS_Duration

protected static class XS_Duration.Duration
extends java.lang.Object

Internal implementation of a duration


Constructor Summary
protected XS_Duration.Duration(boolean neg, int someMonths, long someSeconds)
           
protected XS_Duration.Duration(XS_Duration.Duration d)
           
 
Method Summary
protected  XS_Duration.Duration add(XS_Duration.Duration d)
           
protected  void clearMonths()
           
protected  int compare(XS_Duration.Duration comp)
           
protected  XS_Duration.Duration divide(java.lang.Double d)
           
protected  int getMicroseconds()
           
protected  int getMonths()
           
protected  long getSeconds()
           
protected  boolean isNegative()
           
protected  boolean isZero()
           
protected  XS_Duration.Duration multiply(java.lang.Double d)
           
protected  XS_Duration.Duration negate()
           
protected  void setMonth(boolean n, int m)
           
protected  java.lang.String toXML(java.lang.String defaultString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XS_Duration.Duration

protected XS_Duration.Duration(XS_Duration.Duration d)
Parameters:
d -

XS_Duration.Duration

protected XS_Duration.Duration(boolean neg,
                               int someMonths,
                               long someSeconds)
Method Detail

isNegative

protected boolean isNegative()

getMonths

protected int getMonths()

getSeconds

protected long getSeconds()

getMicroseconds

protected int getMicroseconds()

isZero

protected boolean isZero()

clearMonths

protected void clearMonths()

negate

protected XS_Duration.Duration negate()

compare

protected int compare(XS_Duration.Duration comp)

setMonth

protected void setMonth(boolean n,
                        int m)

toXML

protected java.lang.String toXML(java.lang.String defaultString)

add

protected XS_Duration.Duration add(XS_Duration.Duration d)

multiply

protected XS_Duration.Duration multiply(java.lang.Double d)
                                 throws XPathException
Throws:
XPathException

divide

protected XS_Duration.Duration divide(java.lang.Double d)
                               throws XPathException
Throws:
XPathException