info.magnolia.jcr.iterator
Class FilteringPropertyIterator

java.lang.Object
  extended by info.magnolia.jcr.iterator.FilteringRangeIterator<javax.jcr.Property>
      extended by info.magnolia.jcr.iterator.FilteringPropertyIterator
All Implemented Interfaces:
Iterator, javax.jcr.PropertyIterator, javax.jcr.RangeIterator

public class FilteringPropertyIterator
extends FilteringRangeIterator<javax.jcr.Property>
implements javax.jcr.PropertyIterator

PropertyIterator hiding all properties that do not pass the predicate, returned properties can also be wrapped.


Constructor Summary
FilteringPropertyIterator(javax.jcr.PropertyIterator propertyIterator, AbstractPredicate<javax.jcr.Property> predicate)
           
FilteringPropertyIterator(javax.jcr.PropertyIterator propertyIterator, AbstractPredicate<javax.jcr.Property> predicate, ContentDecorator decorator)
           
FilteringPropertyIterator(javax.jcr.PropertyIterator propertyIterator, AbstractPredicate<javax.jcr.Property> predicate, PropertyWrapperFactory wrapperFactory)
          Deprecated. since 4.5.9 use FilteringPropertyIterator(PropertyIterator, AbstractPredicate, ContentDecorator) instead
 
Method Summary
protected  boolean evaluate(javax.jcr.Property property)
           
 javax.jcr.Property next()
           
 javax.jcr.Property nextProperty()
           
protected  javax.jcr.Property wrapProperty(javax.jcr.Property property)
           
 
Methods inherited from class info.magnolia.jcr.iterator.FilteringRangeIterator
getPosition, getSize, hasNext, remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
 
Methods inherited from interface java.util.Iterator
hasNext, remove
 

Constructor Detail

FilteringPropertyIterator

public FilteringPropertyIterator(javax.jcr.PropertyIterator propertyIterator,
                                 AbstractPredicate<javax.jcr.Property> predicate)

FilteringPropertyIterator

public FilteringPropertyIterator(javax.jcr.PropertyIterator propertyIterator,
                                 AbstractPredicate<javax.jcr.Property> predicate,
                                 ContentDecorator decorator)

FilteringPropertyIterator

public FilteringPropertyIterator(javax.jcr.PropertyIterator propertyIterator,
                                 AbstractPredicate<javax.jcr.Property> predicate,
                                 PropertyWrapperFactory wrapperFactory)
Deprecated. since 4.5.9 use FilteringPropertyIterator(PropertyIterator, AbstractPredicate, ContentDecorator) instead

Method Detail

next

public javax.jcr.Property next()
Specified by:
next in interface Iterator
Overrides:
next in class FilteringRangeIterator<javax.jcr.Property>

nextProperty

public javax.jcr.Property nextProperty()
Specified by:
nextProperty in interface javax.jcr.PropertyIterator

wrapProperty

protected javax.jcr.Property wrapProperty(javax.jcr.Property property)

evaluate

protected boolean evaluate(javax.jcr.Property property)
Specified by:
evaluate in class FilteringRangeIterator<javax.jcr.Property>


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