Examples of bool()


Examples of com.boundlessgeo.geoserver.json.JSONObj.bool()

        JSONArr arr = JSONWrapper.read(result.getResponse().getContentAsString()).toArray();
        assertEquals(2, arr.size());

        JSONObj obj = arr.object(0);
        assertEquals("foo", obj.str("name"));
        assertTrue(obj.bool("default"));
        assertEquals("http://scratch.org", obj.str("uri"));
        assertTrue(obj.has("modified"));
        assertTrue(obj.object("modified").has("timestamp"));
        assertTrue(obj.object("modified").has("pretty"));
View Full Code Here

Examples of com.google.gwt.dev.javac.typemodel.test.PrimitiveValuesAnnotation.bool()

   */
  public void testPrimitiveValuesAnnotations() throws NotFoundException {
    JClassType primitivesAnnotatedClass = typeOracle.getType(PrimitivesAnnotatedClass.class.getName());
    PrimitiveValuesAnnotation annotation = primitivesAnnotatedClass.getAnnotation(PrimitiveValuesAnnotation.class);

    boolean bool = annotation.bool();
    assertTrue(bool);

    byte b = annotation.b();
    assertTrue(b > 0);

View Full Code Here

Examples of com.ibm.icu.impl.duration.impl.XMLRecordReader.bool()

        String str = sw.toString();
        assertEquals(null, "<x>true</x><y>false</y>", normalize(str));

        StringReader sr = new StringReader(str);
        XMLRecordReader xrr = new XMLRecordReader(sr);
        assertTrue(null, xrr.bool("x"));
        assertFalse(null, xrr.bool("y"));
    }

    public void testBoolArray() {
        boolean[][] datas = {
View Full Code Here

Examples of com.ibm.icu.impl.duration.impl.XMLRecordWriter.bool()

    }

    public void testBool() {
        StringWriter sw = new StringWriter();
        XMLRecordWriter xrw = new XMLRecordWriter(sw);
        xrw.bool("x", true);
        xrw.bool("y", false);
        xrw.flush();
        String str = sw.toString();
        assertEquals(null, "<x>true</x><y>false</y>", normalize(str));
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XObject.bool()

    public boolean isNodeInclude(Node currentNode) {     
      XObject includeInResult;
      try {
        includeInResult = xPathFuncHereAPI.eval(currentNode,
                xpathnode, str,prefixResolver);
        return includeInResult.bool();
      } catch (TransformerException e) {
                Object[] eArgs = {currentNode};
        throw new XMLSecurityRuntimeException("signature.Transform.node", eArgs, e);
     
      catch (Exception e) {
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XObject.bool()

          if(m_predicates[i].isStableNumber() && i == nPredicates - 1)
          {
            m_foundLast = true;
          }
        }
        else if (!pred.bool())
          return false;

        countProximityPosition(++m_predicateIndex);
      }
    }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XObject.bool()

  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
  {

    XObject expr1 = m_left.execute(xctxt);

    if (!expr1.bool())
    {
      XObject expr2 = m_right.execute(xctxt);

      return expr2.bool() ? XBoolean.S_TRUE : XBoolean.S_FALSE;
    }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XObject.bool()

    if (!expr1.bool())
    {
      XObject expr2 = m_right.execute(xctxt);

      return expr2.bool() ? XBoolean.S_TRUE : XBoolean.S_FALSE;
    }
    else
      return XBoolean.S_TRUE;
  }
 
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XObject.bool()

                                throw new XPathException(null,"XPath result cannot contain both values and nodes"); // $NLS-AbstractXercesDriver.AnXPathresultcannotcontainbothval-1$
                            }
                            if(result!=null) {
                                throw new XPathException(null,"XPath exception cannot return multiple values"); // $NLS-AbstractXercesDriver.AnXPathExceptioncannotreturnmulti-1$
                            }
                            result = new XResultUtils.BooleanValue(res.bool());
                        } break;
                        case XObject.CLASS_NUMBER: {
                            if(nodes!=null) {
                                throw new XPathException(null,"XPath result cannot contain both values and nodes"); // $NLS-AbstractXercesDriver.AnXPathresultcannotcontainbothval.1-1$
                            }
View Full Code Here

Examples of er.neo4jadaptor.test.eo.FirstEntity.bool()

   
    assertEquals("Expecting only one row", 1, results.count());
    fetchedRow = results.get(0);
   
    assertEquals(row.text(), fetchedRow.text());
    assertEquals(row.bool(), fetchedRow.bool());
    assertEquals(row.number(), fetchedRow.number());
    assertEquals(row.timestamp(), fetchedRow.timestamp());
   
  }
 
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.