Package org.simpleframework.xml.stream
Class DocumentReader.End
- java.lang.Object
-
- org.simpleframework.xml.stream.EventToken
-
- org.simpleframework.xml.stream.DocumentReader.End
-
- Enclosing class:
- DocumentReader
private static class DocumentReader.End extends EventToken
TheEnd
object is used to represent the end of an element. It is used by the core reader to determine which nodes are in context and which ones are out of context. This allows the input nodes to determine if it can read any more children.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
End()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnd()
This is true as this event represents an element end.-
Methods inherited from class org.simpleframework.xml.stream.EventToken
getLine, getName, getPrefix, getReference, getSource, getValue, isStart, isText, iterator
-
-
-
-
Method Detail
-
isEnd
public boolean isEnd()
This is true as this event represents an element end. Such events are required by the core reader to determine if a node is still in context. This helps to determine if there are any more children to be read from a specific node.- Specified by:
isEnd
in interfaceEventNode
- Overrides:
isEnd
in classEventToken
- Returns:
- this returns true as this token represents an end
-
-