Package | Description |
---|---|
org.girod.jgraphml.reader |
This package contains a class which is able to parse a graphml file.
|
org.girod.jgraphml.xml |
This package contains a parser allowing to get a tree of Nodes from an XML file.
|
Modifier and Type | Method and Description |
---|---|
XMLNode |
XMLTreeWalker.firstChild()
Moves the TreeWalker to the first visible child of the current node, and returns the new node.
|
XMLNode |
XMLTreeWalker.getCurrentNode()
Return the node at which the TreeWalker is currently positioned.
|
XMLNode |
XMLTreeWalker.getRoot()
The root node of the TreeWalker, as specified when it was created.
|
XMLNode |
XMLTreeWalker.lastChild()
Moves the TreeWalker to the last visible child of the current node, and returns the new node.
|
XMLNode |
XMLTreeWalker.nextNode()
Moves the TreeWalker to the next visible node in document order relative to the current node, and returns the new
node.
|
XMLNode |
XMLTreeWalker.nextSibling()
Moves the TreeWalker to the next sibling of the current node, and returns the new node.
|
XMLNode |
XMLTreeWalker.parentNode()
Moves to and returns the closest visible ancestor node of the current node.
|
XMLNode |
XMLTreeWalker.previousNode()
Moves the TreeWalker to the previous visible node in document order relative to the current node, and returns the
new node.
|
XMLNode |
XMLTreeWalker.previousSibling()
Moves the TreeWalker to the previous sibling of the current node, and returns the new node.
|
Modifier and Type | Method and Description |
---|---|
void |
XMLTreeWalker.addToParentFilters(XMLNode node)
Add a node to the parent tags.
|
boolean |
NodeFilter.isCompatibleWithNode(XMLNode node)
Retur true if a node is comatible with the filter.
|
void |
XMLTreeWalker.setCurrentNode(XMLNode node)
Set the current Node.
|
Constructor and Description |
---|
XMLTreeWalker(XMLNode rootNode)
Create a new XMLTreeWalker.
|
Modifier and Type | Class and Description |
---|---|
class |
XMLRoot
A root Node in a graphml XML File.
|
Modifier and Type | Field and Description |
---|---|
protected XMLNode |
XMLNode.nodeParent
The node parent.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<XMLNode> |
XMLNode.children
The children nodes.
|
Modifier and Type | Method and Description |
---|---|
XMLNode |
XMLNode.copy()
Create a copy of this node.
|
XMLNode |
XMLNode.getFirstChild()
Return the first child of the Node.
|
XMLNode |
XMLNode.getLastChild()
Return the last child of the Node.
|
XMLNode |
XMLNode.getNextSibling()
Return the next sibling of the Node.
|
XMLNode |
XMLNode.getParent()
Return the Node parent (or null if the Node is the root of the XML File).
|
XMLNode |
XMLNode.getPreviousSibling()
Return the previous sibling of the Node.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<XMLNode> |
XMLNode.getAllChildren(java.lang.String name)
Return the list of all children of this node having a specified name.
|
java.util.List<XMLNode> |
XMLNode.getChildren()
Return the ordered list of children of this Node.
|
Modifier and Type | Method and Description |
---|---|
void |
XMLNode.addChild(XMLNode child)
Add a child to this Node.
|
static java.lang.String |
XMLNodeUtilities.print(XMLNode node,
int tab)
Print as a String the content of an XML file under a root Node.
|
static void |
XMLNodeUtilities.print(XMLNode node,
int tab,
java.io.File outputFile)
Save in a File the content of an XML file under a root Node.
|
static void |
XMLNodeUtilities.print(XMLNode node,
int tab,
java.io.File outputFile,
java.lang.String encoding)
Save in a File the content of an XML file under a root Node.
|
static java.lang.String |
XMLNodeUtilities.print(XMLNode node,
int tab,
java.lang.String encoding)
Print as a String the content of an XML file under a root Node.
|
static void |
XMLNodeUtilities.print(XMLNode node,
int tab,
java.net.URL outputURL)
Save in n URL the content of an XML file under a root Node.
|
Constructor and Description |
---|
XMLNode(XMLNode parent,
java.lang.String nodeName)
Create a Node.
|
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence