org.apache.jackrabbit.commons.iterator
Class PropertyIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter
- All Implemented Interfaces:
- Iterator, javax.jcr.PropertyIterator, javax.jcr.RangeIterator
public class PropertyIteratorAdapter
- extends RangeIteratorDecorator
- implements javax.jcr.PropertyIterator
Adapter class for turning RangeIterator
s or Iterator
s
into PropertyIterator
s.
Field Summary |
static javax.jcr.PropertyIterator |
EMPTY
Static instance of an empty PropertyIterator . |
Method Summary |
javax.jcr.Property |
nextProperty()
Returns the next property. |
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 |
EMPTY
public static final javax.jcr.PropertyIterator EMPTY
- Static instance of an empty
PropertyIterator
.
PropertyIteratorAdapter
public PropertyIteratorAdapter(javax.jcr.RangeIterator iterator)
- Creates an adapter for the given
RangeIterator
.
- Parameters:
iterator
- iterator of Property
instances
PropertyIteratorAdapter
public PropertyIteratorAdapter(Iterator iterator)
- Creates an adapter for the given
Iterator
.
- Parameters:
iterator
- iterator of Property
instances
PropertyIteratorAdapter
public PropertyIteratorAdapter(Collection collection)
- Creates an iterator for the given collection.
- Parameters:
collection
- collection of Property
instances
nextProperty
public javax.jcr.Property nextProperty()
- Returns the next property.
- Specified by:
nextProperty
in interface javax.jcr.PropertyIterator
- Returns:
- next property
- Throws:
NoSuchElementException
- if there is no next property
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.