public abstract class EntityQueryOperationLogic extends OperationFacadeLogicImpl implements EntityQueryOperation
EntityQueryOperation
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Object |
metaObject
The underlying UML object
|
contextRoot
Modifier | Constructor and Description |
---|---|
protected |
EntityQueryOperationLogic(Object metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
Modifier and Type | Method and Description |
---|---|
String |
getQuery(String translation)
The query string for this EntityFinderMethod.
|
protected abstract String |
handleGetQuery(String translation)
Method to be implemented in descendants
The query string for this EntityFinderMethod.
|
boolean |
isEntityQueryOperationMetaType() |
void |
resetMetafacadeContext(String context)
Reset context only for non-root metafacades
|
void |
validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::OperationFacade::operation needs a return type
|
getValidationOwner, handleFindParameter, handleFindTaggedValue, handleGetArgumentNames, handleGetArguments, handleGetArgumentTypeNames, handleGetCall, handleGetConcurrency, handleGetExceptionList, handleGetExceptionList, handleGetExceptions, handleGetGetterSetterReturnTypeName, handleGetLower, handleGetMethodBody, handleGetName, handleGetOverriddenOperation, handleGetOwner, handleGetParameters, handleGetPostconditionName, handleGetPostconditions, handleGetPreconditionCall, handleGetPreconditionName, handleGetPreconditions, handleGetPreconditionSignature, handleGetReturnParameter, handleGetReturnType, handleGetSignature, handleGetSignature, handleGetSignature, handleGetTypedArgumentList, handleGetTypedArgumentList, handleGetUpper, handleIsAbstract, handleIsExceptionsPresent, handleIsLeaf, handleIsMany, handleIsOrdered, handleIsOverriding, handleIsPostconditionsPresent, handleIsPreconditionsPresent, handleIsQuery, handleIsReturnTypePresent, handleIsStatic, handleIsUnique
findParameter, findTaggedValue, getArgumentNames, getArguments, getArgumentTypeNames, getCall, getConcurrency, getExceptionList, getExceptionList, getExceptions, getGetterSetterReturnTypeName, getLower, getMethodBody, getOverriddenOperation, getOwner, getParameters, getPostconditionName, getPostconditions, getPreconditionCall, getPreconditionName, getPreconditions, getPreconditionSignature, getReturnParameter, getReturnType, getSignature, getSignature, getSignature, getTypedArgumentList, getTypedArgumentList, getUpper, isAbstract, isExceptionsPresent, isLeaf, isMany, isOperationFacadeMetaType, isOrdered, isOverriding, isPostconditionsPresent, isPreconditionsPresent, isQuery, isReturnTypePresent, isStatic, isUnique
getArraySuffix, getValidationName, handleCopyTaggedValues, handleFindTaggedValue, handleFindTaggedValues, handleGetBindedFullyQualifiedName, handleGetConstraints, handleGetConstraints, handleGetDocumentation, handleGetDocumentation, handleGetDocumentation, handleGetFullyQualifiedName, handleGetFullyQualifiedName, handleGetFullyQualifiedNamePath, handleGetId, handleGetKeywords, handleGetLabel, handleGetLanguageMappings, handleGetModel, handleGetOwnedElements, 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
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, hashCode, initialize, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findParameter, findTaggedValue, getArgumentNames, getArguments, getArgumentTypeNames, getCall, getConcurrency, getExceptionList, getExceptionList, getExceptions, getGetterSetterReturnTypeName, getLower, getMethodBody, getOverriddenOperation, getOwner, getParameters, getPostconditionName, getPostconditions, getPreconditionCall, getPreconditionName, getPreconditions, getPreconditionSignature, getReturnParameter, getReturnType, getSignature, getSignature, getSignature, getTypedArgumentList, getTypedArgumentList, getUpper, isAbstract, isExceptionsPresent, isLeaf, isMany, isOperationFacadeMetaType, isOrdered, isOverriding, isPostconditionsPresent, isPreconditionsPresent, isQuery, isReturnTypePresent, isStatic, isUnique
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 Object metaObject
Object
protected EntityQueryOperationLogic(Object metaObjectIn, String context)
metaObjectIn
- context
- public void resetMetafacadeContext(String context)
resetMetafacadeContext
in class OperationFacadeLogic
context
- public boolean isEntityQueryOperationMetaType()
isEntityQueryOperationMetaType
in interface EntityQueryOperation
EntityQueryOperation
protected abstract String handleGetQuery(String translation)
translation
- public String getQuery(String translation)
getQuery
in interface EntityQueryOperation
translation
- String
TODO: Model Documentation for
EntityQueryOperation.getQuery(translation)public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
OperationFacadeLogic
Constraint: org::andromda::metafacades::uml::OperationFacade::operation needs a return type
Error: Each operation needs a return type, you cannot leave the type unspecified, even if you want void you'll need to explicitly specify it.
OCL: context OperationFacade inv: returnType.name->notEmpty()
Constraint: org::andromda::metafacades::uml::OperationFacade::operation must have a name
Error: Each operation must have a non-empty name.
OCL: context OperationFacade inv: name -> notEmpty()
Constraint: org::andromda::metafacades::uml::OperationFacade::primitive operation return cannot be used in a Collection
Error: Primitive return parameters cannot be used in Collections (multiplicity > 1). Use the wrapped type or Array type instead.
OCL: context OperationFacade inv: returnParameter.type.primitive implies (many = false)
Constraint: org::andromda::metafacades::uml::OperationFacade::wrapped primitive operation return should not be required
Error: Wrapped primitive operation return must have a multiplicity lower bound = 0 (must be optional). Use the unwrapped type, or change the multiplicity.
OCL: context OperationFacade inv: returnParameter.type.wrappedPrimitive and many = false implies (lower = 0)
Constraint: org::andromda::metafacades::uml::OperationFacade::primitive operation return must be required
Error: Primitive operation return types must have a multiplicity lower bound > 0 (must be required). Use a wrapped type, or change the multiplicity.
OCL: context OperationFacade inv: returnParameter.type.primitive implies (lower > 0)
Constraint: org::andromda::metafacades::uml::OperationFacade::operation multiplicity must match return parameter multiplicity
Error: Operation return parameter with multiplicity greater than 1 must match the operation multiplicity greater than 1.
OCL: context OperationFacade inv: many implies (returnParameter.many)
validateInvariants
in interface ModelElementFacade
validateInvariants
in class OperationFacadeLogic
validationMessages
- CollectionOperationFacadeLogic.validateInvariants(Collection validationMessages)
Copyright © 2003–2014 AndroMDA.org. All rights reserved.