|
||||||||||
| 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
public class Dur
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 | |
|---|---|
Dur(byte[] v)
Constructor. |
|
Dur(byte[] v,
Type t)
Constructor. |
|
Dur(Dur d)
Constructor. |
|
Dur(Dur d,
Type t)
Constructor. |
|
| Method Summary | |
|---|---|
long |
day()
Returns the days. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
boolean |
eq(Item it)
Checks the items for equality. |
int |
hash()
Returns a hash code. |
long |
hou()
Returns the hours. |
javax.xml.datatype.Duration |
java()
Returns a Java object. |
long |
min()
Returns the minutes. |
int |
mon()
Returns the months. |
java.math.BigDecimal |
sec()
Returns the seconds. |
byte[] |
str()
Returns an atomized string. |
long |
tim()
Returns the time. |
java.lang.String |
toString()
|
int |
yea()
Returns the years. |
| 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 Dur(Dur d,
Type t)
d - durationt - data typepublic Dur(Dur d)
d - duration
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 exception| Method Detail |
|---|
public int yea()
public int mon()
public long day()
public long tim()
public long hou()
public long min()
public java.math.BigDecimal sec()
public byte[] str()
Item
str in class Itempublic int hash()
Item
hash in class Itempublic boolean eq(Item it)
Item
eq in class Itemit - item to be compared.
public int diff(Item it)
throws XQException
Item
diff in class Itemit - item to be compared.
XQException - evaluation exceptionpublic final javax.xml.datatype.Duration java()
Item
java in class Itempublic final java.lang.String toString()
toString in class Item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||