org.sf.jlaunchpad.xml
Class XmlHelper

java.lang.Object
  extended by org.sf.jlaunchpad.xml.XmlHelper
Direct Known Subclasses:
ProxiesXmlHelper

public class XmlHelper
extends java.lang.Object


Field Summary
protected  org.jdom.Document document
           
protected  org.jdom.input.SAXBuilder saxBuilder
           
 
Constructor Summary
XmlHelper()
           
 
Method Summary
 org.jdom.Element getElementByName(org.jdom.Element parent, java.lang.String name)
           
 org.jdom.Element getElementByName(java.lang.String name)
           
 org.jdom.Element getElementByPath(org.jdom.Element parent, java.lang.String[] path)
           
 org.jdom.Element getFragment(java.io.File file)
           
 void printChildren(org.jdom.Element parent)
           
 void read(java.io.File inputFile)
           
 void save(java.io.File outputFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

saxBuilder

protected org.jdom.input.SAXBuilder saxBuilder

document

protected org.jdom.Document document
Constructor Detail

XmlHelper

public XmlHelper()
Method Detail

read

public void read(java.io.File inputFile)
          throws java.io.IOException,
                 org.jdom.JDOMException
Throws:
java.io.IOException
org.jdom.JDOMException

save

public void save(java.io.File outputFile)
          throws java.io.IOException
Throws:
java.io.IOException

getFragment

public org.jdom.Element getFragment(java.io.File file)
                             throws java.io.IOException,
                                    org.jdom.JDOMException
Throws:
java.io.IOException
org.jdom.JDOMException

getElementByPath

public org.jdom.Element getElementByPath(org.jdom.Element parent,
                                         java.lang.String[] path)

getElementByName

public org.jdom.Element getElementByName(java.lang.String name)

getElementByName

public org.jdom.Element getElementByName(org.jdom.Element parent,
                                         java.lang.String name)

printChildren

public void printChildren(org.jdom.Element parent)


Copyright © 2007-2008 Dream Programs Inc.. All Rights Reserved.