|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPackage
A package contains model elements and other packages.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sourceforge.nrl.parser.model.IModelElement |
---|
IModelElement.ElementType |
Method Summary | |
---|---|
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. |
Methods inherited from interface net.sourceforge.nrl.parser.model.IModelElement |
---|
getContainingPackage, getDescendants, getDocumentation, getElementType, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setUserData |
Method Detail |
---|
List<IModelElement> getContents(boolean deep)
deep
- if true, return the contents of subpackages
IModelElement 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 true
int getSize()
boolean isAmbiguous(String name)
name
- the element name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |