BEA Systems, Inc.

com.beasys.commerce.foundation.expression
Interface Expression

All Known Subinterfaces:
Criteria, Logical
All Known Implementing Classes:
ExpressionImpl

public interface Expression
extends Belonging

An Expression represent a comparision expression.

The Expression interface is supposed to be abstract. The only instances of Expressions should be either Criterias or Logicals.

Attribute: not

See Also:
ExpressionHome, ExpressionImpl

Method Summary
 boolean getNot()
          Get the value of not
 void setNot(boolean not)
          Set the value of not
 java.lang.String toString()
          Render the expression as a string.
 void valueOf(java.lang.String searchExpression)
          Populate this Expression from the specified expression string.
 
Methods inherited from interface com.beasys.commerce.foundation.Belonging
clone, equals, interfaceName, setByValue, value
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getNot

public boolean getNot()
Get the value of not

setNot

public void setNot(boolean not)
Set the value of not

toString

public java.lang.String toString()
Render the expression as a string.

This will convert the expression to the query syntax form as specified by ExpressionHelper.

Overrides:
toString in class java.lang.Object
See Also:
ExpressionHelper

valueOf

public void valueOf(java.lang.String searchExpression)
Populate this Expression from the specified expression string.
Throws:
java.lang.IllegalArgumentException - thrown on an invalid expression string.
See Also:
ExpressionHelper.parse(java.lang.String)

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved