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
The
End 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnd()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, iteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
End
private End()
-
-
Method Details
-
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:
isEndin interfaceEventNode- Overrides:
isEndin classEventToken- Returns:
- this returns true as this token represents an end
-