Interface InstanceSpecification

    • Method Detail

      • getClassifiers

        MDWEList<Classifier> getClassifiers()
        Returns the value of the 'Classifier' reference list. The list contents are of type Classifier. The classifier or classifiers of the represented instance. If multiple classifiers are specified, the instance is classified by all of them.
        Returns:
        the value of the 'Classifier' reference list.
        See Also:
        UMLPackage.getInstanceSpecification_Classifier()
      • getClassifier

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

        Classifier getClassifier​(String name,
                                 boolean ignoreCase,
                                 org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first Classifier with the specified 'Name' from the ' Classifier' reference list.
        Parameters:
        name - The 'Name' of the Classifier to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the Classifier to retrieve, or null.
        Returns:
        The first Classifier with the specified 'Name', or null.
        See Also:
        getClassifiers()
      • getSlots

        MDWEList<Slot> getSlots()
        Returns the value of the 'Slot' containment reference list. The list contents are of type Slot. It is bidirectional and its opposite is 'Owning Instance'. A slot giving the value or values of a structural feature of the instance. An instance specification can have one slot per structural feature of its classifiers, including inherited features. It is not necessary to model a slot for each structural feature, in which case the instance specification is a partial description.
        Returns:
        the value of the 'Slot' containment reference list.
        See Also:
        UMLPackage.getInstanceSpecification_Slot(), Slot.getOwningInstance()
      • createSlot

        Slot createSlot()
        Creates a new Slot and appends it to the 'Slot' containment reference list.
        Returns:
        The new Slot.
        See Also:
        getSlots()
      • validateDefiningFeature

        boolean validateDefiningFeature​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        Map context)
        The defining feature of each slot is a structural feature (directly or inherited) of a classifier of the instance specification. slot->forAll(s | classifier->exists (c | c.allFeatures()->includes (s.definingFeature)))
      • validateStructuralFeature

        boolean validateStructuralFeature​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                          Map context)
        One structural feature (including the same feature inherited from multiple classifiers) is the defining feature of at most one slot in an instance specification. classifier->forAll(c | (c.allFeatures()->forAll(f | slot->select(s | s.definingFeature = f)->size() <= 1)))
      • validateDeploymentTarget

        boolean validateDeploymentTarget​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         Map context)
        An InstanceSpecification can be a DeploymentTarget if it is the instance specification of a Node and functions as a part in the internal structure of an encompassing Node. true
      • validateDeploymentArtifact

        boolean validateDeploymentArtifact​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           Map context)
        An InstanceSpecification can be a DeployedArtifact if it is the instance specification of an Artifact. true