public class ModelCollection extends Object implements IModelCollection
| Constructor and Description |
|---|
ModelCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addModelPackage(IPackage modelPackage)
Add a package to the collection
|
void |
clear()
Empty the collection.
|
IModelElement |
getElementByName(String name)
Do a deep search of model elements by name in all packages of all models.
|
IModelElement |
getElementByQualifiedName(String qualifiedName)
Get an element by its exact, qualified name (e.g.
|
IPackage |
getModelPackageByName(String name)
Return a model package by name.
|
IPackage[] |
getModelPackages()
Return all top-level packages in the collection.
|
boolean |
isAmbiguous(String name)
Returns true if a model element name is ambiguous because it occurs in
multiple packages within one model, or within multiple models.
|
int |
size()
Returns the number of models in the collection.
|
public void addModelPackage(IPackage modelPackage)
modelPackage - the packagepublic void clear()
public IModelElement getElementByName(String name)
IModelCollectiongetElementByName in interface IModelCollectionname - the namepublic IModelElement getElementByQualifiedName(String qualifiedName)
IModelCollectiongetElementByQualifiedName in interface IModelCollectionqualifiedName - the qualified namepublic IPackage getModelPackageByName(String name)
IModelCollectiongetModelPackageByName in interface IModelCollectionname - the namepublic IPackage[] getModelPackages()
IModelCollectiongetModelPackages in interface IModelCollectionpublic boolean isAmbiguous(String name)
IModelCollectionisAmbiguous in interface IModelCollectionname - the name to checkpublic int size()
IModelCollectionsize in interface IModelCollectionCopyright © 2006-2013. All Rights Reserved.