Class MagicDrawProfile.DerivedPropertySpecificationStereotype

    • Field Detail

      • EXPRESSION

        public static final java.lang.String EXPRESSION
        List of different types of criteria how to gather dependent elements: Simple (UML Relation, Property or Tag); Meta Chain, OCL and Binary. If several criterion are defined results is union of all of them.

        Expression can be used in Derived Property Specification, Dependency Matrix, Dependency Map.

        See Also:
        Constant Field Values
      • ISREADONLY

        public static final java.lang.String ISREADONLY
        If True, property is read only without ability to create target element. If False Property is read / write with ability to create value according to defined expressions.
        See Also:
        Constant Field Values
      • expression

        @CheckForNull
        private Property expression
      • isReadOnly

        @CheckForNull
        private Property isReadOnly
      • valueSetter

        @CheckForNull
        private Property valueSetter
    • Constructor Detail

      • DerivedPropertySpecificationStereotype

        protected DerivedPropertySpecificationStereotype​(MagicDrawProfile profile)
    • Method Detail

      • getExpressionProperty

        @CheckForNull
        public Property getExpressionProperty()
      • getIsReadOnlyProperty

        @CheckForNull
        public Property getIsReadOnlyProperty()
      • getValueSetterProperty

        @CheckForNull
        public Property getValueSetterProperty()
      • setExpression

        public void setExpression​(Element element,
                                  @CheckForNull
                                  java.util.Collection<java.lang.Object> value)
      • clearExpression

        public void clearExpression​(Element element)
      • addExpression

        public void addExpression​(Element element,
                                  java.lang.Object value)
      • removeExpression

        public void removeExpression​(Element element,
                                     java.lang.Object value)
      • getExpression

        public java.util.List<java.lang.Object> getExpression​(Element element)
      • setIsReadOnly

        public void setIsReadOnly​(Element element,
                                  @CheckForNull
                                  java.lang.Boolean value)
      • clearIsReadOnly

        public void clearIsReadOnly​(Element element)
      • isIsReadOnly

        @CheckForNull
        public java.lang.Boolean isIsReadOnly​(Element element)
      • setValueSetter

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

        public void clearValueSetter​(Element element)
      • getValueSetter

        @CheckForNull
        public java.lang.String getValueSetter​(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)