Examples of LogicExpression


Examples of edu.pitt.ontology.LogicExpression

    }
    return null;
  }
  public ILogicExpression createLogicExpression(int type, Object param) {
    if(param instanceof Collection)
      return new LogicExpression(type,(Collection) param);
    else if(param instanceof Object [])
      return new LogicExpression(type,(Object []) param);
    else
      return new LogicExpression(type,param);
  }
View Full Code Here

Examples of edu.pitt.ontology.LogicExpression

      return new LogicExpression(type,(Object []) param);
    else
      return new LogicExpression(type,param);
  }
  public ILogicExpression createLogicExpression() {
    return new LogicExpression(ILogicExpression.EMPTY);
  }
View Full Code Here

Examples of edu.pitt.ontology.LogicExpression

      List<OWLOntologyChange> changes = renamer.changeIRI((OWLEntity)obj,newIRI);
      getOWLOntologyManager().applyChanges(changes);
     }
  }
  public ILogicExpression getLogicExpression() {
    return new LogicExpression(this);
  }
View Full Code Here

Examples of edu.pitt.ontology.LogicExpression

        }else{
          return new String("string");
        }
      }
    }else if(val instanceof OWLNaryBooleanClassExpression){
      LogicExpression exp = new LogicExpression(LogicExpression.EMPTY);
      if(val instanceof OWLObjectIntersectionOf || val instanceof OWLDataIntersectionOf)
        exp.setExpressionType(ILogicExpression.AND);
      else if(val instanceof OWLObjectUnionOf || val instanceof OWLDataUnionOf)
        exp.setExpressionType(ILogicExpression.OR);
      for(OWLClassExpression e: ((OWLNaryBooleanClassExpression)val).getOperands()){
        exp.add(convertOWLObject(e));
      }
      return exp;
    }else if(val instanceof OWLObjectComplementOf){
      LogicExpression exp = new LogicExpression(LogicExpression.NOT);
      exp.add(convertOWLObject(((OWLObjectComplementOf) val).getOperand()));
      return exp;
    }else if(val instanceof OWLRestriction){
      return new ORestriction((OWLRestriction)val,getOntology());
    }
   
View Full Code Here

Examples of edu.pitt.ontology.LogicExpression

      int  r = ((OWLCardinalityBase) rest).getCardinality();
      obj = new Integer(r);
    }
    if(obj instanceof ILogicExpression)
      return (ILogicExpression) obj;
    return new LogicExpression(obj);
  }
View Full Code Here

Examples of edu.pitt.ontology.LogicExpression

   * usually this is an empty expression with this as its parameter
   * if resource is LogicClass, then it might do something interesting
   * @return
   */
  public ILogicExpression getLogicExpression(){
    return new LogicExpression(this);
  }
View Full Code Here

Examples of org.activemq.filter.LogicExpression

            Filter filter = parse(value);
            assertTrue("Created ExpressionFilter filter", filter instanceof ExpressionFilter);
            Expression andExpression = ((ExpressionFilter) filter).getExpression();
            assertTrue("Created LogicExpression expression", andExpression instanceof LogicExpression);
            LogicExpression logicExpression = (LogicExpression) andExpression;
            Expression left = logicExpression.getLeft();
            Expression right = logicExpression.getRight();

            assertTrue("Left is a binary filter", left instanceof ComparisonExpression);
            assertTrue("Right is a binary filter", right instanceof ComparisonExpression);
            ComparisonExpression leftCompare = (ComparisonExpression) left;
            ComparisonExpression rightCompare = (ComparisonExpression) right;
View Full Code Here

Examples of org.activemq.filter.LogicExpression

            Filter filter = parse(value);
            assertTrue("Created ExpressionFilter filter", filter instanceof ExpressionFilter);
            Expression andExpression = ((ExpressionFilter) filter).getExpression();
            assertTrue("Created LogicExpression expression", andExpression instanceof LogicExpression);
            LogicExpression logicExpression = (LogicExpression) andExpression;
            Expression left = logicExpression.getLeft();
            Expression right = logicExpression.getRight();

            assertTrue("Left is a binary filter", left instanceof ComparisonExpression);
            assertTrue("Right is a binary filter", right instanceof ComparisonExpression);
            ComparisonExpression leftCompare = (ComparisonExpression) left;
            ComparisonExpression rightCompare = (ComparisonExpression) right;
View Full Code Here

Examples of org.apache.activemq.apollo.filter.LogicExpression

            String value = values[i];
            LOG.info("Parsing: " + value);

            BooleanExpression andExpression = parse(value);
            assertTrue("Created LogicExpression expression", andExpression instanceof LogicExpression);
            LogicExpression logicExpression = (LogicExpression)andExpression;
            Expression left = logicExpression.getLeft();
            Expression right = logicExpression.getRight();

            assertTrue("Left is a binary filter", left instanceof ComparisonExpression);
            assertTrue("Right is a binary filter", right instanceof ComparisonExpression);
            ComparisonExpression leftCompare = (ComparisonExpression)left;
            ComparisonExpression rightCompare = (ComparisonExpression)right;
View Full Code Here

Examples of org.apache.activemq.filter.LogicExpression

            String value = values[i];
            LOG.info("Parsing: " + value);

            BooleanExpression andExpression = parse(value);
            assertTrue("Created LogicExpression expression", andExpression instanceof LogicExpression);
            LogicExpression logicExpression = (LogicExpression)andExpression;
            Expression left = logicExpression.getLeft();
            Expression right = logicExpression.getRight();

            assertTrue("Left is a binary filter", left instanceof ComparisonExpression);
            assertTrue("Right is a binary filter", right instanceof ComparisonExpression);
            ComparisonExpression leftCompare = (ComparisonExpression)left;
            ComparisonExpression rightCompare = (ComparisonExpression)right;
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.