org.alfresco.repo.search.impl.querymodel.impl
Class BaseDisjunction

java.lang.Object
  extended by org.alfresco.repo.search.impl.querymodel.impl.BaseConstraint
      extended by org.alfresco.repo.search.impl.querymodel.impl.BaseDisjunction
All Implemented Interfaces:
Constraint, Disjunction
Direct Known Subclasses:
LuceneDisjunction

public class BaseDisjunction
extends BaseConstraint
implements Disjunction


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.search.impl.querymodel.Constraint
Constraint.Occur
 
Constructor Summary
BaseDisjunction(java.util.List constraints)
           
 
Method Summary
 boolean evaluate()
           
 java.util.List getConstraints()
          Get the list of constraints for which at least one must be met.
 java.lang.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(java.util.List constraints)
Method Detail

getConstraints

public java.util.List getConstraints()
Description copied from interface: Disjunction
Get the list of constraints for which at least one must be met.

Specified by:
getConstraints in interface Disjunction
Returns:

evaluate

public boolean evaluate()
Specified by:
evaluate in interface Constraint

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.