|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.xml.io.XMLIOManager
The XMLIOManager is in charge of saving and restoring any object configuration through XML. It internally assigns objects and unique identification string used for cross-reference among xml nodes.
Constructor Summary | |
XMLIOManager(String fileName)
|
Method Summary | |
protected XMLIOFactory |
getXMLIOFactory(Class objClass)
Get the XMLIOFactory to restore the xml node param nodeEl the node to be restored |
protected XMLIOProxy |
getXMLIOProxy(Class objClass)
|
XMLIORegistry |
getXMLIORegistry()
Get the XMLIORegistry. |
XMLIOStreamManager |
getXMLIOStreamManager()
|
protected void |
loadRefTable(org.jdom.Element el)
|
void |
resetObjId()
Reset the stored ids |
Object |
restore(org.jdom.Element nodeEl)
|
Object |
restore(Object obj,
org.jdom.Element nodeEl)
Restore an object from an xml node. |
Object[] |
restoreFromXML()
The main method to restore from xml. |
org.jdom.Element |
save(Object obj)
|
org.jdom.Element |
saveAs(Object obj,
Class clazz)
Save an object to an XML node. |
void |
saveToXML(Object[] objs,
org.jdom.Element nodeEl)
The main method to save an array of objects to XML. |
void |
setClassId(Class clName,
String id)
Assign to a Class a string identifier. |
protected void |
setXMLIORegistry(XMLIORegistry xmlioRegistry)
|
void |
setXMLIOStreamManager(XMLIOStreamManager xmlioStreamManager)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLIOManager(String fileName)
Method Detail |
protected void setXMLIORegistry(XMLIORegistry xmlioRegistry)
public XMLIORegistry getXMLIORegistry()
public void setXMLIOStreamManager(XMLIOStreamManager xmlioStreamManager)
public XMLIOStreamManager getXMLIOStreamManager()
public Object restore(Object obj, org.jdom.Element nodeEl)
nodeEl
- The node containing the object's information.
This method should be used by the user to restore
nested objects within the restore method of an object
implementing the XMLIO interface.
public Object restore(org.jdom.Element nodeEl)
public org.jdom.Element saveAs(Object obj, Class clazz)
obj
- The object to be saved.
public org.jdom.Element save(Object obj)
public void saveToXML(Object[] objs, org.jdom.Element nodeEl)
objs
- The array of objects to be saved.public Object[] restoreFromXML()
public void setClassId(Class clName, String id)
clName
- The Class.id
- The new identifier for the class.protected void loadRefTable(org.jdom.Element el)
public void resetObjId()
protected XMLIOFactory getXMLIOFactory(Class objClass)
protected XMLIOProxy getXMLIOProxy(Class objClass)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |