pl.edu.agh.cast.model.mapper.internal
Class XMLLoader

java.lang.Object
  extended by pl.edu.agh.cast.model.mapper.internal.AbstractLoader
      extended by pl.edu.agh.cast.model.mapper.internal.XMLLoader
All Implemented Interfaces:
Loader

public class XMLLoader
extends AbstractLoader

Limited version of model loader - allows only loading of DataSets and Models. If the data set is to be loaded, the conditions map must contain the id of the data set. If the model is to be loaded, conditions are discarded.

Author:
AGH CAST Team

Field Summary
 
Fields inherited from class pl.edu.agh.cast.model.mapper.internal.AbstractLoader
conditions, klass, log, objectCache, typeMap
 
Constructor Summary
XMLLoader(Map<Node,Mappable> cache, Class klass, Map<String,Class> typeMap, SortedMap<String,Object> conditions, org.eclipse.core.resources.IProject project)
          Parameterized constructor.
 
Method Summary
 List<Mappable> find()
          Load mapped objects from the data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLLoader

public XMLLoader(Map<Node,Mappable> cache,
                 Class klass,
                 Map<String,Class> typeMap,
                 SortedMap<String,Object> conditions,
                 org.eclipse.core.resources.IProject project)
Parameterized constructor.

Parameters:
cache - The object cache.
klass - The class of the objects to load.
typeMap - The type map.
conditions - The conditions the objects have to satisfy to be loaded.
project - The project which the objects belongs to.
Method Detail

find

public List<Mappable> find()
Load mapped objects from the data source.

Returns:
list of objects
See Also:
Loader.find()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.