1 23 24 package org.apache.slide.search.basic.expression; 25 26 import org.apache.slide.search.InvalidQueryException; 27 import org.apache.slide.search.basic.ComparableResource; 28 import org.apache.slide.search.basic.ComparableResourcesPool; 29 import org.apache.slide.search.basic.Literals; 30 import org.jdom.Element; 31 32 37 public class PropContainsExpression extends ComparePropertyExpression { 38 39 45 public PropContainsExpression (Element e, ComparableResourcesPool requestedResourcesPool) throws InvalidQueryException { 46 super(e, requestedResourcesPool, true); 47 } 48 49 57 protected boolean compare (ComparableResource item) { 58 return item.propContains ( 59 comparedProperty.getProperty(), 60 comparedProperty.getPropNamespace(), 61 comparedProperty.getLiteral()) == Literals.TRUE; 62 } 63 64 65 71 public String toString () { 72 return super.toString (Literals.EQ); 73 } 74 } 75 76 | Popular Tags |