Constructor | Description |
---|---|
DomNavigator(Node xml) |
Modifier and Type | Method | Description |
---|---|---|
Iterable<DomNode> |
attributesOf(DomNode parent) |
|
DomNode |
createAttribute(DomNode parent,
QName attribute) |
|
DomNode |
createElement(DomNode parent,
QName element) |
|
Iterable<DomNode> |
elementsOf(DomNode parent) |
|
DomNode |
parentOf(DomNode node) |
|
void |
prependCopy(DomNode node) |
|
void |
remove(DomNode node) |
|
DomNode |
root() |
|
void |
setText(DomNode node,
String text) |
public DomNavigator(Node xml)
public DomNode root()
root
in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
public DomNode parentOf(DomNode node)
parentOf
in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
public Iterable<DomNode> elementsOf(DomNode parent)
elementsOf
in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
public Iterable<DomNode> attributesOf(DomNode parent)
attributesOf
in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
public DomNode createAttribute(DomNode parent, QName attribute) throws com.github.simy4.xpath.XmlBuilderException
createAttribute
in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
com.github.simy4.xpath.XmlBuilderException
public DomNode createElement(DomNode parent, QName element) throws com.github.simy4.xpath.XmlBuilderException
createElement
in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
com.github.simy4.xpath.XmlBuilderException
public void setText(DomNode node, String text)
setText
in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
public void prependCopy(DomNode node) throws com.github.simy4.xpath.XmlBuilderException
prependCopy
in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
com.github.simy4.xpath.XmlBuilderException