pl.edu.agh.cast.model.mapper.internal
Class XMLLoader
java.lang.Object
pl.edu.agh.cast.model.mapper.internal.AbstractLoader
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.