Interface CreateObjectAction

    • Method Detail

      • setClassifier

        void setClassifier​(Classifier value)
        Sets the value of the 'Classifier' reference.
        Parameters:
        value - the new value of the 'Classifier' reference.
        See Also:
        getClassifier()
      • setResult

        void setResult​(OutputPin value)
        Sets the value of the 'Result' containment reference.
        Parameters:
        value - the new value of the 'Result' containment reference.
        See Also:
        getResult()
      • createResult

        OutputPin createResult​(String name,
                               Type type)
        Creates a new OutputPin,with the specified 'Name', and 'Type', and sets the 'Result' containment reference.
        Parameters:
        name - The 'Name' for the new OutputPin, or null.
        type - The 'Type' for the new OutputPin, or null.
        Returns:
        The new OutputPin.
        See Also:
        getResult()
      • validateClassifierNotAbstract

        boolean validateClassifierNotAbstract​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              Map context)
        The classifier cannot be abstract. not (self.classifier.isAbstract = #true)
      • validateClassifierNotAssociationClass

        boolean validateClassifierNotAssociationClass​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                      Map context)
        The classifier cannot be an association class not self.classifier.oclIsKindOf(AssociationClass)
      • validateSameType

        boolean validateSameType​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 Map context)
        The type of the result pin must be the same as the classifier of the action. self.result.type = self.classifier
      • validateMultiplicity

        boolean validateMultiplicity​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                     Map context)
        The multiplicity of the output pin is 1..1. self.result.multiplicity.is(1,1)