|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jmat.io.files.DataFile
|
+--org.jmat.io.files.XMLFile
Copyright : LGPL
| Field Summary |
| Fields inherited from class org.jmat.io.files.DataFile |
file |
| Constructor Summary | |
XMLFile(java.io.File f)
|
|
| Method Summary | |
org.jdom.Element |
getElement(org.jdom.Element root,
java.lang.String elementsName,
java.lang.String[] attributesNames,
java.lang.String[] attributesValues)
|
org.jdom.Element |
getElement(java.lang.String elementsName,
java.lang.String[] attributesNames,
java.lang.String[] attributesValues)
|
static void |
main(java.lang.String[] args)
|
org.jdom.Element |
read()
Reaed an XML Element from an XML File |
java.lang.String |
readAttributeValue(java.lang.String attributeName,
java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
Read attribute value of the specified XML path |
java.lang.String[] |
readAttributeValues(java.lang.String attributeName,
java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
Read attributes values of the specified XML path |
static java.lang.String |
readContent(java.io.File f,
java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
|
java.lang.String |
readContent(java.lang.String[] elementsNames)
Read a String data with the specified position |
java.lang.String |
readContent(java.lang.String[] elementsNames,
int[] subElementsIndexes)
Read a String data with the specified position |
java.lang.String |
readContent(java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
Read String data with the specified XML path |
static java.lang.String[] |
readContents(java.io.File f,
java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
|
java.lang.String[] |
readContents(java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
Read String datas with the specified XML path |
static org.jdom.Element |
readRoot(java.io.File f)
|
void |
write(org.jdom.Element e)
Write the root Element in the XML file |
void |
write(java.lang.String elementName,
java.lang.String[] attributesNames,
java.lang.String[] attributesValues)
Write an Element as root in the XML file |
static void |
writeRoot(java.io.File f,
org.jdom.Element e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLFile(java.io.File f)
| Method Detail |
public static org.jdom.Element readRoot(java.io.File f)
public static java.lang.String[] readContents(java.io.File f,
java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
public static java.lang.String readContent(java.io.File f,
java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
public static void writeRoot(java.io.File f,
org.jdom.Element e)
public org.jdom.Element read()
public java.lang.String readAttributeValue(java.lang.String attributeName,
java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
attributeName - last attribute name containing the searched valueelementsNames - Path of elements leading to the data searchedattributesNames - Attributes of each elementattributesValues - Attributes values of each element
public java.lang.String[] readAttributeValues(java.lang.String attributeName,
java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
attributeName - last attribute name containing the searched valueelementsNames - Path of elements leading to the data searchedattributesNames - Attributes of each elementattributesValues - Attributes values of each element
public java.lang.String readContent(java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
elementsNames - Path of elements leading to the data searchedattributesNames - Attributes of each elementattributesValues - Attributes values of each element
public java.lang.String[] readContents(java.lang.String[] elementsNames,
java.lang.String[][] attributesNames,
java.lang.String[][] attributesValues)
elementsNames - Path of elements leading to the datas searchedattributesNames - Attributes of each elementattributesValues - Attributes values of each element
public java.lang.String readContent(java.lang.String[] elementsNames)
elementsNames - Path of elements leading to the data wanted (the first children element matching is used if many are found !)
public java.lang.String readContent(java.lang.String[] elementsNames,
int[] subElementsIndexes)
elementsNames - Path of elements leading to the data wanted.subElementsIndexes - index of children Element used for each parent Element (Maybe 0)
public void write(java.lang.String elementName,
java.lang.String[] attributesNames,
java.lang.String[] attributesValues)
elementName - name of the root element to createattributesNames - attributes of the elementattributesValues - attributes values of the elementpublic void write(org.jdom.Element e)
e - Element to write
public org.jdom.Element getElement(org.jdom.Element root,
java.lang.String elementsName,
java.lang.String[] attributesNames,
java.lang.String[] attributesValues)
public org.jdom.Element getElement(java.lang.String elementsName,
java.lang.String[] attributesNames,
java.lang.String[] attributesValues)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||