org.azzyzt.jee.runtime.dto.query
Class UnaryBooleanExpression

java.lang.Object
  extended by org.azzyzt.jee.runtime.dto.query.Expression
      extended by org.azzyzt.jee.runtime.dto.query.UnaryBooleanExpression
All Implemented Interfaces:
java.io.Serializable, Node
Direct Known Subclasses:
Not

public abstract class UnaryBooleanExpression
extends Expression
implements Node

Parent class for boolean expressions with one term. Well, basically Not.

See Also:
Serialized Form

Constructor Summary
UnaryBooleanExpression()
           
 
Method Summary
 void add(Expression e)
          Adds an expression to the current Node.
 Expression getExpression()
           
 Expression getReplaceableBy()
           
 boolean isValid()
           
 void setExpression(Expression expression)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnaryBooleanExpression

public UnaryBooleanExpression()
Method Detail

getExpression

public Expression getExpression()

add

public void add(Expression e)
         throws QuerySyntaxException
Description copied from interface: Node
Adds an expression to the current Node. Invalid XML can cause a QuerySyntaxExpression.

Specified by:
add in interface Node
Parameters:
e - the expression to be added
Throws:
QuerySyntaxException

setExpression

public void setExpression(Expression expression)

isValid

public boolean isValid()
Specified by:
isValid in interface Node
Specified by:
isValid in class Expression
Returns:
true if the expression is valid

getReplaceableBy

public Expression getReplaceableBy()
Specified by:
getReplaceableBy in interface Node
Specified by:
getReplaceableBy in class Expression
Returns:
a simpler and equivalent expression or null.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object