org.basex.query.xquery.item
Class YMd
java.lang.Object
org.basex.query.xquery.expr.Expr
org.basex.query.xquery.item.Item
org.basex.query.xquery.item.Date
org.basex.query.xquery.item.Dur
org.basex.query.xquery.item.YMd
public final class YMd
- extends Dur
YearMonth Duration item.
- Author:
- Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen
| Fields inherited from class org.basex.query.xquery.expr.Expr |
type |
|
Constructor Summary |
YMd(byte[] v)
Constructor. |
YMd(Dur it)
Constructor. |
YMd(Dur it,
double f,
boolean m)
Constructor. |
YMd(YMd it,
YMd a,
boolean p)
Constructor. |
|
Method Summary |
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.Dur |
d |
| 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 |
YMd
public YMd(byte[] v)
throws XQException
- Constructor.
- Parameters:
v - value
- Throws:
XQException - evaluation exception
YMd
public YMd(Dur it)
- Constructor.
- Parameters:
it - duration item
YMd
public YMd(Dur it,
double f,
boolean m)
throws XQException
- Constructor.
- Parameters:
it - duration itemf - factorm - multiplication/division flag
- Throws:
XQException - evaluation exception
YMd
public YMd(YMd it,
YMd a,
boolean p)
- Constructor.
- Parameters:
it - duration itema - duration to be added/subtractedp - plus/minus flag
diff
public int diff(Item it)
throws XQException
- Description copied from class:
Item
- Returns the difference between the current and the specified item.
- Overrides:
diff in class Dur
- Parameters:
it - item to be compared.
- Returns:
- difference
- Throws:
XQException - evaluation exception
str
public byte[] str()
- Description copied from class:
Expr
- Returns an atomized string.
- Overrides:
str in class Dur
- Returns:
- string representation