Package Summary  Overview Summary

class:ElementTraversal [NONE]

method:getFirstElementChild() [NONE]

  • getFirstElementChild

    Element getFirstElementChild()
    Returns a reference to the first child node of the element which is of the Element type.
    Returns:
    a reference to an element child, null if the element has no child of the Element type.

method:getLastElementChild() [NONE]

  • getLastElementChild

    Element getLastElementChild()
    Returns a reference to the last child node of the element which is of the Element type.
    Returns:
    a reference to an element child, null if the element has no child of the Element type.

method:getPreviousElementSibling() [NONE]

  • getPreviousElementSibling

    Element getPreviousElementSibling()
    Returns a reference to the sibling node of the element which most immediately precedes the element in document order, and which is of the Element type.
    Returns:
    a reference to an element child, null if the element has no sibling node of the Element type that comes before this one.

method:getNextElementSibling() [NONE]

  • getNextElementSibling

    Element getNextElementSibling()
    Returns a reference to the sibling node of the element which most immediately follows the element in document order, and which is of the Element type.
    Returns:
    a reference to an element child, null if the element has no sibling node of the Element type that comes after this one.

method:getChildElementCount() [NONE]

  • getChildElementCount

    int getChildElementCount()
    Returns the current number of child nodes of the element which are of the Element type.
    Returns:
    the number of element children, or 0 if the element has no element children.

© 2018 Oracle Corporation and/or its affiliates