org.exist.xquery.value
Class GYearMonthValue

java.lang.Object
  extended by org.exist.xquery.value.AtomicValue
      extended by org.exist.xquery.value.ComputableValue
          extended by org.exist.xquery.value.AbstractDateTimeValue
              extended by org.exist.xquery.value.GYearMonthValue
All Implemented Interfaces:
Comparable, Indexable, Item, Sequence

public class GYearMonthValue
extends AbstractDateTimeValue


Field Summary
 
Fields inherited from class org.exist.xquery.value.AbstractDateTimeValue
calendar, DAY, HOUR, MILLISECOND, MINUTE, MONTH, SECOND, YEAR
 
Fields inherited from class org.exist.xquery.value.AtomicValue
EMPTY_VALUE
 
Fields inherited from interface org.exist.xquery.value.Sequence
EMPTY_SEQUENCE
 
Constructor Summary
GYearMonthValue()
           
GYearMonthValue(String timeValue)
           
GYearMonthValue(XMLGregorianCalendar calendar)
           
 
Method Summary
 int compareTo(Collator collator, AtomicValue other)
           
 AtomicValue convertTo(int requiredType)
          Convert this item into an atomic value, whose type corresponds to the specified target type.
 int getType()
          Returns the type of the Indexable as one of the constants defined in Type.
 ComputableValue minus(ComputableValue other)
           
 
Methods inherited from class org.exist.xquery.value.AbstractDateTimeValue
adjustedToTimezone, cloneXMLGregorianCalendar, compareTo, compareTo, conversionPreference, div, effectiveBooleanValue, getPart, getStringValue, getTimezone, max, min, mult, normalizeDate, normalizeTime, plus, toJavaObject, withoutTimezone
 
Methods inherited from class org.exist.xquery.value.AtomicValue
add, addAll, atomize, clearContext, contains, copyTo, dump, endsWith, getCardinality, getCollectionIterator, getDocumentSet, getItemCount, getItemType, getState, hasChanged, hasMany, hasOne, isCacheable, isCached, isEmpty, isPersistentSet, itemAt, iterate, nodeMoved, promote, removeDuplicates, serializeValue, setIsCached, setSelfAsContext, startsWith, toMemNodeSet, toNodeSet, toSAX, toSequence, toString, unorderedIterator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GYearMonthValue

public GYearMonthValue()
                throws XPathException
Throws:
XPathException

GYearMonthValue

public GYearMonthValue(XMLGregorianCalendar calendar)
                throws XPathException
Throws:
XPathException

GYearMonthValue

public GYearMonthValue(String timeValue)
                throws XPathException
Throws:
XPathException
Method Detail

convertTo

public AtomicValue convertTo(int requiredType)
                      throws XPathException
Description copied from interface: Item
Convert this item into an atomic value, whose type corresponds to the specified target type. requiredType should be one of the type constants defined in Type. An XPathException is thrown if the conversion is impossible.

Specified by:
convertTo in interface Item
Specified by:
convertTo in interface Sequence
Specified by:
convertTo in class AbstractDateTimeValue
Parameters:
requiredType - one of the type constants defined in class Type
Throws:
XPathException

getType

public int getType()
Description copied from interface: Indexable
Returns the type of the Indexable as one of the constants defined in Type.

Specified by:
getType in interface Indexable
Specified by:
getType in interface Item
Overrides:
getType in class AtomicValue
Returns:
Type of the Indexable

compareTo

public int compareTo(Collator collator,
                     AtomicValue other)
              throws XPathException
Overrides:
compareTo in class AbstractDateTimeValue
Throws:
XPathException

minus

public ComputableValue minus(ComputableValue other)
                      throws XPathException
Specified by:
minus in class ComputableValue
Throws:
XPathException


Copyright (C) Wolfgang Meier. All rights reserved.