|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.umontreal.iro.rali.SpineDocument
public class SpineDocument
Method Summary | |
---|---|
protected void |
addBottom(org.w3c.dom.Node n)
Insert a node n at the bottom of the spine document
Initialize the spine document if necessary
Modify the bottom global variable |
protected java.lang.String |
buildXPath(org.w3c.dom.Node node)
Creates a string representation of the skeleton document starting from a given node |
protected org.w3c.dom.Node |
getBottom()
|
protected org.w3c.dom.Document |
getDoc()
|
static void |
main(java.lang.String[] args)
For Unit Testing |
protected int |
nbNodes()
count the number of nodes in the document useful for debugging memory leaks... |
protected int |
nbNodes(org.w3c.dom.Node n)
count the number of nodes starting from a given node |
static java.lang.String |
quotedString(java.lang.String s)
Create a properly quoted string taking into account the fact that it can contain either single or double quote or both |
protected void |
removeBottom()
remove the bottom node (and all its children) by modifying the bottom global variable |
protected void |
removeUpTo(org.w3c.dom.Node n)
remove all nodes (and its children) from bottom up to (and including) n |
protected void |
upBottom()
set the bottom element to its parent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected org.w3c.dom.Document getDoc()
protected org.w3c.dom.Node getBottom()
protected void addBottom(org.w3c.dom.Node n)
n
at the bottom of the spine document
Initialize the spine document if necessary
Modify the bottom
global variable
n
- node to add at the bottom
org.w3c.dom.DOMException
javax.xml.stream.XMLStreamException
protected void removeBottom()
bottom
global variable
protected void upBottom()
protected void removeUpTo(org.w3c.dom.Node n)
n
- protected int nbNodes()
protected int nbNodes(org.w3c.dom.Node n)
n
- the node to start the count from
protected java.lang.String buildXPath(org.w3c.dom.Node node)
node
- node of the skeleton document
public static java.lang.String quotedString(java.lang.String s)
s
- input string
public static void main(java.lang.String[] args)
args
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |