Beispiel #1
0
 private Object executeLike(PageContext pc, SQL sql, Query qr, ZExpression expression, int row)
     throws PageException {
   return Caster.toBoolean(
       like(
           sql,
           Caster.toString(executeExp(pc, sql, qr, expression.getOperand(0), row)),
           Caster.toString(executeExp(pc, sql, qr, expression.getOperand(1), row))));
 }
 public void setXmlStandalone(boolean arg0) throws DOMException {
   // dynamic load to support jre 1.4 and 1.5
   try {
     Method m = doc.getClass().getMethod("setXmlStandalone", new Class[] {boolean.class});
     m.invoke(doc, new Object[] {Caster.toBoolean(arg0)});
   } catch (Exception e) {
     throw new PageRuntimeException(Caster.toPageException(e));
   }
 }
 public void setStrictErrorChecking(boolean arg0) {
   // dynamic load to support jre 1.4 and 1.5
   try {
     Method m = doc.getClass().getMethod("setStrictErrorChecking", new Class[] {boolean.class});
     m.invoke(doc, new Object[] {Caster.toBoolean(arg0)});
   } catch (Exception e) {
     throw new PageRuntimeException(Caster.toPageException(e));
   }
 }
Beispiel #4
0
 public Boolean castToBoolean(Boolean defaultValue) {
   return Caster.toBoolean(get(key, defaultValue), defaultValue);
 }
Beispiel #5
0
 public boolean castToBooleanValue() throws PageException {
   return Caster.toBoolean(get(key));
 }