BEA Systems, Inc.

com.beasys.commerce.foundation.expression
Class ExpressionImpl

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

public class ExpressionImpl
extends BelongingImpl
implements Expression, java.lang.Cloneable

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.
 
Fields inherited from class com.beasys.commerce.foundation.BelongingImpl
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber
 
Constructor Summary
ExpressionImpl()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare this belonging to another
 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 com.beasys.commerce.foundation.BelongingImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clone, equals, get__classIdentifier, get__containingBelonging, get__containingEntity, get__containingEntityReference, get__mapKey, get__sequenceNumber, set__containingBelonging, set__containingEntity, set__containingEntityReference, set__mapKey
 
Methods inherited from class java.lang.Object
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

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.

Overrides:
setByValue in class BelongingImpl

compareTo

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

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