public abstract class ParameterFacadeLogic extends ModelElementFacadeLogicImpl implements ParameterFacade
ParameterFacade,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected org.omg.uml.foundation.core.Parameter |
metaObject
The underlying UML object
|
contextRoot| Modifier | Constructor and Description |
|---|---|
protected |
ParameterFacadeLogic(org.omg.uml.foundation.core.Parameter metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue()
TODO: Model Documentation for ParameterFacade.defaultValue
|
String |
getEffect()
UML2: A representation of the literals of the enumeration 'Parameter Effect Kind': CREATE,
READ, UPDATE, DELETE.
|
EventFacade |
getEvent()
The parameters to this event.
|
String |
getGetterName()
The name to use for accessors getting this parameter from a bean.
|
String |
getGetterSetterTypeName()
Fully Qualified TypeName, determined in part by multiplicity (for UML2).
|
String |
getGetterSetterTypeNameImpl()
Fully Qualified implementation class of TypeName, determined in part by multiplicity (for
UML2).
|
int |
getLower()
the lower value for the multiplicity
-only applicable for UML2
|
OperationFacade |
getOperation()
Return all parameters for the operation, including the return parameter.
|
String |
getSetterName()
The name to use for accessors getting this parameter in a bean.
|
ClassifierFacade |
getType()
Specification of an argument used to pass information into or out of an invocation of a
behavioral
feature.
|
int |
getUpper()
the upper value of the multiplicity (will be -1 for *)
-only applicable for UML2
|
protected abstract String |
handleGetDefaultValue() |
protected abstract String |
handleGetEffect() |
protected abstract Object |
handleGetEvent()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetGetterName() |
protected abstract String |
handleGetGetterSetterTypeName() |
protected abstract String |
handleGetGetterSetterTypeNameImpl() |
protected abstract int |
handleGetLower() |
protected abstract Object |
handleGetOperation()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetSetterName() |
protected abstract Object |
handleGetType()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract int |
handleGetUpper() |
protected abstract boolean |
handleIsDefaultValuePresent() |
protected abstract boolean |
handleIsException() |
protected abstract boolean |
handleIsInoutParameter() |
protected abstract boolean |
handleIsInParameter() |
protected abstract boolean |
handleIsMany() |
protected abstract boolean |
handleIsOrdered() |
protected abstract boolean |
handleIsOutParameter() |
protected abstract boolean |
handleIsReadable() |
protected abstract boolean |
handleIsRequired() |
protected abstract boolean |
handleIsReturn() |
protected abstract boolean |
handleIsUnique() |
protected abstract boolean |
handleIsWritable() |
boolean |
isDefaultValuePresent()
Indicates if the default value is present.
|
boolean |
isException()
UML2: Returns the value of the 'Is Exception' attribute.
|
boolean |
isInoutParameter()
True if this parameter is an inout parameter.
|
boolean |
isInParameter()
True if this parameter is an 'in' parameter.
|
boolean |
isMany()
If upper>1 or upper==unlimited.
|
boolean |
isOrdered()
UML2 Only: Is parameter ordered within the Collection type.
|
boolean |
isOutParameter()
True if this parameter is an 'out' parameter.
|
boolean |
isParameterFacadeMetaType() |
boolean |
isReadable()
True if this parameter is readable, aka an in-parameter, or this feature is unspecified.
|
boolean |
isRequired()
Whether or not this parameter is considered required (i.e must a non-empty value).
|
boolean |
isReturn()
Whether or not this parameter represents a return parameter.
|
boolean |
isUnique()
If Parameter type isMany (UML2), is the parameter unique within the Collection.
|
boolean |
isWritable()
True if this parameter is writable, aka an out-parameter, or this feature is unspecified.
|
void |
resetMetafacadeContext(String context)
Reset context only for non-root metafacades
|
void |
validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::ParameterFacade::parameter needs a type
|
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.Parameter metaObject
Parameterprotected ParameterFacadeLogic(org.omg.uml.foundation.core.Parameter metaObjectIn, String context)
metaObjectIn - context - public void resetMetafacadeContext(String context)
resetMetafacadeContext in class ModelElementFacadeLogiccontext - public boolean isParameterFacadeMetaType()
isParameterFacadeMetaType in interface ParameterFacadeParameterFacadeprotected abstract String handleGetDefaultValue()
ParameterFacade.getDefaultValue()public final String getDefaultValue()
getDefaultValue in interface ParameterFacadeprotected abstract boolean handleIsDefaultValuePresent()
ParameterFacade.isDefaultValuePresent()public final boolean isDefaultValuePresent()
isDefaultValuePresent in interface ParameterFacadeprotected abstract String handleGetGetterName()
ParameterFacade.getGetterName()public final String getGetterName()
getGetterName in interface ParameterFacadeprotected abstract String handleGetGetterSetterTypeName()
ParameterFacade.getGetterSetterTypeName()public final String getGetterSetterTypeName()
getGetterSetterTypeName in interface ParameterFacadeprotected abstract String handleGetGetterSetterTypeNameImpl()
ParameterFacade.getGetterSetterTypeNameImpl()public final String getGetterSetterTypeNameImpl()
getGetterSetterTypeNameImpl in interface ParameterFacadeprotected abstract boolean handleIsRequired()
ParameterFacade.isRequired()public final boolean isRequired()
isRequired in interface ParameterFacadeprotected abstract boolean handleIsReturn()
ParameterFacade.isReturn()public final boolean isReturn()
isReturn in interface ParameterFacadeprotected abstract String handleGetSetterName()
ParameterFacade.getSetterName()public final String getSetterName()
getSetterName in interface ParameterFacadeprotected abstract boolean handleIsReadable()
ParameterFacade.isReadable()public final boolean isReadable()
isReadable in interface ParameterFacadeprotected abstract boolean handleIsWritable()
ParameterFacade.isWritable()public final boolean isWritable()
isWritable in interface ParameterFacadeprotected abstract boolean handleIsInParameter()
ParameterFacade.isInParameter()public final boolean isInParameter()
isInParameter in interface ParameterFacadeprotected abstract boolean handleIsOutParameter()
ParameterFacade.isOutParameter()public final boolean isOutParameter()
isOutParameter in interface ParameterFacadeprotected abstract boolean handleIsInoutParameter()
ParameterFacade.isInoutParameter()public final boolean isInoutParameter()
isInoutParameter in interface ParameterFacadeprotected abstract int handleGetUpper()
ParameterFacade.getUpper()public final int getUpper()
getUpper in interface ParameterFacadeprotected abstract int handleGetLower()
ParameterFacade.getLower()public final int getLower()
getLower in interface ParameterFacadeprotected abstract boolean handleIsUnique()
ParameterFacade.isUnique()public final boolean isUnique()
isUnique in interface ParameterFacadeprotected abstract boolean handleIsOrdered()
ParameterFacade.isOrdered()public final boolean isOrdered()
isOrdered in interface ParameterFacadeprotected abstract boolean handleIsMany()
ParameterFacade.isMany()public final boolean isMany()
isMany in interface ParameterFacadeprotected abstract boolean handleIsException()
ParameterFacade.isException()public final boolean isException()
isException in interface ParameterFacadeprotected abstract String handleGetEffect()
ParameterFacade.getEffect()public final String getEffect()
getEffect in interface ParameterFacadepublic final ClassifierFacade getType()
getType in interface ParameterFacadeprotected abstract Object handleGetType()
public final EventFacade getEvent()
getEvent in interface ParameterFacadeprotected abstract Object handleGetEvent()
public final OperationFacade getOperation()
getOperation in interface ParameterFacadeprotected abstract Object handleGetOperation()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::ParameterFacade::parameter needs a type
Error: Each parameter needs a type, you cannot leave the type unspecified.
OCL: context ParameterFacade inv: return = false implies type.name->notEmpty()
Constraint: org::andromda::metafacades::uml::ParameterFacade::non return type parameters must be named
Error: Each parameter that is NOT a return parameter must have a non-empty name.
OCL: context ParameterFacade inv: return = false implies name -> notEmpty()
Constraint: org::andromda::metafacades::uml::ParameterFacade::primitive parameter cannot be used in Collection
Error: Primitive parameters cannot be used in Collections (multiplicity > 1). Use the wrapped type instead.
OCL: context ParameterFacade inv: type.primitive implies (many = false)
Constraint: org::andromda::metafacades::uml::ParameterFacade::primitive parameter must be required
Error: Primitive operation parameters must have a multiplicity lower bound > 0 (must be required). Use a wrapped type, or change the multiplicity.
OCL: context ParameterFacade inv: type.primitive implies (lower > 0)
Constraint: org::andromda::metafacades::uml::ParameterFacade::wrapped primitive parameter should not be required
Error: Wrapped primitive operation parameters must have a multiplicity lower bound = 0 (must be optional). Use the unwrapped type, or change the multiplicity.
OCL: context ParameterFacade inv: type.wrappedPrimitive and many = false implies (lower = 0)
validateInvariants in interface ModelElementFacadevalidateInvariants in class ModelElementFacadeLogicvalidationMessages - CollectionModelElementFacadeLogic.validateInvariants(Collection validationMessages)Copyright © 2003–2014 AndroMDA.org. All rights reserved.