|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--util.XMLFile
This is a simple wrapper class around JDOM's XML package.
Serializable
, Serialized FormField Summary | |
protected org.jdom.Document |
dSource
The JDOM Document object representing the XML file. |
protected org.jdom.input.SAXBuilder |
sBuilder
The utility to build a JDOM document from an XML file. |
Constructor Summary | |
XMLFile()
Creates a new XMLFile instance. |
|
XMLFile(File fFile)
Creates a new XMLFile instance. |
|
XMLFile(String sFileLocation)
Creates a new XMLFile instance. |
Method Summary | |
org.jdom.Document |
getDocument()
Returns the JDOM document representing this XML file. |
org.jdom.Element |
getRootElement()
Gets the root element of this XML document. |
void |
load(File fFile)
Loads the contents of the given XML file into this object. |
void |
load(String sFileLocation)
Loads the contents of the given XML file into this object. |
String |
toString()
Returns a string representation of this. |
void |
write(String sFile)
Write out the contents of this XML object to a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected org.jdom.Document dSource
protected org.jdom.input.SAXBuilder sBuilder
Constructor Detail |
public XMLFile()
XMLFile
instance.public XMLFile(File fFile)
XMLFile
instance.fFile
- a File
valuepublic XMLFile(String sFileLocation)
XMLFile
instance.sFileLocation
- a String
valueMethod Detail |
public void load(String sFileLocation)
sFileLocation
- a String
valuepublic void load(File fFile)
fFile
- a File
valuepublic org.jdom.Document getDocument()
Document
valuepublic String toString()
toString
in class Object
String
valuepublic org.jdom.Element getRootElement()
Element
valuepublic void write(String sFile)
sFile
- a String
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |