Class DOMTreeResolver

    • Constructor Detail

      • DOMTreeResolver

        public DOMTreeResolver()
    • Method Detail

      • isFirstChildElement

        public boolean isFirstChildElement​(Object element)
        Description copied from interface: TreeResolver
        returns true if this element is the first child element of its parent
        Specified by:
        isFirstChildElement in interface TreeResolver
      • isLastChildElement

        public boolean isLastChildElement​(Object element)
        Description copied from interface: TreeResolver
        returns true if this element is the last child element of its parent
        Specified by:
        isLastChildElement in interface TreeResolver
      • matchesElement

        public boolean matchesElement​(Object element,
                                      String namespaceURI,
                                      String name)
        Description copied from interface: TreeResolver
        Returns true if element has the local name name and namespace URI namespaceURI.
        Specified by:
        matchesElement in interface TreeResolver
        namespaceURI - The namespace to match, may be null to signify any namespace. Use TreeResolver.NO_NAMESPACE to signify that name should only match when there is no namespace defined on element.
        name - The name to match, may not be null
      • getPositionOfElement

        public int getPositionOfElement​(Object element)
        Description copied from interface: TreeResolver
        Returns the index of the position of the submitted element among its element node siblings.
        Specified by:
        getPositionOfElement in interface TreeResolver
        Returns:
        -1 in case of error, 0 indexed position otherwise