org.objectweb.fractal.adl.xml
Class XMLLoader

java.lang.Object
  extended byorg.objectweb.fractal.adl.xml.XMLLoader
All Implemented Interfaces:
Loader

public class XMLLoader
extends Object
implements Loader

A Loader that loads definitions from XML files.


Constructor Summary
XMLLoader()
           
XMLLoader(boolean validate)
           
 
Method Summary
 Definition load(String name, Map context)
          Loads the ADL definition whose name is given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLLoader

public XMLLoader()

XMLLoader

public XMLLoader(boolean validate)
Method Detail

load

public Definition load(String name,
                       Map context)
                throws ADLException
Description copied from interface: Loader
Loads the ADL definition whose name is given.

Specified by:
load in interface Loader
Parameters:
name - the name of an ADL definition.
context - optional additional information.
Returns:
the ADL definition whose name is given.
Throws:
ADLException - if the definition cannot be found, or if it contains errors.