Berkeley DB XML
version 2.5.16

com.sleepycat.dbxml
Class XmlMetaDataIterator

java.lang.Object
  extended by com.sleepycat.dbxml.XmlMetaDataIterator

public class XmlMetaDataIterator
extends Object

Provides an iterator over an XmlDocument's metadata. Metadata is set on a document with XmlDocument.setMetaData(java.lang.String, java.lang.String, com.sleepycat.dbxml.XmlValue). You can also use XmlDocument.getMetaData(java.lang.String, java.lang.String, com.sleepycat.dbxml.XmlValue) to return a specific metadata item.

This object is instantiated using XmlDocument.getMetaDataIterator().

This object is not thread-safe, and can only be safely used by one thread at a time in an application.


Constructor Summary
XmlMetaDataIterator(XmlMetaDataIterator o)
          Copy constructor.
 
Method Summary
 XmlMetaData next()
          Returns the next item in the XmlDocument's metadata list.
 void reset()
          Sets the iterator to the beginning of the XmlDocument's metadata list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlMetaDataIterator

public XmlMetaDataIterator(XmlMetaDataIterator o)
                    throws XmlException
Copy constructor.

Throws:
XmlException
Method Detail

reset

public void reset()
           throws XmlException
Sets the iterator to the beginning of the XmlDocument's metadata list.

Throws:
XmlException

next

public XmlMetaData next()
                 throws XmlException
Returns the next item in the XmlDocument's metadata list. If there is no next item, this method returns null.

Throws:
XmlException

Berkeley DB XML
version 2.5.16

Copyright (c) 1996,2009 Oracle. All rights reserved.