public abstract class ConstraintFacadeLogic extends ModelElementFacadeLogicImpl implements ConstraintFacade
ConstraintFacade,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected org.omg.uml.foundation.core.Constraint |
metaObject
The underlying UML object
|
contextRoot| Modifier | Constructor and Description |
|---|---|
protected |
ConstraintFacadeLogic(org.omg.uml.foundation.core.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, handleGetName, handleGetOwnedElements, handleGetOwner, 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, handleTranslateConstraintscopyTaggedValues, 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, translateConstraintscompareTo, equals, getConfiguredProperty, getDebug, getMetafacadeContext, getMetaObject, getValidationOwner, hashCode, initialize, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopyTaggedValues, 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, translateConstraintsprotected org.omg.uml.foundation.core.Constraint metaObject
Constraintprotected ConstraintFacadeLogic(org.omg.uml.foundation.core.Constraint metaObjectIn, String context)
metaObjectIn - context - public void resetMetafacadeContext(String context)
resetMetafacadeContext in class ModelElementFacadeLogiccontext - public boolean isConstraintFacadeMetaType()
isConstraintFacadeMetaType in interface ConstraintFacadeConstraintFacadeprotected abstract String handleGetBody()
ConstraintFacade.getBody()public final String getBody()
getBody in interface ConstraintFacadeprotected abstract boolean handleIsInvariant()
ConstraintFacade.isInvariant()public final boolean isInvariant()
context LivingAnimal inv: alive = trueFalse otherwise.
isInvariant in interface ConstraintFacadeprotected abstract boolean handleIsPreCondition()
ConstraintFacade.isPreCondition()public final boolean isPreCondition()
context LivingAnimal::canFly() pre: hasWings = trueFalse otherwise.
isPreCondition in interface ConstraintFacadeprotected abstract boolean handleIsPostCondition()
ConstraintFacade.isPostCondition()public final boolean isPostCondition()
context LivingAnimal::getNumberOfLegs() post: numberOfLegs >= 0False otherwise.
isPostCondition in interface ConstraintFacadeprotected 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 ConstraintFacadeprotected 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 ConstraintFacadeprotected abstract String handleGetTranslation(String language)
language - public String getTranslation(String language)
getTranslation in interface ConstraintFacadelanguage - String
The target language to which the OCL constraint is to be translated.public final ModelElementFacade getContextElement()
getContextElement in interface ConstraintFacadeprotected abstract Object handleGetContextElement()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
validateInvariants in interface ModelElementFacadevalidateInvariants in class ModelElementFacadeLogicvalidationMessages - CollectionModelElementFacadeLogic.validateInvariants(Collection validationMessages)Copyright © 2003–2014 AndroMDA.org. All rights reserved.