Interface Extension

All Superinterfaces:
Association, BaseElement, Classifier, Cloneable, Comparable, Element, org.eclipse.emf.ecore.EObject, MDObject, com.dassault_systemes.modeler.foundation.model.ModelElement, ModelObject, NamedElement, Namespace, org.eclipse.emf.common.notify.Notifier, PackageableElement, ParameterableElement, RedefinableElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, Relationship, TemplateableElement, Type

public interface Extension extends Association
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.

The following features are supported:

See Also:
Model:
annotation="MOF package='mdprofiles'"
Generated:
  • Method Details

    • isRequired

      boolean isRequired()
      Returns the value of the 'Required' attribute. Indicates whether an instance of the extending stereotype must be created when an instance of the extended class is created. The attribute value is derived from the value of the lower property of the ExtensionEnd referenced by Extension::ownedEnd; a lower value of 1 means that isRequired is true, but otherwise it is false. Since the default value of ExtensionEnd::lower is 0, the default value of isRequired is false.
      Returns:
      the value of the 'Required' attribute.
      See Also:
      • com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getExtension_Required()
      Model:
      dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • getMetaclass

      @CheckForNull Class getMetaclass()
      Returns the value of the 'Metaclass' reference. It is bidirectional and its opposite is '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.
      Returns:
      the value of the 'Metaclass' reference.
      See Also:
      Model:
      opposite="extension" required="true" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • getOwnedEnd

      List<Property> getOwnedEnd()
      Returns the value of the 'Owned End' containment reference list. The list contents are of type ExtensionEnd. It is bidirectional and its opposite is 'extension Of Owned End'. References the end of the extension that is typed by a Stereotype.
      Specified by:
      getOwnedEnd in interface Association
      Returns:
      the value of the 'Owned End' containment reference list.
      See Also:
      Model:
      opposite="_extensionOfOwnedEnd" containment="true" resolveProxies="true"
      Generated: