|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Extension
A representation of the model object 'Extension'. An extension is used to indicate that the properties of a metaclass are extended through a stereotype, and gives the ability to flexibly add (and later remove) stereotypes to classes.
From package UML::Packages.
The following features are supported:
UMLPackage.getExtension()
Field Summary | |
---|---|
static java.lang.String |
METACLASS_ROLE_PREFIX
The prefix for metaclass role names. |
static java.lang.String |
STEREOTYPE_ROLE_PREFIX
The prefix for stereotype role names. |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
SEPARATOR |
Method Summary | |
---|---|
Class |
getMetaclass()
Returns the value of the 'Metaclass' reference. |
Stereotype |
getStereotype()
Retrieves the stereotype that extends a metaclass through this extension |
Property |
getStereotypeEnd()
Retrieves the extension end that is typed by a stereotype (as opposed to a metaclass) |
boolean |
isRequired()
Returns the value of the 'Is Required' attribute |
Property |
metaclassEnd()
The query metaclassEnd() returns the Property that is typed by a metaclass (as opposed to a stereotype). |
boolean |
validateIsBinary(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
An Extension is binary, i.e., it has only two memberEnds. |
boolean |
validateNonOwnedEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The non-owned end of an Extension is typed by a Class. |
Methods inherited from interface org.eclipse.uml2.uml.Association |
---|
createNavigableOwnedEnd, createNavigableOwnedEnd, createOwnedEnd, createOwnedEnd, getEndType, getEndType, getEndTypes, getMemberEnd, getMemberEnd, getMemberEnds, getNavigableOwnedEnd, getNavigableOwnedEnd, getNavigableOwnedEnds, getOwnedEnd, getOwnedEnd, getOwnedEnds, isBinary, isDerived, setIsDerived, validateAssociationEnds, validateBinaryAssociations, validateEndsMustBeTyped, validateSpecializedEndNumber, validateSpecializedEndTypes |
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement |
---|
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateNonLeafRedefinition, validateRedefinitionConsistent, validateRedefinitionContextValid |
Methods inherited from interface org.eclipse.uml2.uml.Type |
---|
conformsTo, createAssociation, getAssociations, getPackage, setPackage |
Methods inherited from interface org.eclipse.uml2.uml.PackageableElement |
---|
validateNamespaceNeedsVisibility |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
allNamespaces, 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, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement |
---|
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
---|
getEAnnotation, getEAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.TemplateableElement |
---|
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature |
Methods inherited from interface org.eclipse.uml2.uml.Relationship |
---|
getRelatedElements |
Field Detail |
---|
static final java.lang.String METACLASS_ROLE_PREFIX
static final java.lang.String STEREOTYPE_ROLE_PREFIX
Method Detail |
---|
boolean isRequired()
From package UML::Packages.
UMLPackage.getExtension_IsRequired()
Class getMetaclass()
Extension
'.
References the Class that is extended through an Extension. The property is derived from the type of the memberEnd that is not the ownedEnd.
From package UML::Packages.
UMLPackage.getExtension_Metaclass()
,
Class.getExtensions()
boolean validateNonOwnedEnd(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.
boolean validateIsBinary(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.
Property getStereotypeEnd()
Stereotype getStereotype()
Property metaclassEnd()
From package UML::Packages.
|
Copyright 2003, 2014 IBM Corporation, CEA, and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |