|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhkl.zw.mkup.rattrap.XMLConnections
public class XMLConnections
This class provides access to the xml file which stores the connections to the server.
Constructor Summary | |
---|---|
XMLConnections()
The constructor reads the XML file. |
Method Summary | |
---|---|
java.util.List |
getConnections()
|
org.jdom.Document |
getDoc()
|
org.jdom.Element |
getRoot()
|
void |
idrefresh()
After deleting a connection the remaining connection ids must be reordered. |
void |
removeEntry(java.lang.String id)
Removes a connection entry from the xml file. |
void |
updateRoot(org.jdom.Element update)
The methods updates the root element, if there are new or deleted elements(connections). |
void |
writeToFile()
Saves the xml file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLConnections()
Method Detail |
---|
public void removeEntry(java.lang.String id)
id:
- The id of the connection.public void idrefresh()
public void writeToFile()
public void updateRoot(org.jdom.Element update)
update
- public org.jdom.Document getDoc()
public org.jdom.Element getRoot()
public java.util.List getConnections()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |