|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.expression.ExpressionImpl | +--com.beasys.commerce.foundation.expression.CriteriaImpl
The default Criteria implementation.
Unlinke most Belonging implementations, this does not attempt to clone everything.
Field Summary | |
java.lang.String |
comparator
The comparision operator. |
java.lang.Object |
criteria
The criteria value. |
java.lang.String |
property
The property name. |
java.lang.String |
scope
The property scope. |
Fields inherited from class com.beasys.commerce.foundation.expression.ExpressionImpl |
not |
Constructor Summary | |
CriteriaImpl()
Constructor. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compare this belonging to another |
java.lang.String |
getComparator()
Get the value of comparator |
java.lang.Object |
getCriteria()
Get the value of criteria |
java.lang.String |
getProperty()
Get the value of property |
java.lang.String |
getScope()
Get the value of scope |
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 |
setComparator(java.lang.String comparator)
Set the value of comparator |
void |
setCriteria(java.lang.Object criteria)
Set the value of criteria |
void |
setProperty(java.lang.String property)
Set the value of property |
void |
setScope(java.lang.String scope)
Set the value of scope |
Belonging |
value()
value() is a more typesafe implementation of clone() |
void |
valueOf(java.lang.String expression)
Set this Criteria's attributes from the specified query sting, which must be of the form "property comparator criteria" (e.g. |
Methods inherited from class com.beasys.commerce.foundation.expression.ExpressionImpl |
clone, equals, getNot, setNot, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.beasys.commerce.foundation.expression.Expression |
getNot, setNot, toString |
Methods inherited from interface com.beasys.commerce.foundation.Belonging |
clone, equals |
Field Detail |
public java.lang.Object criteria
public java.lang.String property
public java.lang.String scope
public java.lang.String comparator
Constructor Detail |
public CriteriaImpl()
All values are initialized to null.
Method Detail |
public java.lang.Object getCriteria()
getCriteria
in interface Criteria
public void setCriteria(java.lang.Object criteria)
setCriteria
in interface Criteria
criteria
- criteria to be addedpublic java.lang.String getProperty()
getProperty
in interface Criteria
public void setProperty(java.lang.String property)
setProperty
in interface Criteria
public java.lang.String getScope()
getScope
in interface Criteria
public void setScope(java.lang.String scope)
setScope
in interface Criteria
public java.lang.String getComparator()
getComparator
in interface Criteria
public void setComparator(java.lang.String comparator)
setComparator
in interface Criteria
public Belonging value()
value
in interface Belonging
value
in class ExpressionImpl
public java.lang.String interfaceName()
interfaceName
in interface Belonging
interfaceName
in class ExpressionImpl
public void setByValue(Belonging value)
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.
setByValue
in interface Belonging
setByValue
in class ExpressionImpl
com.beasys.commerce.foundation.Belonging
belonging
- The Belonging
to use for initialization.public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
compareTo
in class ExpressionImpl
o
- target object for comparisionpublic void valueOf(java.lang.String expression) throws java.lang.IllegalArgumentException
valueOf
in interface Expression
valueOf
in class ExpressionImpl
java.lang.IllegalArgumentException
- thrown on an invalid expression
string.ExpressionHelper.parse(java.lang.String)
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |