Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.query.xquery.item
Class DTd

    java.lang.Object
      org.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

extends Dur

DayTime Duration 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.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

### DTd

    public DTd(Dur d)

  Constructor.

  Parameters:
    `d` - duration item

### DTd

    public DTd(int shift)

  Timezone constructor.

  Parameters:
    `shift` - shift value

### DTd

    public DTd(DTd it,
               DTd a,
               boolean p)

  Constructor.

  Parameters:
    `it` - duration item
    `a` - duration to be added/subtracted
    `p` - plus/minus flag

### DTd

    public DTd(Dur it,
               double f,
               boolean m)
        throws XQException

  Constructor.

  Parameters:
    `it` - duration item
    `f` - factor
    `m` - multiplication flag
  Throws:
    `XQException` - evaluation exception

### DTd

    public DTd(Date dat,
               Date sub)

  Constructor.

  Parameters:
    `dat` - date item
    `sub` - date to be subtracted

### DTd

    public DTd(byte[] v)
        throws XQException

  Constructor.

  Parameters:
    `v` - value
  Throws:
    `XQException` - evaluation exception

Method Detail

### dtd

    public java.math.BigDecimal dtd()

  Returns the date and time.

  Returns:
    year

### str

    public byte[] str()

  Description copied from class: `Item`
  Returns an atomized string.

  Overrides:
    `str` in class `Dur`
  Returns:
    string representation

### hash

    public int hash()

  Description copied from class: `Item`
  Returns a hash code.

  Overrides:
    `hash` in class `Dur`
  Returns:
    hash code

### 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD