Examples of BooleanValue


Examples of eu.scape_project.planning.model.values.BooleanValue

   
    /**
     *
     */
    public BooleanValue createValue() {
        BooleanValue bv = new BooleanValue();
        bv.setScale(this);
        return bv;
    }
View Full Code Here

Examples of eu.stratosphere.types.BooleanValue

      }
      return il;
    case BOOLEAN:
      BooleanListValue bl = new BooleanListValue();
      for (Object item : avroList) {
        bl.add(new BooleanValue((Boolean) item));
      }
      return bl;
    case DOUBLE:
      DoubleListValue dl = new DoubleListValue();
      for (Object item : avroList) {
View Full Code Here

Examples of kodkod.engine.bool.BooleanValue

      } else if (circuit.size()==0) {
        throw new TrivialFormulaException(annotated.node(), bounds, circuit.op().identity(), log);
      }
      return generateSBP(circuit, interpreter, breaker);
    } else {
      final BooleanValue circuit = (BooleanValue)FOL2BoolTranslator.translate(annotated, interpreter);
      if (circuit.op()==Operator.CONST) {
        throw new TrivialFormulaException(annotated.node(), bounds, (BooleanConstant)circuit, null);
      }
      return generateSBP(annotated, (BooleanFormula)circuit, interpreter, breaker);
    }
  }
View Full Code Here

Examples of net.sf.saxon.value.BooleanValue

     * Determine whether a node is nilled. Returns true if the value
     * of the nilled property is true; false if the value is false or absent
     */

    public static boolean isNilled(NodeInfo node) {
        BooleanValue b = getNilledProperty(node);
        return b != null && b.getBooleanValue();
    }
View Full Code Here

Examples of org.apache.flink.types.BooleanValue

    }
    if(hadoopType instanceof org.apache.hadoop.io.DoubleWritable) {
      return new DoubleValue(((DoubleWritable)hadoopType).get());
    }
    if(hadoopType instanceof org.apache.hadoop.io.BooleanWritable) {
      return new BooleanValue(((BooleanWritable)hadoopType).get());
    }
    if(hadoopType instanceof org.apache.hadoop.io.ByteWritable) {
      return new ByteValue(((ByteWritable)hadoopType).get());
    }
    if (hadoopType instanceof NullWritable) {
View Full Code Here

Examples of org.apache.jackrabbit.value.BooleanValue

     * @param bool the boolean
     * @return the value
     */
    @Converter
    public Value toValue(Boolean bool) {
        return new BooleanValue(bool);
    }
View Full Code Here

Examples of org.apache.jackrabbit.value.BooleanValue

        InternalValue value;
        if (reqType != PropertyType.BOOLEAN) {
            // type conversion required
            Value targetVal = ValueHelper.convert(
                    new BooleanValue(b), reqType,
                    ValueFactoryImpl.getInstance());
            value = InternalValue.create(targetVal, session.getNamespaceResolver());
        } else {
            // no type conversion required
            value = InternalValue.create(b);
View Full Code Here

Examples of org.apache.jackrabbit.value.BooleanValue

            throws RepositoryException {
        switch (type) {
            case PropertyType.BINARY:
                return new BinaryValue(((BLOBFileValue) val).getStream());
            case PropertyType.BOOLEAN:
                return new BooleanValue(((Boolean) val));
            case PropertyType.DATE:
                return new DateValue((Calendar) val);
            case PropertyType.DOUBLE:
                return new DoubleValue((Double) val);
            case PropertyType.LONG:
View Full Code Here

Examples of org.apache.jackrabbit.value.BooleanValue

        pe = createEntry(testPrincipal, privs, true, restr);
        assertEquals("", pe.getRestriction(glob).getString());

        restr = new HashMap<String, Value>();
        restr.put(nodePath,  restrictions.get(nodePath));
        restr.put(glob,  new BooleanValue(true));
        assertEquals(PropertyType.STRING, pe.getRestriction(glob).getType());
    }
View Full Code Here

Examples of org.apache.jackrabbit.value.BooleanValue

        assertEquals("/a/b/c/d", pe.getRestriction(nodePath).getString());
        assertEquals(PropertyType.PATH, pe.getRestriction(nodePath).getType());

        restr = new HashMap<String, Value>();
        restr.put(nodePath,  restrictions.get(nodePath));
        restr.put(glob,  new BooleanValue(true));
        pe = createEntry(testPrincipal, privs, true, restr);

        assertEquals(true, pe.getRestriction(glob).getBoolean());
        assertEquals(PropertyType.STRING, pe.getRestriction(glob).getType());
    }
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.