Examples of BooleanValue


Examples of com.volantis.shared.metadata.value.BooleanValue

    public boolean equals(Object obj) {
        if (!(obj instanceof BooleanValue)) {
            return false;
        }

        BooleanValue other = (BooleanValue) obj;

        return value == other.getValueAsBoolean().booleanValue();
    }
View Full Code Here

Examples of com.volantis.xml.expression.atomic.BooleanValue

     * @throws Exception if an error occurs
     */
    public void doTestFnBoolean(Sequence sequence, boolean expected)
            throws Exception {
        // invoke the method
        BooleanValue result = PipelineExpressionHelper.fnBoolean(sequence);
        // check the result
        assertEquals("unexpected fnBoolean(Sequence) result",
                     expected,
                     result.asJavaBoolean());

    }
View Full Code Here

Examples of com.volantis.xml.expression.atomic.BooleanValue

    public void doTestNot(Sequence sequence) throws Exception {
        // invoke the method
        boolean expected  =
                !(PipelineExpressionHelper.fnBoolean(sequence).asJavaBoolean());

        BooleanValue actual = PipelineExpressionHelper.fnNot(sequence);

        // check the result
        assertEquals("unexpected fnBoolean(Sequence) result",
                     expected,
                     actual.asJavaBoolean());

    }
View Full Code Here

Examples of com.volantis.xml.expression.atomic.BooleanValue

     * @return the boolean representation of the sequence argument
     */
    public static BooleanValue fnBoolean(Sequence sequence)
            throws ExpressionException {

        BooleanValue eval = BooleanValue.TRUE;
        int length = sequence.getLength();

        if (length == 0) {
            // if empty sequence then return false
            eval = BooleanValue.FALSE;
View Full Code Here

Examples of com.volantis.xml.expression.atomic.BooleanValue

    // javadoc inherited
    public Object computeValue(EvalContext evalContext) {

        // return value
        BooleanValue eval = BooleanValue.FALSE;

        // evaluated value of the current operand
        Object operandEval;

        for (int i = 0;
             i < args.length && !eval.asJavaBoolean(); // breakout if eval true
             i++) {
            // evaluate each operand of the OR expression.
            // If any evalute to true then the OR expression evaluates to true
            // and true is returned
View Full Code Here

Examples of com.volantis.xml.expression.atomic.BooleanValue

    }

    // javadoc inherited
    public Object computeValue(EvalContext evalContext) {
        // return value
        BooleanValue eval = BooleanValue.TRUE;

        // evaluated value of the current operand
        Object operandEval;

        for (int i = 0;
             i < args.length && eval.asJavaBoolean() == true;
             i++) {
            // evaluate each operand of this and expression.
            // If any evalute to false then the expression fails and
            // false is returned.
View Full Code Here

Examples of com.volantis.xml.expression.atomic.BooleanValue

            return value;
        }

        // javadoc inhertied
        public void visit(ImmutableBooleanValue immutableBooleanValue) {
            BooleanValue boolValue = expressionFactory.createBooleanValue(
                    immutableBooleanValue.getValueAsBoolean().booleanValue());

            if (sequenceItems == null) {
                // not creating a sequence of items set the value to be
                // the bool
View Full Code Here

Examples of edu.cmu.cs.fusion.constraint.predicates.BooleanValue

  }
 
  @Test
  public void testFreeVars() {
    FreeVars fv;
    Predicate bPred = new BooleanValue(utils.getVar(0));
   
    fv = bPred.getFreeVariables();
    assertEquals(1, fv.size());
    assertEquals(fv.getType(utils.getVar(0)), FreeVars.BOOL_TYPE);
  }
View Full Code Here

Examples of edu.stanford.nlp.sempre.BooleanValue

  }

  public static void main(String[] args) throws IOException {
    opts.wordVectorFile = "/Users/jonathanberant/Projects/semparse/lib/wordreprs/cbow-lowercase-50.vectors";
    ParaphraseExample paraExample =new ParaphraseExample("what do people in the czech republic speak?",
        "the official language of czech republic ?",new BooleanValue(true));
    if(args[0].equals("full_matrix")) {
      opts.similarityFunc="full_matrix";
      VectorSpaceModel vsm = VectorSpaceModel.getSingleton();
      Params params = new Params();
      params.read("/Users/jonathanberant/Research/temp/918params"); //full matrix
View Full Code Here

Examples of eu.planets_project.pp.plato.model.values.BooleanValue

   
    /**
     *
     */
    public BooleanValue createValue() {
        BooleanValue bv = new BooleanValue();
        bv.setScale(this);
        return bv;
    }
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.