|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.cartridge.template.ModelElement
public class ModelElement
Represents a single template <modelElement/> nested within the <modelElements/> element. It stores the actual metafacade instances which match the model element criteria (i.e. stereotype, type, etc) defined by this instance.
ModelElements| Constructor Summary | |
|---|---|
ModelElement()
|
|
| Method Summary | |
|---|---|
void |
addType(Type type)
Adds the type to the collection of types belonging to this model element. |
java.util.Collection |
getMetafacades()
Gets the metafacades that belong to this ModelElement instance. |
java.lang.String |
getStereotype()
Gets the stereotype of this modelElement. |
java.util.Collection |
getTypes()
Gets all types associated with this model element. |
java.lang.String |
getVariable()
Gets the variable stereotype of this modelElement (this is what is made available to a template during processing). |
boolean |
hasStereotype()
Returns true or false depending on whether or not this model element has a stereotype
defined. |
boolean |
hasTypes()
Returns true or false depending on whether or not this model element has any type
elements defined. |
void |
setMetafacades(java.util.Collection metafacades)
Sets the current metafacades that belong to this ModelElement instance. |
void |
setStereotype(java.lang.String stereotype)
Sets the stereotype of the ModelElement. |
void |
setVariable(java.lang.String variable)
Sets the variable name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelElement()
| Method Detail |
|---|
public java.lang.String getStereotype()
public boolean hasStereotype()
true or false depending on whether or not this model element has a stereotype
defined.
public java.util.Collection getTypes()
public boolean hasTypes()
true or false depending on whether or not this model element has any type
elements defined.
public void setStereotype(java.lang.String stereotype)
stereotype - The stereotype to set.public void addType(Type type)
type to the collection of types belonging to this model element.
type - the Typeinstance.public java.lang.String getVariable()
public void setVariable(java.lang.String variable)
variable - The variable to set.public void setMetafacades(java.util.Collection metafacades)
metafacades - the collection of metafacdespublic java.util.Collection getMetafacades()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||