public class ModelElement extends Object
ModelElements
Constructor and Description |
---|
ModelElement() |
Modifier and Type | Method and Description |
---|---|
void |
addType(Type type)
Adds the
type to the collection of types belonging to this model element. |
Collection<MetafacadeBase> |
getMetafacades()
Gets the metafacades that belong to this ModelElement instance.
|
String |
getStereotype()
Gets the stereotype of this modelElement.
|
Collection<Type> |
getTypes()
Gets all types associated with this model element.
|
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(Collection<MetafacadeBase> metafacades)
Sets the current metafacades that belong to this ModelElement instance.
|
void |
setStereotype(String stereotype)
Sets the stereotype of the ModelElement.
|
void |
setVariable(String variable)
Sets the variable name.
|
public ModelElement()
public String getStereotype()
public boolean hasStereotype()
true
or false
depending on whether or not this model element has a stereotype
defined.public Collection<Type> getTypes()
public boolean hasTypes()
true
or false
depending on whether or not this model element has any type
elements defined.public void setStereotype(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 Type
instance.public String getVariable()
public void setVariable(String variable)
variable
- The variable to set.public void setMetafacades(Collection<MetafacadeBase> metafacades)
metafacades
- the collection of metafacadespublic Collection<MetafacadeBase> getMetafacades()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.