Interface Generalization

  • All Superinterfaces:
    BaseElement, java.lang.Cloneable, java.lang.Comparable, DirectedRelationship, Element, org.eclipse.emf.ecore.EObject, MDObject, com.dassault_systemes.modeler.foundation.model.ModelElement, ModelObject, org.eclipse.emf.common.notify.Notifier, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, Relationship

    public interface Generalization
    extends DirectedRelationship
    A representation of the model object 'Generalization'.

    A Generalization is a taxonomic relationship between a more general Classifier and a more specific Classifier. Each instance of the specific Classifier is also an instance of the general Classifier. The specific Classifier inherits the features of the more general Classifier. A Generalization is owned by the specific Classifier.

    The following features are supported:

    See Also:
    UMLPackage.getGeneralization()
    Model:
    annotation="MOF package='classes.mdkernel'"
    Generated:
    • Method Detail

      • setGeneral

        void setGeneral​(@CheckForNull
                        Classifier value)
        Sets the value of the 'General' reference.
        Parameters:
        value - the new value of the 'General' reference.
        See Also:
        getGeneral()
        Generated:
      • isSubstitutable

        boolean isSubstitutable()
        Returns the value of the 'Substitutable' attribute. The default value is "true". Indicates whether the specific Classifier can be used wherever the general Classifier can be used. If true, the execution traces of the specific Classifier shall be a superset of the execution traces of the general Classifier. If false, there is no such constraint on execution traces. If unset, the modeler has not stated whether there is such a constraint or not.
        Returns:
        the value of the 'Substitutable' attribute.
        See Also:
        setSubstitutable(boolean), com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getGeneralization_Substitutable()
        Model:
        default="true" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" ordered="false"
        Generated:
      • setSubstitutable

        void setSubstitutable​(boolean value)
        Sets the value of the 'Substitutable' attribute.
        Parameters:
        value - the new value of the 'Substitutable' attribute.
        See Also:
        isSubstitutable()
        Generated:
      • setSpecific

        void setSpecific​(@CheckForNull
                         Classifier value)
        Sets the value of the 'Specific' container reference.
        Parameters:
        value - the new value of the 'Specific' container reference.
        See Also:
        getSpecific()
        Generated:
      • hasGeneralizationSet

        boolean hasGeneralizationSet()
                              throws javax.jmi.reflect.JmiException
        Throws:
        javax.jmi.reflect.JmiException
        Generated: