com.gridsystems.nextgrid.api.pom.expr
Class NotExpression

java.lang.Object
  extended by nextgrid.api.pom.Expression
      extended by com.gridsystems.nextgrid.api.pom.expr.NotExpression
All Implemented Interfaces:
java.io.Serializable

public class NotExpression
extends nextgrid.api.pom.Expression

Reverses the evaluation of the contained expression.

Author:
Rodrigo Ruiz
See Also:
Serialized Form

Constructor Summary
NotExpression()
          Creates a new instance.
NotExpression(nextgrid.api.pom.Expression expr)
          Creates a new instance.
 
Method Summary
 boolean boolEval(nextgrid.api.env.ProcessEnvironment env, java.lang.Object o)
          
 nextgrid.api.pom.Expression getExpression()
          Gets the contained expression.
 void setExpression(nextgrid.api.pom.Expression e)
          Sets the contained expression.
 void validate()
          
 
Methods inherited from class nextgrid.api.pom.Expression
getLang, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotExpression

public NotExpression()
              throws nextgrid.api.pom.ExpressionException
Creates a new instance.

Throws:
nextgrid.api.pom.ExpressionException - If an unexpected error occurs

NotExpression

public NotExpression(nextgrid.api.pom.Expression expr)
              throws nextgrid.api.pom.ExpressionException
Creates a new instance.

Parameters:
expr - Contained expression
Throws:
nextgrid.api.pom.ExpressionException - If an unexpected error occurs
Method Detail

getExpression

public nextgrid.api.pom.Expression getExpression()
Gets the contained expression.

Returns:
The current expression

setExpression

public void setExpression(nextgrid.api.pom.Expression e)
Sets the contained expression.

Parameters:
e - The expression to set

boolEval

public boolean boolEval(nextgrid.api.env.ProcessEnvironment env,
                        java.lang.Object o)
                 throws nextgrid.api.pom.ExpressionException

Specified by:
boolEval in class nextgrid.api.pom.Expression
Throws:
nextgrid.api.pom.ExpressionException

validate

public void validate()
              throws nextgrid.api.pom.ExpressionException

Specified by:
validate in class nextgrid.api.pom.Expression
Throws:
nextgrid.api.pom.ExpressionException


Copyright © 2006-2008 Grid Systems, S.A.. All Rights Reserved.