org.mycore.parsers.bool
Class MCRSetCondition

java.lang.Object
  extended by org.mycore.parsers.bool.MCRSetCondition
All Implemented Interfaces:
MCRCondition
Direct Known Subclasses:
MCRAndCondition, MCROrCondition

public abstract class MCRSetCondition
extends Object
implements MCRCondition

Author:
Frank Lützenkirchen

Field Summary
static String AND
           
protected  List<MCRCondition> children
           
protected  String operator
           
static String OR
           
 
Constructor Summary
protected MCRSetCondition(String operator)
           
 
Method Summary
 void accept(MCRConditionVisitor visitor)
           
 MCRSetCondition addAll(Collection<MCRCondition> conditions)
           
 MCRSetCondition addChild(MCRCondition condition)
           
abstract  boolean evaluate(Object o)
           
 List<MCRCondition> getChildren()
           
 String getOperator()
           
 Element info()
           
 String toString()
           
 Element toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AND

public static final String AND
See Also:
Constant Field Values

OR

public static final String OR
See Also:
Constant Field Values

operator

protected String operator

children

protected List<MCRCondition> children
Constructor Detail

MCRSetCondition

protected MCRSetCondition(String operator)
Method Detail

getOperator

public String getOperator()

addChild

public MCRSetCondition addChild(MCRCondition condition)

addAll

public MCRSetCondition addAll(Collection<MCRCondition> conditions)

getChildren

public List<MCRCondition> getChildren()

toString

public String toString()
Specified by:
toString in interface MCRCondition
Overrides:
toString in class Object

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 abstract boolean evaluate(Object o)
Specified by:
evaluate in interface MCRCondition