Class VirtualRelationView

  • All Implemented Interfaces:
    BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.LineJumpDrawer, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, java.beans.PropertyChangeListener, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener

    @OpenApi
    public class VirtualRelationView
    extends com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    Virtual relation symbol
    • Field Detail

      • ruleKey

        private java.lang.String ruleKey
    • Constructor Detail

      • VirtualRelationView

        public VirtualRelationView()
      • VirtualRelationView

        public VirtualRelationView​(@CheckForNull
                                   PresentationElement parent,
                                   @CheckForNull
                                   java.lang.String ruleKey)
    • Method Detail

      • internalSilentApply

        public void internalSilentApply()
        Description copied from class: PresentationElement
        Silently applies all properties after initialization
        Overrides:
        internalSilentApply in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      • isClientAcceptable

        public boolean isClientAcceptable​(PresentationElement client)
        Checks if client is acceptable for relation
        Parameters:
        client - client
        Returns:
        true if acceptable, else false
      • isCreatable

        public boolean isCreatable()
        Flag to indicate if relation can be created in diagram manually
        Returns:
        true if can be created, else false
      • isSupplierAcceptable

        public boolean isSupplierAcceptable​(PresentationElement supplier)
        Checks if supplier is acceptable for relation
        Parameters:
        supplier - supplier
        Returns:
        true if acceptable, else false
      • getRuleKey

        public java.lang.String getRuleKey()
      • isValid

        public boolean isValid()
      • getConnectionElements

        public java.util.List<Element> getConnectionElements()
      • getRule

        @CheckForNull
        private com.nomagic.magicdraw.configurators.impliedrelation.VirtualRelationRule getRule()
      • setRuleKey

        public void setRuleKey​(@CheckForNull
                               java.lang.String ruleKey)
      • isFixed

        public boolean isFixed()
        Description copied from class: PathElement
        Returns if path element tied to it's supplier and client (cannot be reconnected)
        Returns:
        true if can be reconnected, else false
      • accept

        public void accept​(Visitor visitor)
                    throws java.lang.Exception
        Description copied from interface: MDElement
        Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
        Specified by:
        accept in interface MDElement
        Overrides:
        accept in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • isTextEditable

        public boolean isTextEditable()
        Description copied from class: PresentationElement
        Checks text editing flag.
        Returns:
        true if the object view text is editable; false otherwise.
      • getPathIcon

        @CheckForNull
        public com.nomagic.magicdraw.ui.pathicon.PathIcon getPathIcon()
      • createNameLabelWrapper

        protected com.nomagic.magicdraw.uml.symbols.shapes.NameLabelWrapper createNameLabelWrapper()
        Overrides:
        createNameLabelWrapper in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      • getName

        public java.lang.String getName()
        Description copied from interface: MDElement
        Returns the name of the element. This element will return null always, because it can not have name. However the derived element may override this method and return specific name.
        Specified by:
        getName in interface MDElement
        Specified by:
        getName in interface NameOwner
        Overrides:
        getName in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
        Returns:
        name of the element.
      • getHumanType

        public java.lang.String getHumanType()
        Description copied from class: PresentationElement
        Returns human representation of the data type
        Specified by:
        getHumanType in interface BaseElement
        Returns:
        the name of the data
      • updateNameBox

        public void updateNameBox()
        Overrides:
        updateNameBox in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent e)
        Description copied from class: PresentationElement
        Listens for property change it can be: data was edited text box was edited
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener