public interface IPackage extends IModelElement
IModelElement.ElementTypeOBJECT| Modifier and Type | Method and Description |
|---|---|
List<IModelElement> |
getContents(boolean deep)
Return the contents of this package, a collection of IModelElement
objects.
|
IModelElement |
getElementByName(String name,
boolean deep)
Scan a package and return the model element with a given name.
|
int |
getSize()
Return the number of elements and packages in the package
|
boolean |
isAmbiguous(String name)
Returns true if a model element name occurs in multiple sub-packages, and
hence a global reference to the name would be ambiguous.
|
getContainingPackage, getDescendants, getDocumentation, getElementType, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setUserDataList<IModelElement> getContents(boolean deep)
deep - if true, return the contents of subpackagesIModelElement getElementByName(String name, boolean deep)
Note: This returns the first element matching the name if a deep
search is used. Use isAmbiguous(String) to determine if multiple
elements with the name exist - and if so, look them up in the right
package instead.
name - the name to look fordeep - scan subpackages if trueint getSize()
boolean isAmbiguous(String name)
name - the element nameCopyright © 2006-2013. All Rights Reserved.