public class DBObjectHierarchicalStreamReader extends Object implements com.thoughtworks.xstream.io.HierarchicalStreamReader
DBObject
structure that has been created
using the DBObjectHierarchicalStreamWriter
.Constructor and Description |
---|
DBObjectHierarchicalStreamReader(com.mongodb.DBObject root)
Initialize the reader to read the structure of the given
root DBObject. |
Modifier and Type | Method and Description |
---|---|
void |
appendErrors(com.thoughtworks.xstream.converters.ErrorWriter errorWriter) |
void |
close() |
String |
getAttribute(int index) |
String |
getAttribute(String name) |
int |
getAttributeCount() |
String |
getAttributeName(int index) |
Iterator |
getAttributeNames() |
String |
getNodeName() |
String |
getValue() |
boolean |
hasMoreChildren() |
void |
moveDown() |
void |
moveUp() |
com.thoughtworks.xstream.io.HierarchicalStreamReader |
underlyingReader() |
public DBObjectHierarchicalStreamReader(com.mongodb.DBObject root)
root
DBObject.root
- the root object containing the serialized structurepublic boolean hasMoreChildren()
hasMoreChildren
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public void moveDown()
moveDown
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public void moveUp()
moveUp
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public String getNodeName()
getNodeName
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public String getValue()
getValue
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public String getAttribute(String name)
getAttribute
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public String getAttribute(int index)
getAttribute
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public int getAttributeCount()
getAttributeCount
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public String getAttributeName(int index)
getAttributeName
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public Iterator getAttributeNames()
getAttributeNames
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public void appendErrors(com.thoughtworks.xstream.converters.ErrorWriter errorWriter)
appendErrors
in interface com.thoughtworks.xstream.converters.ErrorReporter
appendErrors
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public void close()
close
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
public com.thoughtworks.xstream.io.HierarchicalStreamReader underlyingReader()
underlyingReader
in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
Copyright © 2010–2018. All rights reserved.