Class ReaderDepthState
- java.lang.Object
-
- com.thoughtworks.xstream.io.binary.ReaderDepthState
-
class ReaderDepthState extends java.lang.ObjectMaintains the state of a pull reader at various states in the document depth. Used by theBinaryStreamReader- Since:
- 1.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classReaderDepthState.Attributeprivate static classReaderDepthState.State
-
Field Summary
Fields Modifier and Type Field Description private ReaderDepthState.Statecurrentprivate static java.lang.StringEMPTY_STRING
-
Constructor Summary
Constructors Constructor Description ReaderDepthState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(java.lang.String name, java.lang.String value)java.lang.StringgetAttribute(int index)java.lang.StringgetAttribute(java.lang.String name)intgetAttributeCount()java.lang.StringgetAttributeName(int index)java.util.IteratorgetAttributeNames()java.lang.StringgetName()java.lang.StringgetValue()booleanhasMoreChildren()voidpop()voidpush()voidsetHasMoreChildren(boolean hasMoreChildren)voidsetName(java.lang.String name)voidsetValue(java.lang.String value)
-
-
-
Field Detail
-
EMPTY_STRING
private static final java.lang.String EMPTY_STRING
- See Also:
- Constant Field Values
-
current
private ReaderDepthState.State current
-
-
Method Detail
-
push
public void push()
-
pop
public void pop()
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getValue
public java.lang.String getValue()
-
setValue
public void setValue(java.lang.String value)
-
hasMoreChildren
public boolean hasMoreChildren()
-
setHasMoreChildren
public void setHasMoreChildren(boolean hasMoreChildren)
-
addAttribute
public void addAttribute(java.lang.String name, java.lang.String value)
-
getAttribute
public java.lang.String getAttribute(java.lang.String name)
-
getAttribute
public java.lang.String getAttribute(int index)
-
getAttributeName
public java.lang.String getAttributeName(int index)
-
getAttributeCount
public int getAttributeCount()
-
getAttributeNames
public java.util.Iterator getAttributeNames()
-
-