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

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

public class CriteriaImpl
extends `com.beasys.commerce.foundation.expression.ExpressionImpl`
implements `Cloneable`, `com.beasys.commerce.foundation.expression.Criteria`

The default Criteria implementation.

Unlinke most Belonging implementations, this does not attempt to clone everything.

Related Topics

``ExpressionHelper``

Hierarchy
  `Object`
  `com.beasys.commerce.foundation.expression.ExpressionImpl`
  `CriteriaImpl`

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

## Field Summary

`public `String`` | `comparator` The comparision operator.
`public `Object`` | `criteria` The criteria value.
`public `String`` | `property` The property name.
`public `String`` | `scope` The property scope.

Fields from com.beasys.commerce.foundation.expression`.`com.beasys.commerce.foundation.expression.ExpressionImpl``
``not``

## Constructor Summary

CriteriaImpl() Constructor.

## Method Summary

`public int` | `compareTo`(`Object` o) Compare this belonging to another
`public `String`` | `getComparator`() Get the value of comparator
`public `Object`` | `getCriteria`() Get the value of criteria
`public `String`` | `getProperty`() Get the value of property
`public `String`` | `getScope`() Get the value of scope
`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` | `setComparator`(`String` comparator) Set the value of comparator
`public void` | `setCriteria`(`Object` criteria) Set the value of criteria
`public void` | `setProperty`(`String` property) Set the value of property
`public void` | `setScope`(`String` scope) Set the value of scope
`public `Object`` | `value`() value() is a more typesafe implementation of clone()
`public void` | `valueOf`(`String` expression) Set this Criteria's attributes from the specified query sting, which must be of the form "property comparator criteria" (e.g.

Methods from `com.beasys.commerce.foundation.expression.`com.beasys.commerce.foundation.expression.ExpressionImpl``
``clone`, `equals`, `getNot`, `setNot`, `toString`,`

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

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

Methods from interface `com.beasys.commerce.foundation.expression.`com.beasys.commerce.foundation.expression.Criteria``
``getComparator`, `getCriteria`, `getProperty`, `getScope`, `setComparator`, `setCriteria`, `setProperty`, `setScope``

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

## Field Detail

### comparator

    public String comparator

  The comparision operator.
  - Containment: By Value
  - Multiplicity: 1:1

### criteria

    public Object criteria

  The criteria value.
  - Containment: By Value
  - Multiplicity: 1:1

### property

    public String property

  The property name.
  - Containment: By Value
  - Multiplicity: 1:1

### scope

    public String scope

  The property scope.
  - Containment: By Value
  - Multiplicity: 1:1

## Constructor Detail

### CriteriaImpl

    public CriteriaImpl()

  Constructor.

  All values are initialized to null.

## Method Detail

### compareTo(Object) Method

    public int compareTo(Object o)

Compare this belonging to another

Overrides
  `ExpressionImpl.compareTo(Object)`

#### Parameters

o
  target object for comparision

#### Returns

0 objects are equal

### getComparator() Method

    public String getComparator()

Get the value of comparator

### getCriteria() Method

    public Object getCriteria()

Get the value of criteria

### getProperty() Method

    public String getProperty()

Get the value of property

### getScope() Method

    public String getScope()

Get the value of scope

### interfaceName() Method

    public String interfaceName()

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

Overrides
  `ExpressionImpl.interfaceName()`

#### 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.

Overrides
  `ExpressionImpl.setByValue(Object)`

### setComparator(String) Method

    public void setComparator(String comparator)

Set the value of comparator

### setCriteria(Object) Method

    public void setCriteria(Object criteria)

Set the value of criteria

#### Parameters

criteria
  criteria to be added

### setProperty(String) Method

    public void setProperty(String property)

Set the value of property

### setScope(String) Method

    public void setScope(String scope)

Set the value of scope

### value() Method

    public Object value()

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

Overrides
  `ExpressionImpl.value()`

#### Returns

a clone of this instance

### valueOf(String) Method

    public void valueOf(String expression)
         throws IllegalArgumentException

Set this Criteria's attributes from the specified query sting, which must be of the form "property comparator criteria" (e.g. "identifier == '1234').

Overrides
  `ExpressionImpl.valueOf(String)`

#### Exceptions

``IllegalArgumentException``
  thrown on an invalid expression string.

Related Topics

``ExpressionHelper.parse(String)``