1 23 24 package org.apache.slide.search.basic.expression; 25 26 import java.util.Collection ; 27 28 import org.apache.slide.search.InvalidQueryException; 29 import org.apache.slide.search.basic.IBasicResultSet; 30 import org.apache.slide.search.basic.Literals; 31 import org.jdom.Element; 32 33 38 public class OrExpression extends MergeExpression { 39 40 41 47 public OrExpression (Element e, Collection expressionsToMerge) throws InvalidQueryException { 48 super (e, expressionsToMerge); 49 } 50 51 protected void merge (IBasicResultSet theOtherResultSet) { 52 resultSet.addAll (theOtherResultSet); 53 } 54 55 56 61 public String toString () { 62 return super.toString (Literals.OR); 63 } 64 65 } 66 67 | Popular Tags |