Class MagicDrawProfile.ValidationBasedMetricDefinitionStereotype

    • Field Detail

      • FAILINGELEMENTSDEFINITION

        public static final java.lang.String FAILINGELEMENTSDEFINITION
        Specify the name of the menu item that displays failing elements according to a selected validation rule (e.g., Display Unsatisfied Requirements). To find the menu item, right-click the metric table cell that displays the metric according to this validation rule.
        See Also:
        Constant Field Values
      • METRICTYPE

        public static final java.lang.String METRICTYPE
        Select the type of the metric to calculate.
        See Also:
        Constant Field Values
      • VALIDATIONRULE

        public static final java.lang.String VALIDATIONRULE
        Select the validation rule whose script is used to calculate metrics.
        See Also:
        Constant Field Values
      • failingElementsDefinition

        @CheckForNull
        private Property failingElementsDefinition
      • metricType

        @CheckForNull
        private Property metricType
      • validationRule

        @CheckForNull
        private Property validationRule
    • Constructor Detail

      • ValidationBasedMetricDefinitionStereotype

        protected ValidationBasedMetricDefinitionStereotype​(MagicDrawProfile profile)
    • Method Detail

      • getFailingElementsDefinitionProperty

        @CheckForNull
        public Property getFailingElementsDefinitionProperty()
      • getMetricTypeProperty

        @CheckForNull
        public Property getMetricTypeProperty()
      • getValidationRuleProperty

        @CheckForNull
        public Property getValidationRuleProperty()
      • getAbbreviationProperty

        @CheckForNull
        public Property getAbbreviationProperty()
      • setFailingElementsDefinition

        public void setFailingElementsDefinition​(Element element,
                                                 @CheckForNull
                                                 java.lang.String value)
      • clearFailingElementsDefinition

        public void clearFailingElementsDefinition​(Element element)
      • getFailingElementsDefinition

        @CheckForNull
        public java.lang.String getFailingElementsDefinition​(Element element)
      • clearMetricType

        public void clearMetricType​(Element element)
      • setValidationRule

        public void setValidationRule​(Element element,
                                      @CheckForNull
                                      Element value)
      • clearValidationRule

        public void clearValidationRule​(Element element)
      • getValidationRule

        @CheckForNull
        public Element getValidationRule​(Element element)
      • setAbbreviation

        public void setAbbreviation​(Element element,
                                    @CheckForNull
                                    java.lang.String value)
      • clearAbbreviation

        public void clearAbbreviation​(Element element)
      • getAbbreviation

        @CheckForNull
        public java.lang.String getAbbreviation​(Element element)
      • clear

        protected void clear()
      • is

        public boolean is​(@CheckForNull
                          Element element)
        Description copied from class: ProfileImplementation.StereotypeWrapper
        Checks if stereotype of this wrapper is applied to given element.
        Parameters:
        element - element
        Returns:
        true if stereotype of this wrapper is applied to given element
      • isInstance

        public static boolean isInstance​(@CheckForNull
                                         Element element)