|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.nrl.parser.model.ModelCollection
public class ModelCollection
Constructor Summary | |
---|---|
ModelCollection()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelCollection()
Method Detail |
---|
public void addModelPackage(IPackage modelPackage)
modelPackage
- the packagepublic void clear()
public IModelElement getElementByName(String name)
IModelCollection
getElementByName
in interface IModelCollection
name
- the name
public IModelElement getElementByQualifiedName(String qualifiedName)
IModelCollection
getElementByQualifiedName
in interface IModelCollection
qualifiedName
- the qualified name
public IPackage getModelPackageByName(String name)
IModelCollection
getModelPackageByName
in interface IModelCollection
name
- the name
public IPackage[] getModelPackages()
IModelCollection
getModelPackages
in interface IModelCollection
public boolean isAmbiguous(String name)
IModelCollection
isAmbiguous
in interface IModelCollection
name
- the name to check
public int size()
IModelCollection
size
in interface IModelCollection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |