org.mycore.services.fieldquery
Class MCRQueryCondition
java.lang.Object
org.mycore.services.fieldquery.MCRFieldValue
org.mycore.services.fieldquery.MCRQueryCondition
- All Implemented Interfaces:
- MCRCondition
public class MCRQueryCondition
- extends MCRFieldValue
- implements MCRCondition
Represents a simple query condition, which consists of a search field,
a value and a comparison operator.
- Author:
- Frank Lützenkirchen
MCRQueryCondition
public MCRQueryCondition(MCRFieldDef field,
String operator,
String value)
- Creates a new simple query condition
getOperator
public String getOperator()
- Returns the comparison operator used in this condition
toString
public String toString()
- Specified by:
toString in interface MCRCondition- Overrides:
toString in class MCRFieldValue
toXML
public Element toXML()
- Specified by:
toXML in interface MCRCondition
info
public Element info()
- Specified by:
info in interface MCRCondition
accept
public void accept(MCRConditionVisitor visitor)
- Specified by:
accept in interface MCRCondition
evaluate
public boolean evaluate(Object o)
- Specified by:
evaluate in interface MCRCondition