org.objectweb.fractal.adl
Interface Loader

All Known Implementing Classes:
BasicLoader, DelegatingLoader, SimpleADLLoader

public interface Loader

A component interface to load type and template definitions.


Method Summary
 XMLElement loadTemplateDescriptor(String name)
          Loads the template definition whose name is given.
 XMLElement loadTypeDescriptor(String name)
          Loads the type definition whose name is given.
 

Method Detail

loadTypeDescriptor

public XMLElement loadTypeDescriptor(String name)
                              throws ParserException
Loads the type definition whose name is given. Depending on the implementation, this method can return or not a different object when it is called several times with the same argument.

Parameters:
name - the name of a component type.
Returns:
the XML element corresponding to the type definition whose name is given. This XML element must not be modified.
Throws:
ParserException - if the type definition can not be found or is invalid.

loadTemplateDescriptor

public XMLElement loadTemplateDescriptor(String name)
                                  throws ParserException
Loads the template definition whose name is given. Depending on the implementation, this method can return or not a different object when it is called several times with the same argument.

Parameters:
name - the name of a component template.
Returns:
the XML element corresponding to the component template whose name is given. This XML element must not be modified.
Throws:
ParserException - if the component template can not be found or is invalid.