Package com.adobe.xmp.impl
Class XMPIteratorImpl
- java.lang.Object
-
- com.adobe.xmp.impl.XMPIteratorImpl
-
- All Implemented Interfaces:
XMPIterator,Iterator
public class XMPIteratorImpl extends Object implements XMPIterator
TheXMPIteratorimplementation. Iterates the XMP Tree according to a set of options. During the iteration the XMPMeta-object must not be changed. Calls toskipSubtree()/skipSiblings()will affect the iteration.- Since:
- 29.06.2006
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanskipSiblingsflag to indicate that skipSiblings() has been called.protected booleanskipSubtreeflag to indicate that skipSiblings() has been called.
-
Constructor Summary
Constructors Constructor Description XMPIteratorImpl(XMPMetaImpl xmp, String schemaNS, String propPath, IteratorOptions options)Constructor with optionsl initial values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetBaseNS()protected IteratorOptionsgetOptions()booleanhasNext()Objectnext()voidremove()protected voidsetBaseNS(String baseNS)voidskipSiblings()Skip the subtree below and remaining siblings of the current node whennext()is called.voidskipSubtree()Skip the subtree below the current node whennext()is called.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
XMPIteratorImpl
public XMPIteratorImpl(XMPMetaImpl xmp, String schemaNS, String propPath, IteratorOptions options) throws XMPException
Constructor with optionsl initial values. IfpropNameis provided,schemaNShas also be provided.- Parameters:
xmp- the iterated metadata object.schemaNS- the iteration is reduced to this schema (optional)propPath- the iteration is redurce to this property within theschemaNSoptions- advanced iteration options, seeIteratorOptions- Throws:
XMPException- If the node defined by the paramters is not existing.
-
-
Method Detail
-
skipSubtree
public void skipSubtree()
Description copied from interface:XMPIteratorSkip the subtree below the current node whennext()is called.- Specified by:
skipSubtreein interfaceXMPIterator- See Also:
XMPIterator.skipSubtree()
-
skipSiblings
public void skipSiblings()
Description copied from interface:XMPIteratorSkip the subtree below and remaining siblings of the current node whennext()is called.- Specified by:
skipSiblingsin interfaceXMPIterator- See Also:
XMPIterator.skipSiblings()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator- See Also:
Iterator.hasNext()
-
next
public Object next()
- Specified by:
nextin interfaceIterator- See Also:
Iterator.next()
-
remove
public void remove()
- Specified by:
removein interfaceIterator- See Also:
Iterator.remove()
-
getOptions
protected IteratorOptions getOptions()
- Returns:
- Exposes the options for inner class.
-
getBaseNS
protected String getBaseNS()
- Returns:
- Exposes the options for inner class.
-
setBaseNS
protected void setBaseNS(String baseNS)
- Parameters:
baseNS- sets the baseNS from the inner class.
-
-