Interface SiblingCountingNode

All Superinterfaces:
Item, NodeInfo, Source, ValueRepresentation
All Known Implementing Classes:
DocumentWrapper, DocumentWrapper, DocumentWrapper, DocumentWrapper, NodeWrapper, NodeWrapper, NodeWrapper, NodeWrapper

public interface SiblingCountingNode extends NodeInfo
Interface that extends NodeInfo by providing a method to get the position of a node relative to its siblings.
  • Method Details

    • getSiblingPosition

      int getSiblingPosition()
      Get the index position of this node among its siblings (starting from 0)
      Returns:
      0 for the first child, 1 for the second child, etc.