org.deri.wsmo4j.logicalexpression.util
Class ExpressionContainmentUtil

java.lang.Object
  extended by org.deri.wsmo4j.logicalexpression.util.ExpressionContainmentUtil

public class ExpressionContainmentUtil
extends Object

Utility to check if a specific operator is included in a logical expression.

 Created on Aug 2, 2005
 Committed by $Author: marin_dimitrov $
 

Version:
$Revision: 896 $ $Date: 2005-09-09 18:51:42 +0300 (Fri, 09 Sep 2005) $
Author:
Holger Lausen (holger.lausen@deri.org)

Constructor Summary
ExpressionContainmentUtil()
           
 
Method Summary
static boolean contains(org.omwg.logicalexpression.LogicalExpression logexp, Class operator)
          Checks if a specific operator is contained within a logical expression.
static boolean contains(org.omwg.logicalexpression.LogicalExpression logexp, Class[] operators)
          Checks if a specific operator is contained within a logical expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionContainmentUtil

public ExpressionContainmentUtil()
Method Detail

contains

public static boolean contains(org.omwg.logicalexpression.LogicalExpression logexp,
                               Class operator)
Checks if a specific operator is contained within a logical expression.

Parameters:
logexp - logical expression that will be checked
operator - operator that will be checked for (e.g. CompoundExpression.AND)
Returns:
true if an compound expression with specified operator is contained.

contains

public static boolean contains(org.omwg.logicalexpression.LogicalExpression logexp,
                               Class[] operators)
Checks if a specific operator is contained within a logical expression.

Parameters:
logexp - logical expression that will be checked
operators - array of operators that will be checked for (e.g. new int[] {CompoundExpression.AND,CompoundExpression.OR)
Returns:
true if an compound expression with specified operator is contained.


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.