Class DocumentReader.End

  • All Implemented Interfaces:
    java.lang.Iterable<Attribute>, EventNode
    Enclosing class:
    DocumentReader

    private static class DocumentReader.End
    extends EventToken
    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 Detail

      • End

        private End()
    • 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 interface EventNode
        Overrides:
        isEnd in class EventToken
        Returns:
        this returns true as this token represents an end