|
||||||||||
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)
Deprecated. Use the IModelLoader interface to load models. |
IPackage |
load(org.eclipse.emf.ecore.resource.Resource res)
Load a UML2 model out of an already initialised resource. |
IPackage |
load(org.eclipse.emf.ecore.resource.Resource res,
File file)
Deprecated. Use the IModelLoader interface to load models. |
IPackage |
loadFromInitialisedResource(org.eclipse.emf.ecore.resource.Resource res,
String fileName)
Deprecated. Use the IModelLoader interface to load models, or
#load(Resource, Map) if you must. |
protected void |
traverse(org.eclipse.uml2.uml.Classifier umlClassifier,
UML2Package current,
boolean setAsSupplementary)
Traverse a classifier, store its generalizations and attributes |
protected void |
traverse(org.eclipse.uml2.uml.DataType umlDataType,
UML2Package current,
boolean setAsSupplementary)
Traverse a data type |
protected void |
traverse(org.eclipse.uml2.uml.Enumeration umlEnumeration,
UML2Package current,
boolean setAsSupplementary)
Traverse a classifier, store its generalizations and attributes |
protected void |
traverse(org.eclipse.uml2.uml.Package umlPackage,
UML2Package current,
boolean setAsSupplementary,
List<org.eclipse.uml2.uml.Association> associations)
Traverse a package and store all its classifier members |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UML2ModelLoader()
Method Detail |
---|
public List<String> getWarnings()
@Deprecated public IPackage load(File file) throws Exception
IModelLoader
interface to load models.
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
@Deprecated public IPackage load(org.eclipse.emf.ecore.resource.Resource res, File file) throws Exception
IModelLoader
interface to load models.
Exception
@Deprecated public IPackage loadFromInitialisedResource(org.eclipse.emf.ecore.resource.Resource res, String fileName) throws Exception
IModelLoader
interface to load models, or
#load(Resource, Map)
if you must.
res
- the resourcefileName
- the file name, for error reporting purposes
Exception
public IPackage load(org.eclipse.emf.ecore.resource.Resource res) throws Exception
res
- the resource
Exception
protected void traverse(org.eclipse.uml2.uml.Package umlPackage, UML2Package current, boolean setAsSupplementary, List<org.eclipse.uml2.uml.Association> associations)
umlPackage
- packagecurrent
- the current package to add toprotected void traverse(org.eclipse.uml2.uml.Classifier umlClassifier, UML2Package current, boolean setAsSupplementary)
umlClassifier
- the classifiercurrent
- the package to add toprotected void traverse(org.eclipse.uml2.uml.Enumeration umlEnumeration, UML2Package current, boolean setAsSupplementary)
umlEnumeration
- the classifiercurrent
- the package to add toprotected void traverse(org.eclipse.uml2.uml.DataType umlDataType, UML2Package current, boolean setAsSupplementary)
umlDataType
- the data typecurrent
- the package to add to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |