sk.baka.ikslibs.stax
Class DOMEventWalker.State

java.lang.Object
  extended by sk.baka.ikslibs.stax.DOMEventWalker.State
Enclosing class:
DOMEventWalker

public static final class DOMEventWalker.State
extends Object

Represents an immutable state of the walker.

Author:
Martin Vysny

Field Summary
 boolean isNodeEnd
           If node is an element node and this property is true then report the node as the end-element event.
 Node node
          The node instance.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isClosingContainer()
          Checks if we are leaving a container node.
 boolean isOpeningContainer()
          Checks if we are entering a container node.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

node

public final Node node
The node instance.


isNodeEnd

public final boolean isNodeEnd

If node is an element node and this property is true then report the node as the end-element event.

If node is a document node and this property is true then report the node as the end-document event.

In other words, true if we are leaving current node (only in case of element, document or document fragment), false otherwise. Ignore this value if node is not a container.

Method Detail

isOpeningContainer

public boolean isOpeningContainer()
Checks if we are entering a container node.

Returns:
true if the node is a DOMUtils.isContainer(Node) and isNodeEnd is false.

isClosingContainer

public boolean isClosingContainer()
Checks if we are leaving a container node.

Returns:
true if the node is a DOMUtils.isContainer(Node) and isNodeEnd is true.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006 Martin Vysny - baka. All Rights Reserved.