Examples of XBoolean


Examples of org.apache.xpath.objects.XBoolean

      {
        value = new XString((String) obj);
      }
      else if (obj instanceof Boolean)
      {
        value = new XBoolean(((Boolean) obj).booleanValue());
      }
      else if (obj instanceof Double)
      {
        value = new XNumber(((Double) obj).doubleValue());
      }
View Full Code Here

Examples of org.apache.xpath.objects.XBoolean

      String[] formats = {dt, d, gym, gy};
      double dbl = getNumber(datetime, formats, Calendar.YEAR);
      if (dbl == Double.NaN)
        return new XNumber(Double.NaN);
      int yr = (int)dbl;
      return new XBoolean(yr % 400 == 0 || (yr % 100 != 0 && yr % 4 == 0));
    }
View Full Code Here

Examples of org.apache.xpath.objects.XBoolean

      {
        textNodeValue = (String) rtf;
      }
      else if (rtf instanceof Boolean)
      {
        textNodeValue = new XBoolean(((Boolean) rtf).booleanValue()).str();
      }
      else if (rtf instanceof Double)
      {
        textNodeValue = new XNumber(((Double) rtf).doubleValue()).str();
      }
View Full Code Here

Examples of org.apache.xpath.objects.XBoolean

      String[] formats = {dt, d, gym, gy};
      double dbl = getNumber(datetime, formats, Calendar.YEAR);
      if (dbl == Double.NaN)
        return new XNumber(Double.NaN);
      int yr = (int)dbl;
      return new XBoolean(yr % 400 == 0 || (yr % 100 != 0 && yr % 4 == 0));
    }
View Full Code Here

Examples of org.apache.xpath.objects.XBoolean

      {
        value = new XString((String) obj);
      }
      else if (obj instanceof Boolean)
      {
        value = new XBoolean(((Boolean) obj).booleanValue());
      }
      else if (obj instanceof Double)
      {
        value = new XNumber(((Double) obj).doubleValue());
      }
View Full Code Here

Examples of org.apache.xpath.objects.XBoolean

      {
        textNodeValue = (String) rtf;
      }
      else if (rtf instanceof Boolean)
      {
        textNodeValue = new XBoolean(((Boolean) rtf).booleanValue()).str();
      }
      else if (rtf instanceof Double)
      {
        textNodeValue = new XNumber(((Double) rtf).doubleValue()).str();
      }
View Full Code Here

Examples of org.apache.xpath.objects.XBoolean

            // nodeset converts to 1.0 (non-empty) or 0.0 (empty)
            // but since this is a rare and odd comparison we don't bother now...
            if (left instanceof XObject && right instanceof XObject) {
                switch (op) {
                    case OpCodes.OP_NOTEQUALS:
                        return new XBoolean(((XObject) left).notEquals((XObject) right));
                    case OpCodes.OP_EQUALS:
                        return new XBoolean(((XObject) left).equals((XObject) right));
                    case OpCodes.OP_LTE:
                        return new XBoolean(((XObject) left).lessThanOrEqual((XObject) right));
                    case OpCodes.OP_LT:
                        return new XBoolean(((XObject) left).lessThan((XObject) right));
                    case OpCodes.OP_GTE:
                        return new XBoolean(((XObject) left).greaterThanOrEqual((XObject) right));
                    case OpCodes.OP_GT:
                        return new XBoolean(((XObject) left).greaterThan((XObject) right));
                    default :
                        return null; // Won't happen
                }
            }
View Full Code Here

Examples of org.apache.xpath.objects.XBoolean

                    case OpCodes.OP_NEG:
                        return new XNumber(-((XObject) val).num());
                    case OpCodes.OP_STRING:
                        return new XString(((XObject) val).str());
                    case OpCodes.OP_BOOL:
                        return new XBoolean(((XObject) val).bool());
                    case OpCodes.OP_NUMBER:
                        return new XNumber(((XObject) val).num());
                    default:
                        return null; // Won't happen
                }
View Full Code Here

Examples of org.apache.xpath.objects.XBoolean

    }
    else
      flags = null;
   
   
    return new XBoolean(doExecute(input, regex, flags));
  }
View Full Code Here

Examples of org.apache.xpath.objects.XBoolean

      {
        textNodeValue = (String) rtf;
      }
      else if (rtf instanceof Boolean)
      {
        textNodeValue = new XBoolean(((Boolean) rtf).booleanValue()).str();
      }
      else if (rtf instanceof Double)
      {
        textNodeValue = new XNumber(((Double) rtf).doubleValue()).str();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.