Bus

org.topcased.service.readxmiemf
Class ReadModelManager

java.lang.Object
  extended by org.topcased.service.readxmiemf.ReadModelManager

public class ReadModelManager
extends java.lang.Object

Drives the model. Acts as the model entry point.


Constructor Summary
ReadModelManager()
           
 
Method Summary
 EObject getModel(org.eclipse.core.runtime.IPath path)
          Gets the top level object.
 Resource getResource(org.eclipse.core.runtime.IPath path)
          Returns the resource containing the network.
 void load(org.eclipse.core.runtime.IPath path)
          Loads the content of the model from the file.
 void reload(org.eclipse.core.runtime.IPath path)
          Reloads 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

ReadModelManager

public ReadModelManager()
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

reload

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

Parameters:
path -
Throws:
java.io.IOException

getModel

public EObject getModel(org.eclipse.core.runtime.IPath path)
Gets the top level object.

Parameters:
path - the path where the model is stored
Returns:
the edited model

Bus

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