Package org.mycore.parsers.bool
Class MCRSetCondition<T>
java.lang.Object
org.mycore.parsers.bool.MCRSetCondition<T>
- All Implemented Interfaces:
MCRCondition<T>
- Direct Known Subclasses:
MCRAndCondition
,MCROrCondition
- Author:
- Frank Lützenkirchen
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAll
(Collection<MCRCondition<T>> conditions) addChild
(MCRCondition<T> condition) abstract boolean
Evalutates this condition.toString()
Returns this condition as a String.toXML()
Returns this condition as an Element.
-
Field Details
-
AND
- See Also:
-
OR
- See Also:
-
operator
-
children
-
-
Constructor Details
-
MCRSetCondition
-
-
Method Details
-
getOperator
-
addChild
-
addAll
-
getChildren
-
toString
Description copied from interface:MCRCondition
Returns this condition as a String.- Specified by:
toString
in interfaceMCRCondition<T>
- Overrides:
toString
in classObject
- Returns:
- a condition string that can be parsed
-
toXML
Description copied from interface:MCRCondition
Returns this condition as an Element.- Specified by:
toXML
in interfaceMCRCondition<T>
- Returns:
- this condition in XML format
-
evaluate
Description copied from interface:MCRCondition
Evalutates this condition.- Specified by:
evaluate
in interfaceMCRCondition<T>
- Parameters:
o
- a parameter object- Returns:
- true if this condition is met
-