public interface ConstraintFacade extends ModelElementFacade
Modifier and Type | Method and Description |
---|---|
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.
|
copyTaggedValues, findTaggedValue, findTaggedValues, getBindedFullyQualifiedName, getConstraints, getConstraints, getDocumentation, getDocumentation, getDocumentation, getFullyQualifiedName, getFullyQualifiedName, getFullyQualifiedNamePath, getId, getKeywords, getLabel, getLanguageMappings, getModel, getName, getPackage, getPackageName, getPackageName, getPackagePath, getQualifiedName, getRootPackage, getSourceDependencies, getStateMachineContext, getStereotypeNames, getStereotypes, getTaggedValues, getTargetDependencies, getTemplateParameter, getTemplateParameters, getValidationName, getValidationOwner, getVisibility, hasExactStereotype, hasKeyword, hasStereotype, initialize, isBindingDependenciesPresent, isConstraintsPresent, isDocumentationPresent, isModelElementFacadeMetaType, isReservedWord, isTemplateParametersPresent, isValidIdentifierName, translateConstraint, translateConstraints, translateConstraints, validateInvariants
boolean isConstraintFacadeMetaType()
true
ModelElementFacade getContextElement()
String getTranslation(String language)
language
- Stringboolean isBodyExpression()
context CustomerCard:getTransaction(from:Date, until:Date) body: transactions->select(date.isAfter(from) and date.isBefore(until))False otherwise.
boolean isDefinition()
context CustomerCard def: getTotalPoints(d: date) : Integer = transaction->select(date.isAfter(d)).points->sum()False otherwise.
boolean isInvariant()
context LivingAnimal inv: alive = trueFalse otherwise.
boolean isPostCondition()
context LivingAnimal::getNumberOfLegs() post: numberOfLegs >= 0False otherwise.
boolean isPreCondition()
context LivingAnimal::canFly() pre: hasWings = trueFalse otherwise.
Copyright © 2003–2014 AndroMDA.org. All rights reserved.