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 38 public class NotLTEExpression extends LTEExpression { 39 40 46 public NotLTEExpression (Element e, ComparableResourcesPool requestedResourcesPool) throws InvalidQueryException { 47 super(e, requestedResourcesPool); 48 } 49 50 58 protected boolean compare (ComparableResource item) { 59 return item.isDefined(comparedProperty.property, 60 comparedProperty.propNamespace) 61 && (!super.compare(item)); 62 } 63 64 65 71 public String toString () { 72 return super.toString(Literals.NOT_LTE); 73 } 74 } 75 76 | Popular Tags |