|
|||||||
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, 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 Item
getStringValue
in interface Sequence
getStringValue
in class ComputableValue
XPathException
public boolean effectiveBooleanValue() throws XPathException
Sequence
effectiveBooleanValue
in interface Sequence
effectiveBooleanValue
in class AtomicValue
XPathException
public abstract AtomicValue convertTo(int requiredType) throws XPathException
Item
Type
. An XPathException
is thrown
if the conversion is impossible.
convertTo
in interface Item
convertTo
in interface Sequence
convertTo
in class ComputableValue
requiredType
- one of the type constants defined in class Type
XPathException
public 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 ComputableValue
XPathException
public int compareTo(Collator collator, AtomicValue other) throws XPathException
compareTo
in class ComputableValue
XPathException
public AtomicValue max(Collator collator, AtomicValue other) throws XPathException
max
in class ComputableValue
XPathException
public AtomicValue min(Collator collator, AtomicValue other) throws XPathException
min
in class ComputableValue
XPathException
public ComputableValue plus(ComputableValue other) throws XPathException
plus
in class ComputableValue
XPathException
public ComputableValue mult(ComputableValue other) throws XPathException
mult
in class ComputableValue
XPathException
public ComputableValue div(ComputableValue other) throws XPathException
div
in class ComputableValue
XPathException
public int conversionPreference(Class javaClass)
Sequence
conversionPreference
in interface Item
conversionPreference
in interface Sequence
conversionPreference
in class AtomicValue
public Object toJavaObject(Class target) throws XPathException
Sequence
toJavaObject
in interface Item
toJavaObject
in interface Sequence
toJavaObject
in class AtomicValue
XPathException
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class AtomicValue
public static String normalizeDate(String dateValue) throws XPathException
normalizeDate
dateValue
- a String
value
String
value
XPathException
- if an error occurspublic static String normalizeTime(String timeValue) throws XPathException
normalizeTime
timeValue
- a String
value
String
value
XPathException
public 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 |