com.xml_project.morganaxproc.xdm
Class XS_Duration
java.lang.Object
  
com.xml_project.morganaxproc.xdm.XdmSequence
      
com.xml_project.morganaxproc.xdm.XdmItem
          
com.xml_project.morganaxproc.xdm.XdmValue
              
com.xml_project.morganaxproc.xdm.XS_AnySimpleType
                  
com.xml_project.morganaxproc.xdm.XS_AnyAtomicType
                      
com.xml_project.morganaxproc.xdm.XS_Duration
- All Implemented Interfaces: 
 - XS_AnyType, Iterable<XdmItem>
 
- Direct Known Subclasses: 
 - XS_dayTimeDuration, XS_yearMonthDuration
 
public class XS_Duration
- extends XS_AnyAtomicType
 
Implementation of xs:duration
| 
Nested Class Summary | 
protected static class | 
XS_Duration.Duration
 
          Internal implementation of a duration | 
 
 
 
 
 
 
 
| Methods inherited from class com.xml_project.morganaxproc.xdm.XdmValue | 
atomize | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TypeName
public static final QName TypeName
SecondsPerDay
public static final int SecondsPerDay
- See Also:
 - Constant Field Values
 
Precision
protected static final int Precision
- See Also:
 - Constant Field Values
 
XS_Duration
protected XS_Duration(String lexical,
                      String allowed)
               throws XPathException
- Throws:
 XPathException
XS_Duration
protected XS_Duration()
XS_Duration
protected XS_Duration(XS_Duration.Duration d)
getTypeName
public QName getTypeName()
 
getStringValue
public String getStringValue()
- Description copied from class: 
XdmItem 
- Returns the string value.
- Specified by:
 getStringValue in class XdmItem
 
- Returns:
 - the string value.
 
 
 
getValue
public Object getValue()
- Description copied from class: 
XdmItem 
- Returns the value itself.
- Specified by:
 getValue in class XdmItem
 
- Returns:
 - the value.
 
 
 
getDuration
protected XS_Duration.Duration getDuration()
 
getMonths
public int getMonths()
 
getSeconds
public long getSeconds()
 
getMicroSeconds
public double getMicroSeconds()
 
compareValues
public int compareValues(XS_AnySimpleType val,
                         com.xml_project.morganaxproc.xquery.configuration.Collation collation,
                         XS_dayTimeDuration implicitTimezone)
                  throws XPathException
- Specified by:
 compareValues in class XS_AnySimpleType
 
- Throws:
 XPathException
 
compareSubTypes
public XdmSequence compareSubTypes(boolean equals,
                                   XS_Duration val)
                            throws XPathException
- Throws:
 XPathException
 
isOrdered
public boolean isOrdered()
- Specified by:
 isOrdered in class XS_AnyAtomicType
 
 
newInstance
public static XS_Duration newInstance(XdmValue value)
                               throws XPathException
- Throws:
 XPathException
 
getRestrictionBase
public static Class<? extends XS_AnyType> getRestrictionBase()