public abstract class ServiceOperationLogic extends OperationFacadeLogicImpl implements ServiceOperation
ServiceOperation
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Object |
metaObject
The underlying UML object
|
contextRoot
Modifier | Constructor and Description |
---|---|
protected |
ServiceOperationLogic(Object metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
Modifier and Type | Method and Description |
---|---|
Destination |
getIncomingDestination()
Reprsents an operation of a service.
|
Destination |
getOutgoingDestination()
Reprsents an operation of a service.
|
Collection<Role> |
getRoles()
Reprsents an operation of a service.
|
Service |
getService()
Reprsents an operation of a service.
|
protected abstract Object |
handleGetIncomingDestination()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Object |
handleGetOutgoingDestination()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection |
handleGetRoles()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Object |
handleGetService()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract boolean |
handleIsIncomingMessageOperation() |
protected abstract boolean |
handleIsMessageOperation() |
protected abstract boolean |
handleIsOutgoingMessageOperation() |
boolean |
isIncomingMessageOperation()
Whether or not this operation represents an "incoming" message operation (i.e.
|
boolean |
isMessageOperation()
Whether or not this is operation accepts incoming or outgoing messages.
|
boolean |
isOutgoingMessageOperation()
Whether or not this service operation represents an "outgoing" messaging operation (i.e.
|
boolean |
isServiceOperationMetaType() |
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 ServiceOperationLogic(Object metaObjectIn, String context)
metaObjectIn
- context
- public void resetMetafacadeContext(String context)
resetMetafacadeContext
in class OperationFacadeLogic
context
- public boolean isServiceOperationMetaType()
isServiceOperationMetaType
in interface ServiceOperation
ServiceOperation
protected abstract boolean handleIsIncomingMessageOperation()
ServiceOperation.isIncomingMessageOperation()
public final boolean isIncomingMessageOperation()
isIncomingMessageOperation
in interface ServiceOperation
protected abstract boolean handleIsOutgoingMessageOperation()
ServiceOperation.isOutgoingMessageOperation()
public final boolean isOutgoingMessageOperation()
isOutgoingMessageOperation
in interface ServiceOperation
protected abstract boolean handleIsMessageOperation()
ServiceOperation.isMessageOperation()
public final boolean isMessageOperation()
isMessageOperation
in interface ServiceOperation
public final Collection<Role> getRoles()
getRoles
in interface ServiceOperation
protected abstract Collection handleGetRoles()
public final Service getService()
getService
in interface ServiceOperation
protected abstract Object handleGetService()
public final Destination getOutgoingDestination()
getOutgoingDestination
in interface ServiceOperation
protected abstract Object handleGetOutgoingDestination()
public final Destination getIncomingDestination()
getIncomingDestination
in interface ServiceOperation
protected abstract Object handleGetIncomingDestination()
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.