Exemplo n.º 1
0
  @Override
  public final Item ebv(final QueryContext ctx, final InputInfo ii) throws QueryException {

    Item it = null;
    if (type().zeroOrOne()) {
      it = item(ctx, input);
    } else {
      final Iter ir = iter(ctx);
      it = ir.next();
      if (it != null && !it.node() && ir.next() != null) CONDTYPE.thrw(input, this);
    }
    return it == null ? Bln.FALSE : it;
  }
Exemplo n.º 2
0
 /**
  * Returns a boolean representation of the value.
  *
  * @param ii input info
  * @return boolean value
  * @throws QueryException query exception
  */
 public boolean bool(final InputInfo ii) throws QueryException {
   throw CONDTYPE.thrw(ii, type, this);
 }