Class BaseDisjunction
- java.lang.Object
-
- org.alfresco.repo.search.impl.querymodel.impl.BaseConstraint
-
- org.alfresco.repo.search.impl.querymodel.impl.BaseDisjunction
-
- All Implemented Interfaces:
Constraint
,Disjunction
- Direct Known Subclasses:
LuceneDisjunction
public class BaseDisjunction extends BaseConstraint implements Disjunction
- Author:
- andyh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.search.impl.querymodel.Constraint
Constraint.Occur
-
-
Constructor Summary
Constructors Constructor Description BaseDisjunction(List<Constraint> constraints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate()
List<Constraint>
getConstraints()
Get the list of constraints for which at least one must be met.String
toString()
-
Methods inherited from class org.alfresco.repo.search.impl.querymodel.impl.BaseConstraint
getBoost, getOccur, setBoost, setOccur
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.search.impl.querymodel.Constraint
getBoost, getOccur, setBoost, setOccur
-
-
-
-
Constructor Detail
-
BaseDisjunction
public BaseDisjunction(List<Constraint> constraints)
-
-
Method Detail
-
getConstraints
public List<Constraint> getConstraints()
Description copied from interface:Disjunction
Get the list of constraints for which at least one must be met.- Specified by:
getConstraints
in interfaceDisjunction
-
evaluate
public boolean evaluate()
- Specified by:
evaluate
in interfaceConstraint
-
-