|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface of an XMLIORegistry. The XMLIOFactories used in the restore procedure of an object and the XMLIOProxyes should be register to an XMLIORegistry that should be set in the XMLIOManager passed to the restore method.
Method Summary | |
String |
getClassId(Class clName)
Get the identification string corresponding to a Class. |
Class |
getIdClass(String objName)
Get the Class corresponding to an identification String. |
XMLIOFactory |
getXMLIOFactory(Class objClass)
Get the appropriate XMLIOFactory to create the object that wrote the xml node. |
XMLIOProxy |
getXMLIOProxy(Class objClass)
Get the appropriate XMLIOProxy to restore the object that wrote the xml node. |
void |
register(Object obj)
Register an XMLIOFactory or an XMLIOProxy to this Registry. |
Method Detail |
public void register(Object obj) throws IllegalArgumentException
obj
- Either an XMLIOFactory or an XMLIOProxy to be registered.
An
- IllegalArgumentException if the object does not implement
either XMLIOFactory or XMLIOProxy.
IllegalArgumentException
public XMLIOFactory getXMLIOFactory(Class objClass) throws IllegalArgumentException
xmlioFactory<\code>.
If this attribute is not present, the node name is taken as
the identification string. The identification string is
assigned by the XMLIOManager by using the object's final
part of the Class name.
- Parameters:
objClass
- The Class of the object to be created.
- Returns:
- The corresponding XMLIOFactory.
- Throws:
IllegalArgumentException
- if the XMLIOFactory does not exist.
public XMLIOProxy getXMLIOProxy(Class objClass) throws IllegalArgumentException
objClass
- The Class of the object to be restored.
IllegalArgumentException
- if the XMLIOProxy does not exist.public String getClassId(Class clName)
clName
- The Class.
public Class getIdClass(String objName)
objName
- The object's identification String.
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |