|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Metafacade interface to be used by AndroMDA cartridges.
| Method Summary | |
String |
getBody()
Gets the 'body' or text of this constraint. |
ModelElementFacade |
getContextElement()
Gets the model element to which the constraint applies (i.e. |
String |
getTranslation(String language)
This constraint's translation for the argument languange. |
boolean |
isBodyExpression()
True if this constraint denotes a body expression. |
boolean |
isConstraintFacadeMetaType()
Indicates the metafacade type (used for metafacade mappings). |
boolean |
isDefinition()
True if this constraint denotes a definition. |
boolean |
isInvariant()
True if this constraint denotes an invariant. |
boolean |
isPostCondition()
True if this constraint denotes a postcondition. |
boolean |
isPreCondition()
True if this constraint denotes a precondition. |
| Method Detail |
public boolean isConstraintFacadeMetaType()
truepublic String getBody()
Gets the 'body' or text of this constraint.
public ModelElementFacade getContextElement()
Gets the model element to which the constraint applies (i.e. is the context of).
public String getTranslation(String language)
This constraint's translation for the argument languange.
public boolean isBodyExpression()
True if this constraint denotes a body expression.
For example:
context CustomerCard:getTransaction(from:Date, until:Date)
body: transactions->select(date.isAfter(from) and date.isBefore(until))
False otherwise.
public boolean isDefinition()
True if this constraint denotes a definition.
For example:
context CustomerCard
def: getTotalPoints(d: date) : Integer = transaction->select(date.isAfter(d)).points->sum()
False otherwise.
public boolean isInvariant()
True if this constraint denotes an invariant.
For example:
context LivingAnimal
inv: alive = true
False otherwise.
public boolean isPostCondition()
True if this constraint denotes a postcondition.
For example:
context LivingAnimal::getNumberOfLegs()
post: numberOfLegs >= 0
False otherwise.
public boolean isPreCondition()
True if this constraint denotes a precondition.
For example:
context LivingAnimal::canFly()
pre: hasWings = true
False otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||