Interface Profile

    • Method Detail

      • getOwnedStereotypes

        MDWEList<Stereotype> getOwnedStereotypes()
        Returns the value of the 'Owned Stereotype' reference list. The list contents are of type Stereotype. References the Stereotypes that are owned by the Profile.
        Returns:
        the value of the 'Owned Stereotype' reference list.
        See Also:
        UMLPackage.getProfile_OwnedStereotype()
      • getOwnedStereotype

        Stereotype getOwnedStereotype​(String name)
        Retrieves the first Stereotype with the specified 'Name' from the ' Owned Stereotype' reference list.
        Parameters:
        name - The 'Name' of the Stereotype to retrieve, or null.
        Returns:
        The first Stereotype with the specified 'Name', or null.
        See Also:
        getOwnedStereotypes()
      • getOwnedStereotype

        Stereotype getOwnedStereotype​(String name,
                                      boolean ignoreCase,
                                      boolean createOnDemand)
        Retrieves the first Stereotype with the specified 'Name' from the ' Owned Stereotype' reference list.
        Parameters:
        name - The 'Name' of the Stereotype to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        createOnDemand - Whether to create a Stereotype on demand if not found.
        Returns:
        The first Stereotype with the specified 'Name', or null.
        See Also:
        getOwnedStereotypes()
      • getMetamodelReferences

        MDWEList<PackageImport> getMetamodelReferences()
        Returns the value of the 'Metamodel Reference' reference list. The list contents are of type PackageImport. References a package containing (directly or indirectly) metaclasses that may be extended.
        Returns:
        the value of the 'Metamodel Reference' reference list.
        See Also:
        UMLPackage.getProfile_MetamodelReference()
      • getMetamodelReference

        PackageImport getMetamodelReference​(Package importedPackage)
        Retrieves the first PackageImport with the specified 'Imported Package' from the ' Metamodel Reference' reference list.
        Parameters:
        importedPackage - The 'Imported Package' of the PackageImport to retrieve, or null .
        Returns:
        The first PackageImport with the specified 'Imported Package', or null.
        See Also:
        getMetamodelReferences()
      • getMetamodelReference

        PackageImport getMetamodelReference​(Package importedPackage,
                                            boolean createOnDemand)
        Retrieves the first PackageImport with the specified 'Imported Package' from the ' Metamodel Reference' reference list.
        Parameters:
        importedPackage - The 'Imported Package' of the PackageImport to retrieve, or null .
        createOnDemand - Whether to create a PackageImport on demand if not found.
        Returns:
        The first PackageImport with the specified 'Imported Package', or null.
        See Also:
        getMetamodelReferences()
      • validateMetaclassReferenceNotSpecialized

        boolean validateMetaclassReferenceNotSpecialized​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                         Map context)
        An element imported as a metaclassReference is not specialized or generalized in a Profile. self.metaclassReference.importedElement-> select(c | c.oclIsKindOf(Classifier) and (c.generalization.namespace = self or (c.specialization.namespace = self) )->isEmpty()
      • validateReferencesSameMetamodel

        boolean validateReferencesSameMetamodel​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                Map context)
        All elements imported either as metaclassReferences or through metamodelReferences are members of the same base reference metamodel. self.metamodelReference.importedPackage.elementImport.importedElement.allOwningPackages())-> union(self.metaclassReference.importedElement.allOwningPackages() )->notEmpty()
      • create

        org.eclipse.emf.ecore.EObject create​(Classifier classifier)
        Creates and returns an instance of (the Ecore representation of) the specified classifier defined in this profile.
      • createOwnedStereotype

        Stereotype createOwnedStereotype​(String name,
                                         boolean isAbstract)
        Creates a(n) (abstract) stereotype with the specified name as an owned stereotype of this profile.
      • isDefined

        boolean isDefined()
        Determines whether this profile is defined.
      • define

        org.eclipse.emf.ecore.EPackage define()
        Defines this profile by (re)creating Ecore representations of its current contents.
      • getDefinition

        org.eclipse.emf.ecore.EPackage getDefinition()
        Retrieves the current definition (Ecore representation) of this profile.
      • getDefinition

        org.eclipse.emf.ecore.ENamedElement getDefinition​(NamedElement namedElement)
        Retrieves the current definition (Ecore representation) of the specified named element in this profile.
      • getReferencedMetaclasses

        MDWEList<Class> getReferencedMetaclasses()
        Retrieves the metaclasses referenced by this profile.
      • getReferencedMetamodels

        MDWEList<Model> getReferencedMetamodels()
        Retrieves the metamodels referenced by this profile.
      • getOwnedExtensions

        MDWEList<Extension> getOwnedExtensions​(boolean requiredOnly)
        Retrieves the extensions owned by this profile, excluding non-required extensions if indicated.