|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.expr.Expr
org.basex.query.xquery.item.Item
org.basex.query.xquery.item.Date
org.basex.query.xquery.item.Dur
public class Dur
Duration item.
| Field Summary |
|---|
| Fields inherited from class org.basex.query.xquery.item.Date |
|---|
mil, minus, mon, sec, zone, zshift |
| Fields inherited from class org.basex.query.xquery.expr.Expr |
|---|
type |
| Constructor Summary | |
|---|---|
Dur(byte[] v)
Constructor. |
|
Dur(byte[] v,
Type t)
Constructor. |
|
Dur(Dur d)
Constructor. |
|
Dur(Dur d,
Type t)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
d()
Checks if this is a duration. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
byte[] |
str()
Returns an atomized string. |
| Methods inherited from class org.basex.query.xquery.item.Date |
|---|
diff, dpm, eq, toString |
| Methods inherited from class org.basex.query.xquery.item.Item |
|---|
bool, castErr, comp, dbl, eval, flt, i, info, iter, itr, serialize, serialize, size |
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
cls, e, n, node, s, u |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Dur(byte[] v)
throws XQException
v - value
XQException - evaluation exception
public Dur(byte[] v,
Type t)
throws XQException
v - valuet - data type
XQException - evaluation exceptionpublic Dur(Dur d)
d - duration
public Dur(Dur d,
Type t)
d - durationt - data type| Method Detail |
|---|
public final boolean d()
Expr
d in class Expr
public int diff(Item it)
throws XQException
Item
diff in class Dateit - item to be compared.
XQException - evaluation exceptionpublic byte[] str()
Expr
str in class Expr
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||