info.magnolia.jcr.predicate
Class StringPropertyValueFilterPredicate

java.lang.Object
  extended by info.magnolia.jcr.predicate.AbstractPredicate<javax.jcr.Property>
      extended by info.magnolia.jcr.predicate.StringPropertyValueFilterPredicate
All Implemented Interfaces:
org.apache.jackrabbit.commons.predicate.Predicate

public class StringPropertyValueFilterPredicate
extends AbstractPredicate<javax.jcr.Property>

Simple predicate implementation that filter property based on the desired value. Return only properties that have a value equals to the value passed as constructor. If value is set to null, return only properties that have a null value. If the property is not of the type return false.


Field Summary
 
Fields inherited from interface org.apache.jackrabbit.commons.predicate.Predicate
FALSE, TRUE
 
Constructor Summary
StringPropertyValueFilterPredicate(String value)
           
 
Method Summary
 boolean evaluateTyped(javax.jcr.Property property)
           
 
Methods inherited from class info.magnolia.jcr.predicate.AbstractPredicate
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPropertyValueFilterPredicate

public StringPropertyValueFilterPredicate(String value)
Method Detail

evaluateTyped

public boolean evaluateTyped(javax.jcr.Property property)
Specified by:
evaluateTyped in class AbstractPredicate<javax.jcr.Property>


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.