public interface Enumeration extends DataType
From package UML::SimpleClassifiers.
The following features are supported:
UMLPackage.getEnumeration()SEPARATOR| Modifier and Type | Method and Description |
|---|---|
EnumerationLiteral |
createOwnedLiteral(java.lang.String name)
Creates a new
EnumerationLiteral, with the specified 'Name', and appends it to the 'Owned Literal' containment reference list |
EnumerationLiteral |
getOwnedLiteral(java.lang.String name)
Retrieves the first
EnumerationLiteral with the specified 'Name' from the 'Owned Literal' containment reference list |
EnumerationLiteral |
getOwnedLiteral(java.lang.String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first
EnumerationLiteral with the specified 'Name' from the 'Owned Literal' containment reference list |
org.eclipse.emf.common.util.EList<EnumerationLiteral> |
getOwnedLiterals()
Returns the value of the 'Owned Literal' containment reference list.
|
boolean |
validateImmutable(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
ownedAttribute->forAll(isReadOnly)
|
createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedOperation, createOwnedOperation, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedOperation, getOwnedOperation, getOwnedOperationsallAttributes, allFeatures, allParents, allRealizedInterfaces, allSlottableFeatures, allUsedInterfaces, createCollaborationUse, createGeneralization, createOwnedUseCase, createRepresentation, createSubstitution, directlyRealizedInterfaces, directlyUsedInterfaces, getAllAttributes, getAllOperations, getAllUsedInterfaces, getAttribute, getAttribute, getAttributes, getCollaborationUse, getCollaborationUse, getCollaborationUses, getFeature, getFeature, getFeatures, getGeneral, getGeneral, getGeneralization, getGeneralization, getGeneralizations, getGenerals, getInheritedMember, getInheritedMember, getInheritedMembers, getOperation, getOperation, getOperations, getOwnedUseCase, getOwnedUseCase, getOwnedUseCases, getPowertypeExtent, getPowertypeExtent, getPowertypeExtents, getRedefinedClassifier, getRedefinedClassifier, getRedefinedClassifiers, getRepresentation, getSubstitution, getSubstitution, getSubstitutions, getUseCase, getUseCase, getUseCases, getUsedInterfaces, hasVisibilityOf, inherit, inheritableMembers, isAbstract, isFinalSpecialization, isSubstitutableFor, maySpecializeType, parents, setIsAbstract, setIsFinalSpecialization, setRepresentation, validateMapsToGeneralizationSet, validateNoCyclesInGeneralization, validateNonFinalParents, validateSpecializeTypecreateElementImport, createElementImport, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateCannotImportOwnedMembers, validateCannotImportSelf, validateMembersDistinguishablegetRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateNonLeafRedefinition, validateRedefinitionConsistent, validateRedefinitionContextValidconformsTo, createAssociation, getAssociations, getPackage, setPackagevalidateNamespaceNeedsVisibilityallNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnershipgetOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameteraddKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelfgetEAnnotation, getEAnnotationseAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDelivercreateOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignatureorg.eclipse.emf.common.util.EList<EnumerationLiteral> getOwnedLiterals()
EnumerationLiteral.
It is bidirectional and its opposite is 'Enumeration'.
This feature subsets the following features:
The ordered set of literals owned by this Enumeration.From package UML::SimpleClassifiers.
UMLPackage.getEnumeration_OwnedLiteral(),
EnumerationLiteral.getEnumeration()EnumerationLiteral createOwnedLiteral(java.lang.String name)
EnumerationLiteral, with the specified 'Name', and appends it to the 'Owned Literal' containment reference list.
name - The 'Name' for the new EnumerationLiteral, or null.EnumerationLiteral.getOwnedLiterals()EnumerationLiteral getOwnedLiteral(java.lang.String name)
EnumerationLiteral with the specified 'Name' from the 'Owned Literal' containment reference list.
name - The 'Name' of the EnumerationLiteral to retrieve, or null.EnumerationLiteral with the specified 'Name', or null.getOwnedLiterals()EnumerationLiteral getOwnedLiteral(java.lang.String name, boolean ignoreCase, boolean createOnDemand)
EnumerationLiteral with the specified 'Name' from the 'Owned Literal' containment reference list.
name - The 'Name' of the EnumerationLiteral to retrieve, or null.ignoreCase - Whether to ignore case in String comparisons.createOnDemand - Whether to create a EnumerationLiteral on demand if not found.EnumerationLiteral with the specified 'Name', or null.getOwnedLiterals()boolean validateImmutable(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.