|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nrl.parser.model.uml2.UML2ModelLoader
public class UML2ModelLoader
A model loader that uses the UML2 and EMF classes to populate an NRL model.
| Constructor Summary | |
|---|---|
UML2ModelLoader()
|
|
| Method Summary | |
|---|---|
List<String> |
getWarnings()
Return the list of warning strings created during the last load operation. |
IPackage |
load(File file)
Load a model contained in the specified file. |
IPackage |
load(org.eclipse.emf.ecore.resource.Resource res,
File file)
Internal function to load using an ECore resource. |
IPackage |
loadFromInitialisedResource(org.eclipse.emf.ecore.resource.Resource res,
String fileName)
Load a UML2 model out of an already initialised resource. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UML2ModelLoader()
| Method Detail |
|---|
public List<String> getWarnings()
public IPackage load(File file)
throws Exception
The method currently also ignores all ClassNotFoundException and PackageNotFoundException errors, to ignore problems where a profile is not found.
file - the file to load
Exception
public IPackage load(org.eclipse.emf.ecore.resource.Resource res,
File file)
throws Exception
Exception
public IPackage loadFromInitialisedResource(org.eclipse.emf.ecore.resource.Resource res,
String fileName)
throws Exception
res - the resourcefileName - the file name, for error reporting purposes
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||