public class JavaxXml extends Object
Modifier and Type | Method and Description |
---|---|
static Stream<Element> |
childElements(Node parent)
Find child elements.
|
static Stream<Element> |
childElementsNamed(Node parent,
String tagName)
Find child elements named tagName.
|
static Optional<Element> |
firstChildElement(Node parent)
Find the first child element.
|
static Optional<Element> |
firstChildElementNamed(Node parent,
String tagName)
Find the first child element named tagName.
|
static Optional<Node> |
firstStateChildNode(Node parent)
Find the first child node holding state.
|
static boolean |
isStateNode(Node node)
Test if a node holds state.
|
static Stream<Node> |
stateChildNodes(Node parent)
Find child nodes holding state.
|
public static Stream<Element> childElements(Node parent)
parent
- the parent nodepublic static Optional<Element> firstChildElement(Node parent)
parent
- the parent nodepublic static Stream<Element> childElementsNamed(Node parent, String tagName)
parent
- the parent nodetagName
- the tag namepublic static Optional<Element> firstChildElementNamed(Node parent, String tagName)
parent
- the parent nodetagName
- the tag namepublic static Stream<Node> stateChildNodes(Node parent)
parent
- the parent nodepublic static Optional<Node> firstStateChildNode(Node parent)
parent
- the parent nodepublic static boolean isStateNode(Node node)
node
- the node