Class DomNavigator
- java.lang.Object
-
- com.github.simy4.xpath.dom.navigator.DomNavigator
-
-
Constructor Summary
Constructors Constructor Description DomNavigator(org.w3c.dom.Node xml)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<DomNode>
attributesOf(DomNode parent)
DomNode
createAttribute(DomNode parent, javax.xml.namespace.QName attribute)
DomNode
createElement(DomNode parent, javax.xml.namespace.QName element)
java.lang.Iterable<DomNode>
elementsOf(DomNode parent)
DomNode
parentOf(DomNode node)
void
prependCopy(DomNode node)
void
remove(DomNode node)
DomNode
root()
void
setText(DomNode node, java.lang.String text)
-
-
-
Method Detail
-
root
public DomNode root()
- Specified by:
root
in interfacecom.github.simy4.xpath.navigator.Navigator<DomNode>
-
parentOf
public DomNode parentOf(DomNode node)
- Specified by:
parentOf
in interfacecom.github.simy4.xpath.navigator.Navigator<DomNode>
-
elementsOf
public java.lang.Iterable<DomNode> elementsOf(DomNode parent)
- Specified by:
elementsOf
in interfacecom.github.simy4.xpath.navigator.Navigator<DomNode>
-
attributesOf
public java.lang.Iterable<DomNode> attributesOf(DomNode parent)
- Specified by:
attributesOf
in interfacecom.github.simy4.xpath.navigator.Navigator<DomNode>
-
createAttribute
public DomNode createAttribute(DomNode parent, javax.xml.namespace.QName attribute) throws com.github.simy4.xpath.XmlBuilderException
- Specified by:
createAttribute
in interfacecom.github.simy4.xpath.navigator.Navigator<DomNode>
- Throws:
com.github.simy4.xpath.XmlBuilderException
-
createElement
public DomNode createElement(DomNode parent, javax.xml.namespace.QName element) throws com.github.simy4.xpath.XmlBuilderException
- Specified by:
createElement
in interfacecom.github.simy4.xpath.navigator.Navigator<DomNode>
- Throws:
com.github.simy4.xpath.XmlBuilderException
-
setText
public void setText(DomNode node, java.lang.String text)
- Specified by:
setText
in interfacecom.github.simy4.xpath.navigator.Navigator<DomNode>
-
prependCopy
public void prependCopy(DomNode node) throws com.github.simy4.xpath.XmlBuilderException
- Specified by:
prependCopy
in interfacecom.github.simy4.xpath.navigator.Navigator<DomNode>
- Throws:
com.github.simy4.xpath.XmlBuilderException
-
-