BEA Systems, Inc.

com.beasys.commerce.foundation.expression
Class ExpressionImpl

java.lang.Object
  |
  +--com.beasys.commerce.foundation.expression.ExpressionImpl
Direct Known Subclasses:
CriteriaImpl, LogicalImpl

public class ExpressionImpl
extends java.lang.Object
implements Expression, java.lang.Cloneable, java.io.Serializable

This is the abstract base class for CriteriaImpl and LogicalImpl.

This class should not be directly instantiated.

.

See Also:
Serialized Form

Field Summary
 boolean not
          Specifies if this is a negative logical expression.
 
Constructor Summary
ExpressionImpl()
           
 
Method Summary
 java.lang.Object clone()
          Returns a shallow copy of the Belonging instance.
 int compareTo(java.lang.Object o)
          Compare this belonging to another
 boolean equals(java.lang.Object o)
          Indicates whether some other Belonging is equivalent to this Belonging.
 boolean getNot()
          Get the value of not
 java.lang.String interfaceName()
          interfaceName() returns the unqualified name of the interface from the UML model.
 void setByValue(Belonging value)
          It is possible to call set-by-value with a superclass.
 void setNot(boolean not)
          Set the value of not
 java.lang.String toString()
          Render the expression as a string.
 Belonging value()
          value() is a more typesafe implementation of clone()
 void valueOf(java.lang.String searchExpression)
          Build a new expression that represents the string specified.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

not

public boolean not
Specifies if this is a negative logical expression.
Constructor Detail

ExpressionImpl

public ExpressionImpl()
Method Detail

getNot

public boolean getNot()
Get the value of not
Specified by:
getNot in interface Expression

setNot

public void setNot(boolean not)
Set the value of not
Specified by:
setNot in interface Expression

value

public Belonging value()
value() is a more typesafe implementation of clone()
Returns:
a clone of this instance

clone

public java.lang.Object clone()
Description copied from interface: Belonging
Returns a shallow copy of the Belonging instance.
Overrides:
clone in class java.lang.Object
Tags copied from interface: Belonging
Returns:
A shallow copy of this Belonging.

interfaceName

public java.lang.String interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model.
Returns:
the unqualified name of the belonging interface

setByValue

public void setByValue(Belonging value)
It is possible to call set-by-value with a superclass.

If that is the case, only the fields in the superclass will be set in this instance. The remaining fields get the default values. It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.

Tags copied from interface: Belonging
Parameters:
belonging - The Belonging to use for initialization.

compareTo

public int compareTo(java.lang.Object o)
Compare this belonging to another
Parameters:
o - target object for comparision
Returns:
0 objects are equal

equals

public boolean equals(java.lang.Object o)
Description copied from interface: Belonging
Indicates whether some other Belonging is equivalent to this Belonging.
Overrides:
equals in class java.lang.Object
Tags copied from interface: Belonging
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object is not of the same type as this Belonging.

toString

public java.lang.String toString()
Render the expression as a string.
Specified by:
toString in interface Expression
Overrides:
toString in class java.lang.Object
See Also:
ExpressionHelper.toString(com.beasys.commerce.foundation.expression.Expression)

valueOf

public void valueOf(java.lang.String searchExpression)
Build a new expression that represents the string specified.

This methods should be marked as abstract.

Specified by:
valueOf in interface Expression
Tags copied from interface: Expression
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