org.basex.query.xquery.item
Class DSim

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.xquery.expr.Expr
          extended by org.basex.query.xquery.item.Item
              extended by org.basex.query.xquery.item.Date
                  extended by org.basex.query.xquery.item.DSim

public final class DSim
extends Date

Simple date item.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

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.Date
df, xc
 
Fields inherited from class org.basex.query.xquery.item.Item
type
 
Constructor Summary
DSim(byte[] d, Type t)
          Constructor.
DSim(Date d, Type t)
          Constructor.
 
Method Summary
 int diff(Item it)
          Returns the difference between the current and the specified item.
 
Methods inherited from class org.basex.query.xquery.item.Date
days, eq, java, seconds, str, toString
 
Methods inherited from class org.basex.query.xquery.item.Item
bool, castErr, comp, d, dbl, dec, flt, hash, 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

DSim

public DSim(Date d,
            Type t)
Constructor.

Parameters:
d - date
t - data type

DSim

public DSim(byte[] d,
            Type t)
     throws XQException
Constructor.

Parameters:
d - date
t - data type
Throws:
XQException - evaluation exception
Method Detail

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 Date
Parameters:
it - item to be compared.
Returns:
difference
Throws:
XQException - evaluation exception