Generators

org.topcased.generator.util
Class ConfiguratorObjectManager

java.lang.Object
  extended by org.topcased.generator.util.ConfiguratorObjectManager

public class ConfiguratorObjectManager
extends java.lang.Object

This class is used to retrieve the root model object of a configurator file (an EMF model) Creation 19 déc. 06


Constructor Summary
ConfiguratorObjectManager()
           
 
Method Summary
 Resource getResource(org.eclipse.core.runtime.IPath path)
          Returns the resource containing the network.
 EObject getRootModelObject()
          Gets the top level object.
 void load(org.eclipse.core.runtime.IPath path)
          Loads the content of the model from the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguratorObjectManager

public ConfiguratorObjectManager()
Method Detail

getResource

public Resource getResource(org.eclipse.core.runtime.IPath path)
Returns the resource containing the network. Uses lazy initialization.

Parameters:
path -
Returns:
the associated resource

load

public void load(org.eclipse.core.runtime.IPath path)
          throws java.io.IOException
Loads the content of the model from the file.

Parameters:
path -
Throws:
java.io.IOException

getRootModelObject

public EObject getRootModelObject()
Gets the top level object.

Returns:
the rootModelObject

Generators

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.