cucumber.table.xstream
Class ListOfObjectReader
java.lang.Object
com.thoughtworks.xstream.io.AbstractReader
cucumber.table.xstream.ListOfObjectReader
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.ErrorReporter, com.thoughtworks.xstream.io.ExtendedHierarchicalStreamReader, com.thoughtworks.xstream.io.HierarchicalStreamReader
public class ListOfObjectReader
- extends com.thoughtworks.xstream.io.AbstractReader
Generates XStream XML data from table rows that will create a List of objects. Example:
Sid Vicious
1957-05-10 00:00:00.0 UTC
1000
Frank Zappa
1940-12-21 00:00:00.0 UTC
3000
Constructor Summary |
ListOfObjectReader(java.lang.reflect.Type elementType,
java.util.List<java.lang.String> attributeNames,
java.util.List<java.util.List<java.lang.String>> items)
|
Methods inherited from class com.thoughtworks.xstream.io.AbstractReader |
decodeAttribute, decodeNode, encodeAttribute, encodeNode, peekNextChild, underlyingReader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListOfObjectReader
public ListOfObjectReader(java.lang.reflect.Type elementType,
java.util.List<java.lang.String> attributeNames,
java.util.List<java.util.List<java.lang.String>> items)
hasMoreChildren
public boolean hasMoreChildren()
moveDown
public void moveDown()
moveUp
public void moveUp()
getNodeName
public java.lang.String getNodeName()
getValue
public java.lang.String getValue()
getAttribute
public java.lang.String getAttribute(java.lang.String name)
getAttribute
public java.lang.String getAttribute(int index)
getAttributeCount
public int getAttributeCount()
getAttributeName
public java.lang.String getAttributeName(int index)
getAttributeNames
public java.util.Iterator getAttributeNames()
appendErrors
public void appendErrors(com.thoughtworks.xstream.converters.ErrorWriter errorWriter)
close
public void close()