|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.xquery.expr.Expr
org.basex.query.xquery.item.Item
org.basex.query.xquery.item.Dur
org.basex.query.xquery.item.DTd
public final class DTd
DayTime Duration item.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.query.xquery.expr.Expr |
|---|
Expr.Return, Expr.Using |
| Field Summary |
|---|
| Fields inherited from class org.basex.query.xquery.item.Item |
|---|
type |
| Constructor Summary | |
|---|---|
DTd(byte[] v)
Constructor. |
|
DTd(Date dat,
Date sub)
Constructor. |
|
DTd(DTd it,
DTd a,
boolean p)
Constructor. |
|
DTd(Dur d)
Constructor. |
|
DTd(Dur it,
double f,
boolean m)
Constructor. |
|
DTd(int shift)
Timezone constructor. |
|
| Method Summary | |
|---|---|
int |
diff(Item it)
Returns the difference between the current and the specified item. |
java.math.BigDecimal |
dtd()
Returns the date and time. |
int |
hash()
Returns a hash code. |
byte[] |
str()
Returns an atomized string. |
| Methods inherited from class org.basex.query.xquery.item.Dur |
|---|
day, eq, hou, java, min, mon, sec, tim, toString, yea |
| Methods inherited from class org.basex.query.xquery.item.Item |
|---|
bool, castErr, comp, d, dbl, dec, flt, i, iter, iter, itr, n, name, node, plan, returned, s, score, score, serialize, size, u, uses |
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
e |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
color, info |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DTd(Dur d)
d - duration itempublic DTd(int shift)
shift - shift value
public DTd(DTd it,
DTd a,
boolean p)
it - duration itema - duration to be added/subtractedp - plus/minus flag
public DTd(Dur it,
double f,
boolean m)
throws XQException
it - duration itemf - factorm - multiplication flag
XQException - evaluation exception
public DTd(Date dat,
Date sub)
dat - date itemsub - date to be subtracted
public DTd(byte[] v)
throws XQException
v - value
XQException - evaluation exception| Method Detail |
|---|
public java.math.BigDecimal dtd()
public byte[] str()
Item
str in class Durpublic int hash()
Item
hash in class Dur
public int diff(Item it)
throws XQException
Item
diff in class Durit - item to be compared.
XQException - evaluation exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||