org.ocltf.test
Class ModelLoader

java.lang.Object
  extended byorg.ocltf.test.ModelLoader

public class ModelLoader
extends java.lang.Object

Models are required for OCL translation. This class loads a models so that translation tests may be performed during development of a translation-library.


Constructor Summary
ModelLoader()
           
 
Method Summary
 ModelFacade getModel()
          Tests loading and retrieving the model from the repository.
protected  ModelFacade getModelFacade()
          Gets the ModelFacade implementation to use.
protected  Repository getRepository()
          Gets the Repository implementation to use.
static ModelLoader instance()
          Returns the shared instance of this ModelLoader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelLoader

public ModelLoader()
Method Detail

instance

public static ModelLoader instance()
Returns the shared instance of this ModelLoader.

Returns:
ModelLoader the shared instance.

getModel

public ModelFacade getModel()
Tests loading and retrieving the model from the repository.

Returns:
ModelFacade the facade of the loaded model

getModelFacade

protected ModelFacade getModelFacade()
Gets the ModelFacade implementation to use. Defaults to the implementation specified in the RespositoryConfiguration if one isn't specified

Returns:
ModelFacade the ModelFacade instance.

getRepository

protected Repository getRepository()
Gets the Repository implementation to use. Defaults to the implementation specified in the RespositoryConfiguration if one isn't specified

Returns:
Repository the Repository instance.
Throws:
java.lang.Exception


Copyright © 2003-2004 Chad Brandon. All Rights Reserved.