CriteriaImpl Class
DEPRECATED Use com.bea.p13n.expression.Expression instead.
- 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
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CriteriaImpl
public CriteriaImpl()
- Constructor.
All values are initialized to null.
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)