edu.ucla.stat.SOCR.JRI
Class XMLtree

java.lang.Object
  extended by edu.ucla.stat.SOCR.JRI.XMLtree

public class XMLtree
extends java.lang.Object


Field Summary
protected static java.lang.String DEFAULT_PARSER_NAME
           
 
Constructor Summary
XMLtree()
           
XMLtree(org.w3c.dom.Document input_root)
           
XMLtree(java.lang.String fName)
           
XMLtree(java.lang.String fName, boolean useFile)
           
 
Method Summary
 void flush(org.w3c.dom.Document root)
           
 void flush(java.lang.String fName)
           
 org.w3c.dom.NodeList getElementsByName(java.lang.String elName)
           
protected  org.w3c.dom.Document getRoot(java.lang.String fileName)
           
 java.lang.String getValue(org.w3c.dom.Node el)
           
 java.lang.String getValue(org.w3c.dom.NodeList elements)
           
 java.lang.String getValueByName(org.w3c.dom.Element rootEl, java.lang.String elName)
           
 java.lang.String getValueByName(java.lang.String elName)
           
 org.w3c.dom.Document getXMLroot()
           
 void insert(java.lang.String elname, java.lang.String value)
           
 void insertChildren(java.lang.String elname, java.lang.String value)
           
 void insertSiblingWithChildren(java.lang.String elname, java.lang.String value)
           
 void print()
           
protected  void print(org.w3c.dom.NodeList elements)
           
protected  void printEl(org.w3c.dom.Element element)
           
 void writeXMLFile(java.lang.String out_fName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PARSER_NAME

protected static final java.lang.String DEFAULT_PARSER_NAME
See Also:
Constant Field Values
Constructor Detail

XMLtree

public XMLtree()

XMLtree

public XMLtree(java.lang.String fName)

XMLtree

public XMLtree(java.lang.String fName,
               boolean useFile)

XMLtree

public XMLtree(org.w3c.dom.Document input_root)
Method Detail

flush

public void flush(java.lang.String fName)

flush

public void flush(org.w3c.dom.Document root)

getXMLroot

public org.w3c.dom.Document getXMLroot()

getRoot

protected org.w3c.dom.Document getRoot(java.lang.String fileName)

getValue

public java.lang.String getValue(org.w3c.dom.Node el)

getValue

public java.lang.String getValue(org.w3c.dom.NodeList elements)

getElementsByName

public org.w3c.dom.NodeList getElementsByName(java.lang.String elName)

getValueByName

public java.lang.String getValueByName(java.lang.String elName)

getValueByName

public java.lang.String getValueByName(org.w3c.dom.Element rootEl,
                                       java.lang.String elName)

insert

public void insert(java.lang.String elname,
                   java.lang.String value)

insertChildren

public void insertChildren(java.lang.String elname,
                           java.lang.String value)

insertSiblingWithChildren

public void insertSiblingWithChildren(java.lang.String elname,
                                      java.lang.String value)

print

public void print()

print

protected void print(org.w3c.dom.NodeList elements)

printEl

protected void printEl(org.w3c.dom.Element element)

writeXMLFile

public void writeXMLFile(java.lang.String out_fName)