public abstract class AttributeFacadeLogic extends ModelElementFacadeLogicImpl implements AttributeFacade
AttributeFacade
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected org.omg.uml.foundation.core.Attribute |
metaObject
The underlying UML object
|
contextRoot
Modifier | Constructor and Description |
---|---|
protected |
AttributeFacadeLogic(org.omg.uml.foundation.core.Attribute metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
Modifier and Type | Method and Description |
---|---|
Object |
findTaggedValue(String name,
boolean follow)
Searches the given feature for the specified tag.
|
String |
getDefaultValue()
The default value of the attribute.
|
EnumerationFacade |
getEnumeration()
This enumeration's literals.
|
String |
getEnumerationLiteralParameters()
Returns the enumeration literal parameters defined by tagged value as a comma separated list.
|
String |
getEnumerationValue()
The value for this attribute if it is an enumeration literal, null otherwise.
|
String |
getGetterName()
The name of the accessor operation that would retrieve this attribute's value.
|
String |
getGetterSetterTypeName()
The name of the type that is returned on the accessor and mutator operations, determined in
part by the multiplicity.
|
int |
getLower()
the lower value for the multiplicity
-only applicable for UML2
|
ClassifierFacade |
getOwner()
Gets the attributes that belong to the classifier.
|
String |
getSetterName()
The name of the mutator operation that would retrieve this attribute's value.
|
ClassifierFacade |
getType()
Represents an attribute on a classifier.
|
int |
getUpper()
the upper value for the multiplicity (will be -1 for *)
-only applicable for UML2
|
protected abstract Object |
handleFindTaggedValue(String name,
boolean follow)
Method to be implemented in descendants
Searches the given feature for the specified tag.
|
protected abstract String |
handleGetDefaultValue() |
protected abstract Object |
handleGetEnumeration()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetEnumerationLiteralParameters() |
protected abstract String |
handleGetEnumerationValue() |
protected abstract String |
handleGetGetterName() |
protected abstract String |
handleGetGetterSetterTypeName() |
protected abstract int |
handleGetLower() |
protected abstract Object |
handleGetOwner()
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 |
handleIsAddOnly() |
protected abstract boolean |
handleIsChangeable() |
protected abstract boolean |
handleIsDefaultValuePresent() |
protected abstract boolean |
handleIsDerived() |
protected abstract boolean |
handleIsEnumerationLiteral() |
protected abstract boolean |
handleIsEnumerationLiteralParametersExist() |
protected abstract boolean |
handleIsEnumerationMember() |
protected abstract boolean |
handleIsLeaf() |
protected abstract boolean |
handleIsMany() |
protected abstract boolean |
handleIsOrdered() |
protected abstract boolean |
handleIsReadOnly() |
protected abstract boolean |
handleIsRequired() |
protected abstract boolean |
handleIsStatic() |
protected abstract boolean |
handleIsUnique() |
boolean |
isAddOnly()
True if this attribute can only be set.
|
boolean |
isAttributeFacadeMetaType() |
boolean |
isChangeable()
True if this attribute can be modified.
|
boolean |
isDefaultValuePresent()
Indicates if the default value is present.
|
boolean |
isDerived()
If the attribute is derived (its value is computed).
|
boolean |
isEnumerationLiteral()
True if this attribute is owned by an enumeration.
|
boolean |
isEnumerationLiteralParametersExist()
Returns true if enumeration literal parameters exist (defined by tagged value) for the
literal.
|
boolean |
isEnumerationMember()
True if this attribute is owned by an enumeration but is defined as a member variable (NOT a
literal).
|
boolean |
isLeaf()
IsLeaf property in the operation.
|
boolean |
isMany()
Whether or not this attribute has a multiplicity greater than 1.
|
boolean |
isOrdered()
Indicates whether or not the attributes are ordered (if multiplicity is greater than 1).
|
boolean |
isReadOnly()
Whether or not this attribute can be modified.
|
boolean |
isRequired()
Whether or not the multiplicity of this attribute is 1.
|
boolean |
isStatic()
Indicates if this attribute is 'static', meaning it has a classifier scope.
|
boolean |
isUnique()
If the attribute is unique within the Collection type.
|
void |
resetMetafacadeContext(String context)
Reset context only for non-root metafacades
|
void |
validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::AttributeFacade::attribute needs a type
|
getArraySuffix, getValidationName, handleCopyTaggedValues, handleFindTaggedValue, handleFindTaggedValues, handleGetBindedFullyQualifiedName, handleGetConstraints, handleGetConstraints, handleGetDocumentation, handleGetDocumentation, handleGetDocumentation, handleGetFullyQualifiedName, handleGetFullyQualifiedName, handleGetFullyQualifiedNamePath, handleGetId, handleGetKeywords, handleGetLabel, handleGetLanguageMappings, handleGetModel, handleGetName, 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, 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 org.omg.uml.foundation.core.Attribute metaObject
Attribute
protected AttributeFacadeLogic(org.omg.uml.foundation.core.Attribute metaObjectIn, String context)
metaObjectIn
- context
- public void resetMetafacadeContext(String context)
resetMetafacadeContext
in class ModelElementFacadeLogic
context
- public boolean isAttributeFacadeMetaType()
isAttributeFacadeMetaType
in interface AttributeFacade
AttributeFacade
protected abstract String handleGetGetterName()
AttributeFacade.getGetterName()
public final String getGetterName()
getGetterName
in interface AttributeFacade
protected abstract String handleGetSetterName()
AttributeFacade.getSetterName()
public final String getSetterName()
getSetterName
in interface AttributeFacade
protected abstract boolean handleIsReadOnly()
AttributeFacade.isReadOnly()
public final boolean isReadOnly()
isReadOnly
in interface AttributeFacade
protected abstract String handleGetDefaultValue()
AttributeFacade.getDefaultValue()
public final String getDefaultValue()
getDefaultValue
in interface AttributeFacade
protected abstract boolean handleIsStatic()
AttributeFacade.isStatic()
public final boolean isStatic()
isStatic
in interface AttributeFacade
protected abstract boolean handleIsRequired()
AttributeFacade.isRequired()
public final boolean isRequired()
isRequired
in interface AttributeFacade
protected abstract boolean handleIsMany()
AttributeFacade.isMany()
public final boolean isMany()
isMany
in interface AttributeFacade
protected abstract boolean handleIsChangeable()
AttributeFacade.isChangeable()
public final boolean isChangeable()
isChangeable
in interface AttributeFacade
protected abstract boolean handleIsAddOnly()
AttributeFacade.isAddOnly()
public final boolean isAddOnly()
isAddOnly
in interface AttributeFacade
protected abstract boolean handleIsEnumerationLiteral()
AttributeFacade.isEnumerationLiteral()
public final boolean isEnumerationLiteral()
isEnumerationLiteral
in interface AttributeFacade
protected abstract String handleGetEnumerationValue()
AttributeFacade.getEnumerationValue()
public final String getEnumerationValue()
getEnumerationValue
in interface AttributeFacade
protected abstract String handleGetGetterSetterTypeName()
AttributeFacade.getGetterSetterTypeName()
public final String getGetterSetterTypeName()
getGetterSetterTypeName
in interface AttributeFacade
protected abstract boolean handleIsOrdered()
AttributeFacade.isOrdered()
public final boolean isOrdered()
isOrdered
in interface AttributeFacade
protected abstract boolean handleIsDefaultValuePresent()
AttributeFacade.isDefaultValuePresent()
public final boolean isDefaultValuePresent()
isDefaultValuePresent
in interface AttributeFacade
protected abstract int handleGetUpper()
AttributeFacade.getUpper()
public final int getUpper()
getUpper
in interface AttributeFacade
protected abstract int handleGetLower()
AttributeFacade.getLower()
public final int getLower()
getLower
in interface AttributeFacade
protected abstract boolean handleIsEnumerationMember()
AttributeFacade.isEnumerationMember()
public final boolean isEnumerationMember()
isEnumerationMember
in interface AttributeFacade
protected abstract String handleGetEnumerationLiteralParameters()
AttributeFacade.getEnumerationLiteralParameters()
public final String getEnumerationLiteralParameters()
getEnumerationLiteralParameters
in interface AttributeFacade
protected abstract boolean handleIsEnumerationLiteralParametersExist()
AttributeFacade.isEnumerationLiteralParametersExist()
public final boolean isEnumerationLiteralParametersExist()
isEnumerationLiteralParametersExist
in interface AttributeFacade
protected abstract boolean handleIsUnique()
AttributeFacade.isUnique()
public final boolean isUnique()
isUnique
in interface AttributeFacade
protected abstract boolean handleIsLeaf()
AttributeFacade.isLeaf()
public final boolean isLeaf()
isLeaf
in interface AttributeFacade
protected abstract boolean handleIsDerived()
AttributeFacade.isDerived()
public final boolean isDerived()
isDerived
in interface AttributeFacade
protected abstract Object handleFindTaggedValue(String name, boolean follow)
name
- follow
- public Object findTaggedValue(String name, boolean follow)
findTaggedValue
in interface AttributeFacade
name
- String
The name of the tagged value to find.follow
- boolean
If true search should 'follow' the inheritance hierarchy, false otherwise.public final ClassifierFacade getType()
getType
in interface AttributeFacade
protected abstract Object handleGetType()
public final EnumerationFacade getEnumeration()
getEnumeration
in interface AttributeFacade
protected abstract Object handleGetEnumeration()
public final ClassifierFacade getOwner()
getOwner
in interface AttributeFacade
protected abstract Object handleGetOwner()
handleGetOwner
in class ModelElementFacadeLogicImpl
ModelElementFacade.getPackage()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::AttributeFacade::attribute needs a type
Error: Each attribute needs a type, you cannot leave the type unspecified.
OCL: context AttributeFacade inv: type.name->notEmpty()
Constraint: org::andromda::metafacades::uml::AttributeFacade::attribute must have a name
Error: Each attribute must have a non-empty name.
OCL: context AttributeFacade inv: name -> notEmpty()
Constraint: org::andromda::metafacades::uml::AttributeFacade::primitive attribute must be required
Error: Primitive attributes must have a multiplicity lower bound > 0 (must be required). Use a wrapped type, or change the multiplicity.
OCL: context AttributeFacade inv: type.primitive implies (lower > 0)
Constraint: org::andromda::metafacades::uml::AttributeFacade::primitive attribute cannot be used in Collection
Error: Primitive attributes cannot be used in Collections (multiplicity > 1). Use the wrapped type instead.
OCL: context AttributeFacade inv: type.primitive implies (many = false)
Constraint: org::andromda::metafacades::uml::AttributeFacade::wrapped primitive attribute should not be required
Error: Wrapped primitive attributes must have a multiplicity lower bound = 0 (must be optional). Use the unwrapped type, or change the multiplicity.
OCL: context AttributeFacade inv: type.wrappedPrimitive and many = false implies (lower = 0)
validateInvariants
in interface ModelElementFacade
validateInvariants
in class ModelElementFacadeLogic
validationMessages
- CollectionModelElementFacadeLogic.validateInvariants(Collection validationMessages)
Copyright © 2003–2014 AndroMDA.org. All rights reserved.