public abstract class ConstraintFacadeLogic extends ModelElementFacadeLogicImpl implements ConstraintFacade
ConstraintFacade
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Constraint |
metaObject
The underlying UML object
|
xmiHelper
contextRoot
Modifier | Constructor and Description |
---|---|
protected |
ConstraintFacadeLogic(Constraint metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Gets the 'body' or text of this constraint.
|
ModelElementFacade |
getContextElement()
Gets all constraints belonging to the model element.
|
String |
getTranslation(String language)
This constraint's translation for the argument languange.
|
protected abstract String |
handleGetBody() |
protected abstract Object |
handleGetContextElement()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetTranslation(String language)
Method to be implemented in descendants
This constraint's translation for the argument languange.
|
protected abstract boolean |
handleIsBodyExpression() |
protected abstract boolean |
handleIsDefinition() |
protected abstract boolean |
handleIsInvariant() |
protected abstract boolean |
handleIsPostCondition() |
protected abstract boolean |
handleIsPreCondition() |
boolean |
isBodyExpression()
True if this constraint denotes a body expression.
|
boolean |
isConstraintFacadeMetaType() |
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.
|
void |
resetMetafacadeContext(String context)
Reset context only for non-root metafacades
|
void |
validateInvariants(Collection<ModelValidationMessage> validationMessages) |
getArraySuffix, getValidationName, handleCopyTaggedValues, handleFindTaggedValue, handleFindTaggedValues, handleGetBindedFullyQualifiedName, handleGetConstraints, handleGetConstraints, handleGetDocumentation, handleGetDocumentation, handleGetDocumentation, handleGetFullyQualifiedName, handleGetFullyQualifiedName, handleGetFullyQualifiedNamePath, handleGetId, handleGetKeywords, handleGetLabel, handleGetLanguageMappings, handleGetModel, handleGetModelNamespace, handleGetName, handleGetPackage, handleGetPackageName, handleGetPackageName, handleGetPackagePath, handleGetQualifiedName, handleGetRootPackage, handleGetSourceDependencies, handleGetStateMachineContext, handleGetStereotypeNames, handleGetStereotypes, handleGetTaggedValues, handleGetTargetDependencies, handleGetTemplateParameter, handleGetTemplateParameters, handleGetVisibility, handleHasExactStereotype, handleHasKeyword, handleHasStereotype, handleIsBindingDependenciesPresent, handleIsConstraintsPresent, handleIsDocumentationPresent, handleIsReservedWord, handleIsTemplateParametersPresent, handleIsValidIdentifierName, handleTranslateConstraint, handleTranslateConstraints, handleTranslateConstraints, isAUml14Dependency
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, getVisibility, hasExactStereotype, hasKeyword, hasStereotype, isBindingDependenciesPresent, isConstraintsPresent, isDocumentationPresent, isModelElementFacadeMetaType, isReservedWord, isTemplateParametersPresent, isValidIdentifierName, toString, translateConstraint, translateConstraints, translateConstraints
compareTo, equals, getConfiguredProperty, getDebug, getMetafacadeContext, getMetaObject, getValidationOwner, hashCode, initialize, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
protected Constraint metaObject
Constraint
protected ConstraintFacadeLogic(Constraint metaObjectIn, String context)
metaObjectIn
- context
- public void resetMetafacadeContext(String context)
resetMetafacadeContext
in class ModelElementFacadeLogic
context
- public boolean isConstraintFacadeMetaType()
isConstraintFacadeMetaType
in interface ConstraintFacade
ConstraintFacade
protected abstract String handleGetBody()
ConstraintFacade.getBody()
public final String getBody()
getBody
in interface ConstraintFacade
protected abstract boolean handleIsInvariant()
ConstraintFacade.isInvariant()
public final boolean isInvariant()
context LivingAnimal inv: alive = trueFalse otherwise.
isInvariant
in interface ConstraintFacade
protected abstract boolean handleIsPreCondition()
ConstraintFacade.isPreCondition()
public final boolean isPreCondition()
context LivingAnimal::canFly() pre: hasWings = trueFalse otherwise.
isPreCondition
in interface ConstraintFacade
protected abstract boolean handleIsPostCondition()
ConstraintFacade.isPostCondition()
public final boolean isPostCondition()
context LivingAnimal::getNumberOfLegs() post: numberOfLegs >= 0False otherwise.
isPostCondition
in interface ConstraintFacade
protected abstract boolean handleIsDefinition()
ConstraintFacade.isDefinition()
public final boolean isDefinition()
context CustomerCard def: getTotalPoints(d: date) : Integer = transaction->select(date.isAfter(d)).points->sum()False otherwise.
isDefinition
in interface ConstraintFacade
protected abstract boolean handleIsBodyExpression()
ConstraintFacade.isBodyExpression()
public final boolean isBodyExpression()
context CustomerCard:getTransaction(from:Date, until:Date) body: transactions->select(date.isAfter(from) and date.isBefore(until))False otherwise.
isBodyExpression
in interface ConstraintFacade
protected abstract String handleGetTranslation(String language)
language
- public String getTranslation(String language)
getTranslation
in interface ConstraintFacade
language
- String
The target language to which the OCL constraint is to be translated.public final ModelElementFacade getContextElement()
getContextElement
in interface ConstraintFacade
protected abstract Object handleGetContextElement()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
validateInvariants
in interface ModelElementFacade
validateInvariants
in class ModelElementFacadeLogic
validationMessages
- CollectionModelElementFacadeLogic.validateInvariants(Collection validationMessages)
Copyright © 2003–2014 AndroMDA.org. All rights reserved.