T
- extends <Item>public interface Sequence<T extends javax.jcr.Item> extends Iterable<T>
Item
s sequentially through an
Iterator
or looking them up through a key
.Iterator<T> iterator()
Item
s in this sequence. The order of the items
is implementation specific.iterator
in interface Iterable<T extends javax.jcr.Item>
Iterable.iterator()
T getItem(String key) throws javax.jcr.AccessDeniedException, javax.jcr.PathNotFoundException, javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
Item
from this sequence by its key
. If
the sequence does not contain the key
this method throws an
ItemNotFoundException
.key
- The key
of the item to retrieve. Must not be
null
.key
.javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
javax.jcr.AccessDeniedException
javax.jcr.PathNotFoundException
boolean hasItem(String key) throws javax.jcr.RepositoryException
key
.key
- The key
to look up.true
if this sequence contains key
.
False
otherwise.javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.