Class GsonNavigator
- java.lang.Object
-
- com.github.simy4.xpath.gson.navigator.GsonNavigator
-
-
Constructor Summary
Constructors Constructor Description GsonNavigator(GsonNode json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<? extends GsonNode>attributesOf(GsonNode parent)GsonNodecreateAttribute(GsonNode parent, javax.xml.namespace.QName attribute)GsonNodecreateElement(GsonNode parent, javax.xml.namespace.QName element)java.lang.Iterable<? extends GsonNode>elementsOf(GsonNode parent)GsonNodeparentOf(GsonNode node)voidprependCopy(GsonNode node)voidremove(GsonNode node)GsonNoderoot()voidsetText(GsonNode node, java.lang.String text)
-
-
-
Constructor Detail
-
GsonNavigator
public GsonNavigator(GsonNode json)
-
-
Method Detail
-
root
public GsonNode root()
- Specified by:
rootin interfacecom.github.simy4.xpath.navigator.Navigator<GsonNode>
-
parentOf
public GsonNode parentOf(GsonNode node)
- Specified by:
parentOfin interfacecom.github.simy4.xpath.navigator.Navigator<GsonNode>
-
elementsOf
public java.lang.Iterable<? extends GsonNode> elementsOf(GsonNode parent)
- Specified by:
elementsOfin interfacecom.github.simy4.xpath.navigator.Navigator<GsonNode>
-
attributesOf
public java.lang.Iterable<? extends GsonNode> attributesOf(GsonNode parent)
- Specified by:
attributesOfin interfacecom.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:
createAttributein interfacecom.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:
createElementin interfacecom.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:
setTextin interfacecom.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:
prependCopyin interfacecom.github.simy4.xpath.navigator.Navigator<GsonNode>- Throws:
com.github.simy4.xpath.XmlBuilderException
-
-