|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.woli.xml.XMLFileWriter
public class XMLFileWriter
XMLFileWriter
writes all elements of an given list to a file.
Field Summary | |
---|---|
private XMLData |
xmlFileData
XMLData Object which stores all elements and attributes |
private String |
xmlFilePath
Path of the XML file |
Constructor Summary | |
---|---|
XMLFileWriter()
Standard constructor all variables are initialized with 0 |
|
XMLFileWriter(XMLData xmlFileData)
Constructor which sets the XMLData Object with the given paramenter and the xmlFilePath is set to 0 |
|
XMLFileWriter(XMLData xmlFileData,
String xmlFilePath)
Constructor which setes the XMLData and the xmlFilePath object with the given parameter |
Method Summary | |
---|---|
XMLData |
getXmlFileData()
Returns a XMLData Object which stores all elements and attributes |
String |
getXmlFilePath()
Returns the actual Path, where the XML file will be saved |
void |
saveDataToFile()
Save the given XMlData object as XMLFile at the given Path |
void |
setXmlFileData(XMLData xmlFileData)
Sets the given paramante as the actual XMLData object |
void |
setXmlFilePath(String xmlFilePath)
Stets the path for the XML file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private XMLData xmlFileData
private String xmlFilePath
Constructor Detail |
---|
public XMLFileWriter()
public XMLFileWriter(XMLData xmlFileData)
xmlFileData
- The XMLData Object which stores all elements and attributespublic XMLFileWriter(XMLData xmlFileData, String xmlFilePath)
xmlFileData
- The XMLData Object which stores all elements and attributesxmlFilePath
- The path for the XML-FileMethod Detail |
---|
public XMLData getXmlFileData()
public void setXmlFileData(XMLData xmlFileData)
xmlFileData
- A XMlData Object which store all elements and attributespublic String getXmlFilePath()
public void setXmlFilePath(String xmlFilePath)
xmlFilePath
- Path of the XML filepublic void saveDataToFile()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |