public class XMPIteratorImpl extends Object implements XMPIterator
XMPIterator
implementation. Iterates the XMP Tree according to a set of options. During the iteration the XMPMeta-object must not be changed. Calls to skipSubtree()
/ skipSiblings()
will affect the iteration.
Modifier and Type | Field and Description |
---|---|
protected boolean |
skipSiblings
flag to indicate that skipSiblings() has been called.
|
protected boolean |
skipSubtree
flag to indicate that skipSiblings() has been called.
|
Constructor and Description |
---|
XMPIteratorImpl(XMPMetaImpl xmp, String schemaNS, String propPath, IteratorOptions options)
Constructor with optionsl initial values.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getBaseNS() |
protected IteratorOptions |
getOptions() |
boolean |
hasNext() |
Object |
next() |
void |
remove() |
protected void |
setBaseNS(String baseNS) |
void |
skipSiblings()
Skip the subtree below and remaining siblings of the current node when next() is called.
|
void |
skipSubtree()
Skip the subtree below the current node when next() is called.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected boolean skipSiblings
protected boolean skipSubtree
public XMPIteratorImpl(XMPMetaImpl xmp, String schemaNS, String propPath, IteratorOptions options) throws XMPException
propName
is provided, schemaNS
has also be provided.
xmp
- the iterated metadata object.
schemaNS
- the iteration is reduced to this schema (optional)
propPath
- the iteration is redurce to this property within the schemaNS
options
- advanced iteration options, see IteratorOptions
XMPException
- If the node defined by the paramters is not existing.
public void skipSubtree()
XMPIterator
next()
is called.
skipSubtree
in interface XMPIterator
XMPIterator.skipSubtree()
public void skipSiblings()
XMPIterator
next()
is called.
skipSiblings
in interface XMPIterator
XMPIterator.skipSiblings()
public boolean hasNext()
hasNext
in interface Iterator
Iterator.hasNext()
public Object next()
next
in interface Iterator
Iterator.next()
public void remove()
remove
in interface Iterator
Iterator.remove()
protected IteratorOptions getOptions()
protected String getBaseNS()
protected void setBaseNS(String baseNS)
baseNS
- sets the baseNS from the inner class.
Copyright © 1998–2022. All rights reserved.