|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.ExprInfo
org.basex.query.expr.Expr
org.basex.query.value.Value
org.basex.query.value.item.Item
org.basex.query.value.item.ADateDur
org.basex.query.value.item.Dur
org.basex.query.value.item.DTDur
public final class DTDur
DayTime Duration item (xs:dayTimeDuration
).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary |
---|
Fields inherited from class org.basex.query.value.item.Dur |
---|
DP |
Fields inherited from class org.basex.query.value.item.ADateDur |
---|
BD100, BD1000, BD146097, BD1461, BD153, BD2, BD3600, BD365, BD36524, BD36525, BD366, BD4, BD5, BD60, BDMAXLONG, DAYSECONDS, sec |
Fields inherited from class org.basex.query.value.item.Item |
---|
score, UNDEF |
Fields inherited from class org.basex.query.value.Value |
---|
type |
Constructor Summary | |
---|---|
DTDur(ADate dat,
ADate sub,
InputInfo ii)
Constructor. |
|
DTDur(byte[] vl,
InputInfo ii)
Constructor. |
|
DTDur(DTDur it,
DTDur a,
boolean p,
InputInfo ii)
Constructor. |
|
DTDur(Dur d)
Constructor. |
|
DTDur(Dur it,
double f,
boolean m,
InputInfo ii)
Constructor. |
|
DTDur(long ms)
Timezone constructor. |
|
DTDur(long h,
long m)
Timezone constructor. |
Method Summary | |
---|---|
int |
diff(Item it,
Collation coll,
InputInfo ii)
Returns the difference between the current and the specified item. |
java.math.BigDecimal |
dtd()
Returns the date and time. |
byte[] |
string(InputInfo ii)
Returns a string representation of the value. |
Methods inherited from class org.basex.query.value.item.Dur |
---|
date, day, dayTime, eq, hash, hou, min, mon, sec, time, toJava, toString, yea, yearMonth |
Methods inherited from class org.basex.query.value.item.ADateDur |
---|
dateErr, toDecimal, toLong |
Methods inherited from class org.basex.query.value.item.Item |
---|
bool, castErr, comparable, dbl, dec, description, ebv, equiv, flt, homogeneous, input, isItem, item, itemAt, iter, iterable, itr, materialize, plan, score, score, size, test, type, typeId, writeTo, xdmInfo |
Methods inherited from class org.basex.query.value.Value |
---|
accept, cache, checkUp, compile, copy, count, data, exprSize, has, inline, isValue, iter, iterator, removable, serialize, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, sameAs, uses, visitAll |
Methods inherited from class org.basex.data.ExprInfo |
---|
addPlan, addPlan, info, planAttr, planElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DTDur(Dur d)
d
- duration itempublic DTDur(long h, long m)
h
- hoursm
- minutespublic DTDur(long ms)
ms
- millisecondspublic DTDur(DTDur it, DTDur a, boolean p, InputInfo ii) throws QueryException
it
- duration itema
- duration to be added/subtractedp
- plus/minus flagii
- input info
QueryException
- query exceptionpublic DTDur(Dur it, double f, boolean m, InputInfo ii) throws QueryException
it
- duration itemf
- factorm
- multiplication flagii
- input info
QueryException
- query exceptionpublic DTDur(ADate dat, ADate sub, InputInfo ii) throws QueryException
dat
- date itemsub
- date to be subtractedii
- input info
QueryException
- query exceptionpublic DTDur(byte[] vl, InputInfo ii) throws QueryException
vl
- valueii
- input info
QueryException
- query exceptionMethod Detail |
---|
public java.math.BigDecimal dtd()
public byte[] string(InputInfo ii)
Item
string
in class Dur
ii
- input info, use null
if none is available
public int diff(Item it, Collation coll, InputInfo ii) throws QueryException
Item
diff
in class Dur
it
- item to be comparedcoll
- query contextii
- input info
QueryException
- query exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |