public interface Property
Values
. Values are accessed through an iterator-like method:
nextValue()
, which returns the next available Value
or null
if there are no more. Note: Value
objects are
immutable, unlike DocumentList
and Document
objects.
The typical pattern for consuming an object that implements this interface is this (disregarding exception handling):
Property prop = ... Value v; while ((v = prop.nextValue()) != null) { doSomething(v); }
Modifier and Type | Method and Description |
---|---|
Value |
nextValue()
Returns the next
Value in this property, if there is one. |
Value nextValue() throws RepositoryException
Value
in this property, if there is one.null
otherwiseRepositoryException
- if a repository access error occurs