Class DomNavigator

  • All Implemented Interfaces:
    com.github.simy4.xpath.navigator.Navigator<DomNode>

    public final class DomNavigator
    extends java.lang.Object
    implements com.github.simy4.xpath.navigator.Navigator<DomNode>
    • Constructor Detail

      • DomNavigator

        public DomNavigator​(org.w3c.dom.Node xml)
    • Method Detail

      • root

        public DomNode root()
        Specified by:
        root in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
      • parentOf

        public DomNode parentOf​(DomNode node)
        Specified by:
        parentOf in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
      • elementsOf

        public java.lang.Iterable<DomNode> elementsOf​(DomNode parent)
        Specified by:
        elementsOf in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
      • attributesOf

        public java.lang.Iterable<DomNode> attributesOf​(DomNode parent)
        Specified by:
        attributesOf in interface com.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 interface com.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 interface com.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 interface com.github.simy4.xpath.navigator.Navigator<DomNode>
      • prependCopy

        public void prependCopy​(DomNode node)
                         throws com.github.simy4.xpath.XmlBuilderException
        Specified by:
        prependCopy in interface com.github.simy4.xpath.navigator.Navigator<DomNode>
        Throws:
        com.github.simy4.xpath.XmlBuilderException
      • remove

        public void remove​(DomNode node)
        Specified by:
        remove in interface com.github.simy4.xpath.navigator.Navigator<DomNode>