com.xml_project.morganaxdm
Class XS_yearMonthDuration

java.lang.Object
  extended by com.xml_project.morganaxdm.XdmSequence
      extended by com.xml_project.morganaxdm.XdmItem
          extended by com.xml_project.morganaxdm.XdmValue
              extended by com.xml_project.morganaxdm.XS_AnySimpleType
                  extended by com.xml_project.morganaxdm.XS_AnyAtomicType
                      extended by com.xml_project.morganaxdm.XS_Duration
                          extended by com.xml_project.morganaxdm.XS_yearMonthDuration
All Implemented Interfaces:
XS_AnyType, java.lang.Iterable<XdmItem>

public class XS_yearMonthDuration
extends XS_Duration

Implementation of xs:yearMonthDuration


Nested Class Summary
 
Nested classes/interfaces inherited from class com.xml_project.morganaxdm.XS_Duration
XS_Duration.Duration
 
Nested classes/interfaces inherited from class com.xml_project.morganaxdm.XS_AnyAtomicType
XS_AnyAtomicType.ValueComparers
 
Field Summary
static javax.xml.namespace.QName TypeName
           
 
Fields inherited from class com.xml_project.morganaxdm.XS_Duration
Precision, SecondsPerDay
 
Method Summary
static XS_yearMonthDuration add(XS_yearMonthDuration d1, XS_yearMonthDuration d2)
           
static XS_yearMonthDuration divide(XS_yearMonthDuration d, XS_Double num)
           
static XS_Decimal divide(XS_yearMonthDuration d1, XS_yearMonthDuration d2)
           
static java.lang.Class<? extends XS_AnyType> getRestrictionBase()
           
 java.lang.String getStringValue()
          Returns the string value.
 javax.xml.namespace.QName getTypeName()
           
 boolean isOrdered()
           
static XS_yearMonthDuration multiply(XS_yearMonthDuration d, XS_Double num)
           
static XS_yearMonthDuration newInstance(XdmValue value)
           
static XS_yearMonthDuration sub(XS_yearMonthDuration d1, XS_yearMonthDuration d2)
           
 
Methods inherited from class com.xml_project.morganaxdm.XS_Duration
compareSubTypes, compareValues, getDuration, getMicroSeconds, getMonths, getSeconds, getValue
 
Methods inherited from class com.xml_project.morganaxdm.XS_AnyAtomicType
compareValue, makeCompareResult, test
 
Methods inherited from class com.xml_project.morganaxdm.XS_AnySimpleType
compareValues, isValue
 
Methods inherited from class com.xml_project.morganaxdm.XdmValue
atomize
 
Methods inherited from class com.xml_project.morganaxdm.XdmItem
first, get, hasValues, isEmpty, iterator, size, subSequence
 
Methods inherited from class com.xml_project.morganaxdm.XdmSequence
concat, hasCommonType, normalize, serialize, serialize, serialize, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TypeName

public static final javax.xml.namespace.QName TypeName
Method Detail

getTypeName

public javax.xml.namespace.QName getTypeName()
Specified by:
getTypeName in interface XS_AnyType
Overrides:
getTypeName in class XS_Duration

getStringValue

public java.lang.String getStringValue()
Description copied from class: XdmItem
Returns the string value.

Overrides:
getStringValue in class XS_Duration
Returns:
the string value.

isOrdered

public boolean isOrdered()
Overrides:
isOrdered in class XS_Duration

newInstance

public static XS_yearMonthDuration newInstance(XdmValue value)
                                        throws XPathException
Throws:
XPathException

getRestrictionBase

public static java.lang.Class<? extends XS_AnyType> getRestrictionBase()

add

public static XS_yearMonthDuration add(XS_yearMonthDuration d1,
                                       XS_yearMonthDuration d2)

sub

public static XS_yearMonthDuration sub(XS_yearMonthDuration d1,
                                       XS_yearMonthDuration d2)

multiply

public static XS_yearMonthDuration multiply(XS_yearMonthDuration d,
                                            XS_Double num)
                                     throws XPathException
Throws:
XPathException

divide

public static XS_yearMonthDuration divide(XS_yearMonthDuration d,
                                          XS_Double num)
                                   throws XPathException
Throws:
XPathException

divide

public static XS_Decimal divide(XS_yearMonthDuration d1,
                                XS_yearMonthDuration d2)
                         throws XPathException
Throws:
XPathException