|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModel
The IModel interface defines a model managed by any framework.
| Method Summary | |
|---|---|
java.util.Set<? extends java.lang.Object> |
getElementsByType(java.lang.Object metaElement)
Returns a Set of the elements matching the given type. |
ModelFactory |
getModelFactory()
Returns the ModelFactory used to create the current model. |
IReferenceModel |
getReferenceModel()
Returns the IReferenceModel (i.e. the metamodel). |
boolean |
isModelOf(java.lang.Object object)
Returns true if the given object is contained in this model's resource or a referenced resource. |
boolean |
isTarget()
Defines if the model is readonly or not. |
java.lang.Object |
newElement(java.lang.Object metaElement)
Creates a new element in the model. |
void |
setIsTarget(boolean value)
Sets if the model is readonly or not. |
| Method Detail |
|---|
java.lang.Object newElement(java.lang.Object metaElement)
metaElement - the new element metatype
IReferenceModel getReferenceModel()
IReferenceModel (i.e. the metamodel).
IReferenceModeljava.util.Set<? extends java.lang.Object> getElementsByType(java.lang.Object metaElement)
Set of the elements matching the given type.
metaElement - a metatype
Set of the elements matching the given typeboolean isTarget()
void setIsTarget(boolean value)
value - true if the model allows writingModelFactory getModelFactory()
boolean isModelOf(java.lang.Object object)
object - the model element
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||