Package | Description |
---|---|
sirius.kernel.xml |
Helper classes to read and write XML.
|
Modifier and Type | Method and Description |
---|---|
StructuredNode |
StructuredInput.getNode(String xpath)
Returns the node denoted by the given xpath expression
|
StructuredNode |
XMLStructuredInput.getNode(String xpath) |
static StructuredNode |
StructuredNode.of(Node node)
Wraps the given W3C node into a structured node.
|
StructuredNode |
StructuredNode.queryNode(String xpath)
Returns a given node at the relative path.
|
Modifier and Type | Method and Description |
---|---|
List<StructuredNode> |
StructuredNode.getChildren()
Returns a list of all children of this DOM node.
|
List<StructuredNode> |
StructuredNode.queryNodeList(String xpath)
Returns a list of nodes at the relative path.
|
Modifier and Type | Method and Description |
---|---|
void |
NodeHandler.process(StructuredNode node)
Invoked once a complete subtree was parsed
|
void |
XMLStructuredInput.setNewParent(StructuredNode node)
Overrides the root node to reset this document to a subtree of the original input
|
Modifier and Type | Method and Description |
---|---|
void |
StructuredNode.visit(Consumer<StructuredNode> nodeHandler,
Consumer<Node> textNodeHandler)
Iterates through the sub-tree and invokes the appropriate handler for each child node.
|
void |
StructuredNode.visitNodes(Consumer<StructuredNode> nodeHandler)
Iterates through the sub-tree and invokes the given handler for each child node.
|
Copyright © 2018. All rights reserved.