Class GsonNavigator

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

    public class GsonNavigator
    extends java.lang.Object
    implements com.github.simy4.xpath.navigator.Navigator<GsonNode>
    • Constructor Detail

      • GsonNavigator

        public GsonNavigator​(GsonNode json)
    • Method Detail

      • root

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

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

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

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

        public GsonNode createAttribute​(GsonNode parent,
                                        javax.xml.namespace.QName attribute)
                                 throws com.github.simy4.xpath.XmlBuilderException
        Specified by:
        createAttribute in interface com.github.simy4.xpath.navigator.Navigator<GsonNode>
        Throws:
        com.github.simy4.xpath.XmlBuilderException
      • createElement

        public GsonNode createElement​(GsonNode parent,
                                      javax.xml.namespace.QName element)
                               throws com.github.simy4.xpath.XmlBuilderException
        Specified by:
        createElement in interface com.github.simy4.xpath.navigator.Navigator<GsonNode>
        Throws:
        com.github.simy4.xpath.XmlBuilderException
      • setText

        public void setText​(GsonNode node,
                            java.lang.String text)
                     throws com.github.simy4.xpath.XmlBuilderException
        Specified by:
        setText in interface com.github.simy4.xpath.navigator.Navigator<GsonNode>
        Throws:
        com.github.simy4.xpath.XmlBuilderException
      • prependCopy

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

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