public interface IModel extends IModelData
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Shall be called at the end of the lifetime of the model in order
to clean up references such as listeners.
|
ModelImport<?> |
getImport(int index)
Returns the model import specified by
index. |
int |
getImportsCount()
Returns the number of imports.
|
IndentationConfiguration |
getIndentationConfiguration()
Returns the indentation configuration for this model.
|
java.lang.String |
getName()
Returns the name of the model element.
|
IRestrictionEvaluationContext |
getRestrictionEvaluationContext()
Returns the context for evaluating import / conflict restrictions.
|
ModelImport<?> |
getSuper()
Returns the reference to the super model (if it exists).
|
Version |
getVersion()
Returns the version of this model.
|
void |
setVersion(Version version)
Changes the version of this model.
|
void setVersion(Version version)
version - Version to setVersion getVersion()
getVersion in interface IModelDatanull if no version is specified for this model.java.lang.String getName()
getName in interface IModelDataint getImportsCount()
ModelImport<?> getImport(int index)
index.index - a 0-based index specifying the import to be returnedjava.lang.IndexOutOfBoundsException - if
index<0 || index>=getImportsCount()ModelImport<?> getSuper()
IndentationConfiguration getIndentationConfiguration()
void dispose()
IRestrictionEvaluationContext getRestrictionEvaluationContext()
Copyright © 2009 - 2018 SSE. All Rights Reserved.