public abstract class EnumerationFacadeLogic extends ClassifierFacadeLogicImpl implements EnumerationFacade
EnumerationFacade,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Object |
metaObject
The underlying UML object
|
contextRoot| Modifier | Constructor and Description |
|---|---|
protected |
EnumerationFacadeLogic(Object metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFromOperationName()
The 'from' operation name.
|
String |
getFromOperationSignature()
The 'from' operation signature.
|
Collection<AttributeFacade> |
getLiterals()
If the attribute is an enumeration literal this represents the owning enumeration.
|
ClassifierFacade |
getLiteralType()
Represents an enumeration.
|
Collection<AttributeFacade> |
getMemberVariables()
Represents an enumeration.
|
protected abstract String |
handleGetFromOperationName() |
protected abstract String |
handleGetFromOperationSignature() |
protected abstract Collection |
handleGetLiterals()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Object |
handleGetLiteralType()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection |
handleGetMemberVariables()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract boolean |
handleIsTypeSafe() |
boolean |
isEnumerationFacadeMetaType() |
boolean |
isTypeSafe()
Indicates whether the enumeration must be generated using a Java 5 type-safe enum or a
traditional enumeration-pattern class.
|
void |
resetMetafacadeContext(String context)
Reset context only for non-root metafacades
|
void |
validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::EnumerationFacade::enumerations must have at least one literal value
|
getOwner, getWrapperMappings, handleFindAttribute, handleGetAbstractions, handleGetAllAssociatedClasses, handleGetAllProperties, handleGetAllRequiredConstructorParameters, handleGetArray, handleGetArrayName, handleGetAssociatedClasses, handleGetAssociationEnds, handleGetAttributes, handleGetAttributes, handleGetFullyQualifiedArrayName, handleGetImplementationOperations, handleGetImplementedInterfaceList, handleGetInstanceAttributes, handleGetInstanceOperations, handleGetInterfaceAbstractions, handleGetJavaNewString, handleGetJavaNullString, handleGetName, handleGetNavigableConnectingEnds, handleGetNavigableConnectingEnds, handleGetNonArray, handleGetOperationCallFromAttributes, handleGetOperations, handleGetProperties, handleGetProperties, handleGetRequiredConstructorParameters, handleGetSerialVersionUID, handleGetStaticAttributes, handleGetStaticOperations, handleGetSuperClass, handleGetWrapperName, handleIsAbstract, handleIsArrayType, handleIsAssociationClass, handleIsBlobType, handleIsBooleanType, handleIsCharacterType, handleIsClobType, handleIsCollectionType, handleIsDataType, handleIsDateType, handleIsDoubleType, handleIsEmbeddedValue, handleIsEnumeration, handleIsFileType, handleIsFloatType, handleIsIntegerType, handleIsInterface, handleIsLeaf, handleIsListType, handleIsLongType, handleIsMapType, handleIsPrimitive, handleIsSetType, handleIsStringType, handleIsTimeType, handleIsWrappedPrimitivefindAttribute, getAbstractions, getAllAssociatedClasses, getAllProperties, getAllRequiredConstructorParameters, getArray, getArrayName, getAssociatedClasses, getAssociationEnds, getAttributes, getAttributes, getFullyQualifiedArrayName, getImplementationOperations, getImplementedInterfaceList, getInstanceAttributes, getInstanceOperations, getInterfaceAbstractions, getJavaNewString, getJavaNullString, getNavigableConnectingEnds, getNavigableConnectingEnds, getNonArray, getOperationCallFromAttributes, getOperations, getProperties, getProperties, getRequiredConstructorParameters, getSerialVersionUID, getStaticAttributes, getStaticOperations, getSuperClass, getWrapperName, isAbstract, isArrayType, isAssociationClass, isBlobType, isBooleanType, isCharacterType, isClassifierFacadeMetaType, isClobType, isCollectionType, isDataType, isDateType, isDoubleType, isEmbeddedValue, isEnumeration, isFileType, isFloatType, isIntegerType, isInterface, isLeaf, isListType, isLongType, isMapType, isPrimitive, isSetType, isStringType, isTimeType, isWrappedPrimitivehandleFindTaggedValue, handleGetAllGeneralizations, handleGetAllSpecializations, handleGetGeneralization, handleGetGeneralizationLinks, handleGetGeneralizationList, handleGetGeneralizationRoot, handleGetGeneralizations, handleGetSpecializationsfindTaggedValue, getAllGeneralizations, getAllSpecializations, getGeneralization, getGeneralizationLinks, getGeneralizationList, getGeneralizationRoot, getGeneralizations, getSpecializations, isGeneralizableElementFacadeMetaTypegetArraySuffix, getValidationName, handleCopyTaggedValues, handleFindTaggedValue, handleFindTaggedValues, handleGetBindedFullyQualifiedName, handleGetConstraints, handleGetConstraints, handleGetDocumentation, handleGetDocumentation, handleGetDocumentation, handleGetFullyQualifiedName, handleGetFullyQualifiedName, handleGetFullyQualifiedNamePath, handleGetId, handleGetKeywords, handleGetLabel, handleGetLanguageMappings, handleGetModel, 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, waitfindAttribute, getAbstractions, getAllAssociatedClasses, getAllProperties, getAllRequiredConstructorParameters, getArray, getArrayName, getAssociatedClasses, getAssociationEnds, getAttributes, getAttributes, getFullyQualifiedArrayName, getImplementationOperations, getImplementedInterfaceList, getInstanceAttributes, getInstanceOperations, getInterfaceAbstractions, getJavaNewString, getJavaNullString, getNavigableConnectingEnds, getNavigableConnectingEnds, getNonArray, getOperationCallFromAttributes, getOperations, getProperties, getProperties, getRequiredConstructorParameters, getSerialVersionUID, getStaticAttributes, getStaticOperations, getSuperClass, getWrapperName, isAbstract, isArrayType, isAssociationClass, isBlobType, isBooleanType, isCharacterType, isClassifierFacadeMetaType, isClobType, isCollectionType, isDataType, isDateType, isDoubleType, isEmbeddedValue, isEnumeration, isFileType, isFloatType, isIntegerType, isInterface, isLeaf, isListType, isLongType, isMapType, isPrimitive, isSetType, isStringType, isTimeType, isWrappedPrimitivefindTaggedValue, getAllGeneralizations, getAllSpecializations, getGeneralization, getGeneralizationLinks, getGeneralizationList, getGeneralizationRoot, getGeneralizations, getSpecializations, isGeneralizableElementFacadeMetaTypecopyTaggedValues, 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 Object metaObject
Objectprotected EnumerationFacadeLogic(Object metaObjectIn, String context)
metaObjectIn - context - public void resetMetafacadeContext(String context)
resetMetafacadeContext in class ClassifierFacadeLogiccontext - public boolean isEnumerationFacadeMetaType()
isEnumerationFacadeMetaType in interface EnumerationFacadeEnumerationFacadeprotected abstract String handleGetFromOperationSignature()
EnumerationFacade.getFromOperationSignature()public final String getFromOperationSignature()
getFromOperationSignature in interface EnumerationFacadeprotected abstract String handleGetFromOperationName()
EnumerationFacade.getFromOperationName()public final String getFromOperationName()
getFromOperationName in interface EnumerationFacadeprotected abstract boolean handleIsTypeSafe()
EnumerationFacade.isTypeSafe()public final boolean isTypeSafe()
isTypeSafe in interface EnumerationFacadepublic final ClassifierFacade getLiteralType()
getLiteralType in interface EnumerationFacadeprotected abstract Object handleGetLiteralType()
public final Collection<AttributeFacade> getLiterals()
getLiterals in interface EnumerationFacadeprotected abstract Collection handleGetLiterals()
public final Collection<AttributeFacade> getMemberVariables()
getMemberVariables in interface EnumerationFacadeprotected abstract Collection handleGetMemberVariables()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::EnumerationFacade::enumerations must have at least one literal value
Error: An enumeration must have at least one literal modeled.
OCL: context EnumerationFacade inv: literals -> notEmpty()
Constraint: org::andromda::metafacades::uml::EnumerationFacade::name must be a valid identifier
Error: Model Element name cannot be a reserved word
OCL: context EnumerationFacade inv: validIdentifierName=true
validateInvariants in interface ModelElementFacadevalidateInvariants in class ClassifierFacadeLogicvalidationMessages - CollectionClassifierFacadeLogic.validateInvariants(Collection validationMessages)Copyright © 2003–2014 AndroMDA.org. All rights reserved.