DEPRECATED Use `com.bea.p13n.expression.Expression``` instead.

# com.beasys.commerce.foundation.expression
ExpressionImpl Class

public class ExpressionImpl
extends `Object`
implements `com.beasys.commerce.foundation.expression.Expression`

This is the abstract base class for CriteriaImpl and LogicalImpl.

This class should not be directly instantiated.

.

Related Topics

``ExpressionHelper``

Hierarchy
  `Object`
  `ExpressionImpl`

All Implemented Interfaces
  `Cloneable`, `Comparable`, `com.beasys.commerce.foundation.expression.Expression`, `Serializable`

Direct Known Subclasses
  `com.beasys.commerce.foundation.expression.CriteriaImpl`, `com.beasys.commerce.foundation.expression.LogicalImpl`

## Field Summary

`public boolean` | `not` Specifies if this is a negative logical expression.

## Constructor Summary

ExpressionImpl()

## Method Summary

`public `Object`` | `clone`()
`public int` | `compareTo`(`Object` o) Compare this belonging to another
`public boolean` | `equals`(`Object` o)
`public boolean` | `getNot`() Get the value of not
`public `String`` | `interfaceName`() interfaceName() returns the unqualified name of the interface from the UML model.
`public void` | `setByValue`(`Object` value) It is possible to call set-by-value with a superclass.
`public void` | `setNot`(boolean not) Set the value of not
`public `String`` | `toString`() Render the expression as a string.
`public `Object`` | `value`() value() is a more typesafe implementation of clone()
`public void` | `valueOf`(`String` searchExpression) Build a new expression that represents the string specified.

Methods from class `java.lang.`Object``
`finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods from interface `java.lang.`Comparable``
`compareTo`

Methods from interface `com.beasys.commerce.foundation.expression.`com.beasys.commerce.foundation.expression.Expression``
``getNot`, `interfaceName`, `setByValue`, `setNot`, `toString`, `value`, `valueOf``

## Field Detail

### not

    public boolean not

  Specifies if this is a negative logical expression.
  - Containment: By Value
  - Multiplicity: 1:1

## Constructor Detail

### ExpressionImpl

    public ExpressionImpl()

## Method Detail

### clone() Method

    public Object clone()

Overrides
  `Object.clone()`

### compareTo(Object) Method

    public int compareTo(Object o)

Compare this belonging to another

#### Parameters

o
  target object for comparision

#### Returns

0 objects are equal

### equals(Object) Method

    public boolean equals(Object o)

Overrides
  `Object.equals(Object)`

### getNot() Method

    public boolean getNot()

Get the value of not

### interfaceName() Method

    public String interfaceName()

interfaceName() returns the unqualified name of the interface from the UML model.

#### Returns

the unqualified name of the belonging interface

### setByValue(Object) Method

    public void setByValue(Object 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.

### setNot(boolean) Method

    public void setNot(boolean not)

Set the value of not

### toString() Method

    public String toString()

Render the expression as a string.

Overrides
  `Object.toString()`

Related Topics

``ExpressionHelper.toString(Expression)``

### value() Method

    public Object value()

value() is a more typesafe implementation of clone()

#### Returns

a clone of this instance

### valueOf(String) Method

    public void valueOf(String searchExpression)

Build a new expression that represents the string specified.

This methods should be marked as abstract.