Interface Extension

    • Field Detail

      • METACLASS_ROLE_PREFIX

        static final String METACLASS_ROLE_PREFIX
        The prefix for metaclass role names.
        See Also:
        Constant Field Values
      • STEREOTYPE_ROLE_PREFIX

        static final String STEREOTYPE_ROLE_PREFIX
        The prefix for stereotype role names.
        See Also:
        Constant Field Values
    • Method Detail

      • isRequired

        boolean isRequired()
        Returns the value of the 'Is Required' attribute. The default value is "false". 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 multiplicity of the Property referenced by Extension::ownedEnd; a multiplicity of 1 means that isRequired is true, but otherwise it is false. Since the default multiplicity of an ExtensionEnd is 0..1, the default value of isRequired is false.
        Returns:
        the value of the 'Is Required' attribute.
        See Also:
        UMLPackage.getExtension_IsRequired()
      • getMetaclass

        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:
        UMLPackage.getExtension_Metaclass(), Class.getExtensions()
      • validateNonOwnedEnd

        boolean validateNonOwnedEnd​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                    Map context)
        The non-owned end of an Extension is typed by a Class. metaclassEnd()->notEmpty() and metaclass()->oclIsKindOf(Class)
      • validateIsBinary

        boolean validateIsBinary​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 Map context)
        An Extension is binary, i.e., it has only two memberEnds. memberEnd->size() = 2
      • getStereotypeEnd

        Property getStereotypeEnd()
        Retrieves the extension end that is typed by a stereotype (as opposed to a metaclass).
      • getStereotype

        Stereotype getStereotype()
        Retrieves the stereotype that extends a metaclass through this extension.
      • metaclassEnd

        Property metaclassEnd()
        The query metaclassEnd() returns the Property that is typed by a metaclass (as opposed to a stereotype). result = memberEnd->reject(ownedEnd)