|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.woli.xml.XMLFileReader
public class XMLFileReader
XMLFileReader
reads a XML file and pare it into an XMlData object.
Field Summary | |
---|---|
private Document |
document
|
private SAXReader |
reader
|
private XMLData |
xmlFileData
XMLData Object which stores all elements and attributes |
private String |
xmlFilePath
Path of the XML file |
Constructor Summary | |
---|---|
XMLFileReader()
Standard constructor all variables are initialized with 0 |
|
XMLFileReader(String xmlFilePath)
Constructor which initialize a new XMLData Object and sets the xmlFilePath 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 |
XMLData |
parseXMlFile()
Parse the XML file and stores all elements and attributes in a XMLData object Befor you can parse an XML file, you have read the XML file |
XMLData |
readAndParseXMLFile()
Read a parse a XML file |
XMLData |
readAndParseXMLFile(String xmlFilePath)
Read and parse a XML file at the given path |
void |
readXMLFile()
Reads the XML file |
void |
readXMLFile(String xmlFilePath)
Reads the XML file and uses the file at the given parameter |
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
private SAXReader reader
private Document document
Constructor Detail |
---|
public XMLFileReader()
public XMLFileReader(String xmlFilePath)
xmlFilePath
- The path of the XML file which will be read and parse by the classMethod 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 readXMLFile()
public void readXMLFile(String xmlFilePath)
xmlFilePath
- Path of the XML filepublic XMLData parseXMlFile()
readXMLFile()
,
readXMLFile(String)
,
readAndParseXMLFile(String)
,
readAndParseXMLFile()
public XMLData readAndParseXMLFile()
public XMLData readAndParseXMLFile(String xmlFilePath)
xmlFilePath
- Path of the XMl file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |