|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.xquery.value.AtomicValue
org.exist.xquery.value.ComputableValue
org.exist.xquery.value.AbstractDateTimeValue
public abstract class AbstractDateTimeValue
| Field Summary | |
|---|---|
XMLGregorianCalendar |
calendar
|
static int |
DAY
|
static int |
HOUR
|
static int |
MILLISECOND
|
static int |
MINUTE
|
static int |
MONTH
|
static int |
SECOND
|
static int |
YEAR
|
| Fields inherited from class org.exist.xquery.value.AtomicValue |
|---|
EMPTY_VALUE |
| Fields inherited from interface org.exist.xquery.value.Sequence |
|---|
EMPTY_SEQUENCE |
| Method Summary | |
|---|---|
AbstractDateTimeValue |
adjustedToTimezone(DayTimeDurationValue offset)
|
static XMLGregorianCalendar |
cloneXMLGregorianCalendar(XMLGregorianCalendar calendar)
Utility method that is able to clone a calendar whose year is 0 (whatever a year 0 means). |
int |
compareTo(Collator collator,
AtomicValue other)
|
boolean |
compareTo(Collator collator,
int operator,
AtomicValue other)
|
int |
compareTo(Object o)
|
int |
conversionPreference(Class javaClass)
Returns a preference indicator, indicating the preference of a value to be converted into the given Java class. |
abstract AtomicValue |
convertTo(int requiredType)
Convert this item into an atomic value, whose type corresponds to the specified target type. |
ComputableValue |
div(ComputableValue other)
|
boolean |
effectiveBooleanValue()
Get the effective boolean value of this sequence. |
int |
getPart(int part)
|
String |
getStringValue()
Return the string value of this item (see the definition of string value in XPath). |
Sequence |
getTimezone()
|
AtomicValue |
max(Collator collator,
AtomicValue other)
|
AtomicValue |
min(Collator collator,
AtomicValue other)
|
ComputableValue |
mult(ComputableValue other)
|
static String |
normalizeDate(String dateValue)
The method normalizeDate |
static String |
normalizeTime(String timeValue)
The method normalizeTime |
ComputableValue |
plus(ComputableValue other)
|
Object |
toJavaObject(Class target)
Convert the value into an instance of the specified Java class. |
AbstractDateTimeValue |
withoutTimezone()
|
| Methods inherited from class org.exist.xquery.value.ComputableValue |
|---|
minus |
| Methods inherited from class org.exist.xquery.value.AtomicValue |
|---|
add, addAll, atomize, clearContext, contains, copyTo, dump, endsWith, getCardinality, getCollectionIterator, getDocumentSet, getItemCount, getItemType, getState, getType, 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 |
| Field Detail |
|---|
public final XMLGregorianCalendar calendar
public static final int YEAR
public static final int MONTH
public static final int DAY
public static final int HOUR
public static final int MINUTE
public static final int SECOND
public static final int MILLISECOND
| Method Detail |
|---|
public String getStringValue()
throws XPathException
Item
getStringValue in interface ItemgetStringValue in interface SequencegetStringValue in class ComputableValueXPathException
public boolean effectiveBooleanValue()
throws XPathException
Sequence
effectiveBooleanValue in interface SequenceeffectiveBooleanValue in class AtomicValueXPathException
public abstract AtomicValue convertTo(int requiredType)
throws XPathException
ItemType. An XPathException is thrown
if the conversion is impossible.
convertTo in interface ItemconvertTo in interface SequenceconvertTo in class ComputableValuerequiredType - one of the type constants defined in class Type
XPathExceptionpublic int getPart(int part)
public AbstractDateTimeValue adjustedToTimezone(DayTimeDurationValue offset)
throws XPathException
XPathException
public AbstractDateTimeValue withoutTimezone()
throws XPathException
XPathException
public Sequence getTimezone()
throws XPathException
XPathException
public boolean compareTo(Collator collator,
int operator,
AtomicValue other)
throws XPathException
compareTo in class ComputableValueXPathException
public int compareTo(Collator collator,
AtomicValue other)
throws XPathException
compareTo in class ComputableValueXPathException
public AtomicValue max(Collator collator,
AtomicValue other)
throws XPathException
max in class ComputableValueXPathException
public AtomicValue min(Collator collator,
AtomicValue other)
throws XPathException
min in class ComputableValueXPathException
public ComputableValue plus(ComputableValue other)
throws XPathException
plus in class ComputableValueXPathException
public ComputableValue mult(ComputableValue other)
throws XPathException
mult in class ComputableValueXPathException
public ComputableValue div(ComputableValue other)
throws XPathException
div in class ComputableValueXPathExceptionpublic int conversionPreference(Class javaClass)
Sequence
conversionPreference in interface ItemconversionPreference in interface SequenceconversionPreference in class AtomicValue
public Object toJavaObject(Class target)
throws XPathException
Sequence
toJavaObject in interface ItemtoJavaObject in interface SequencetoJavaObject in class AtomicValueXPathExceptionpublic int compareTo(Object o)
compareTo in interface ComparablecompareTo in class AtomicValue
public static String normalizeDate(String dateValue)
throws XPathException
normalizeDate
dateValue - a String value
String value
XPathException - if an error occurs
public static String normalizeTime(String timeValue)
throws XPathException
normalizeTime
timeValue - a String value
String value
XPathExceptionpublic static XMLGregorianCalendar cloneXMLGregorianCalendar(XMLGregorianCalendar calendar)
calendar - The Calendar to clone
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||