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