FreeHEP API
Version current

org.freehep.xml.io
Class DefaultXMLIORegistry

java.lang.Object
  extended byorg.freehep.xml.io.DefaultXMLIORegistry
All Implemented Interfaces:
XMLIORegistry

public class DefaultXMLIORegistry
extends Object
implements XMLIORegistry

Default XMLIORegistry.

Version:
1.0
Author:
turri
See Also:
XMLIORegistry
Source Code:
DefaultXMLIORegistry.java

Constructor Summary
DefaultXMLIORegistry()
           
 
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 XMLIOFactory corresponding to the identification string factoryId<\code> param factoryId the identification String
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXMLIORegistry

public DefaultXMLIORegistry()
Method Detail

register

public void register(Object obj)
Register an XMLIOFactory or an XMLIOProxy. param xmlioFactory the XMLIOFactory being registered param factoryId the identification String.

Specified by:
register in interface XMLIORegistry
Parameters:
obj - Either an XMLIOFactory or an XMLIOProxy to be registered.

getXMLIOFactory

public XMLIOFactory getXMLIOFactory(Class objClass)
Get the XMLIOFactory corresponding to the identification string factoryId<\code> param factoryId the identification String

Specified by:
getXMLIOFactory in interface XMLIORegistry
Parameters:
objClass - The Class of the object to be created.
Returns:
the XMLIOFactory corresponding to factoryId<\code>

getXMLIOProxy

public XMLIOProxy getXMLIOProxy(Class objClass)
Description copied from interface: XMLIORegistry
Get the appropriate XMLIOProxy to restore the object that wrote the xml node. The XMLIOProxy identification string is the node name. The identification string is assigned by the XMLIOManager by using the object's final part of the Class name.

Specified by:
getXMLIOProxy in interface XMLIORegistry
Parameters:
objClass - The Class of the object to be restored.
Returns:
The corresponding XMLIOProxy.

getClassId

public String getClassId(Class clName)
Description copied from interface: XMLIORegistry
Get the identification string corresponding to a Class.

Specified by:
getClassId in interface XMLIORegistry
Parameters:
clName - The Class.
Returns:
The identification String.

getIdClass

public Class getIdClass(String objName)
Description copied from interface: XMLIORegistry
Get the Class corresponding to an identification String.

Specified by:
getIdClass in interface XMLIORegistry
Parameters:
objName - The object's identification String.
Returns:
The corresponding Class.

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.