Class VirtualRelationView

java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.paths.PathConnector
com.nomagic.magicdraw.uml.symbols.paths.PathElement
com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
com.nomagic.magicdraw.uml.symbols.paths.VirtualRelationView
All Implemented Interfaces:
BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.LineJumpDrawer, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class VirtualRelationView extends com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView implements com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
Virtual relation symbol
  • Constructor Details

    • VirtualRelationView

      public VirtualRelationView()
    • VirtualRelationView

      public VirtualRelationView(@CheckForNull PresentationElement parent)
    • VirtualRelationView

      public VirtualRelationView(@CheckForNull PresentationElement parent, @CheckForNull String ruleKey)
  • Method Details

    • 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 String getRuleKey()
    • isValid

      public boolean isValid()
    • getConnectionElements

      public List<Element> getConnectionElements()
    • setRuleKey

      public void setRuleKey(@CheckForNull String ruleKey)
    • isFixed

      public boolean isFixed()
      Description copied from class: PathElement
      If a path tied to its supplier and client (cannot be reconnected)
      Overrides:
      isFixed in class PathElement
      Returns:
      true, if it can be reconnected, else false
    • accept

      public void accept(Visitor visitor) throws Exception
      Description copied from interface: MDElement
      Method accepts a visitor, and calls method "visit<class name>(this)" of a 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:
      Exception
    • isTextEditable

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

      @CheckForNull public com.dassault_systemes.modeler.foundation.image.pathicon.PathIcon getPathIcon()
      Overrides:
      getPathIcon in class PathElement
    • createNameLabelWrapper

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

      public String getName()
      Description copied from class: com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      Gets container link 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:
      container link name
    • getHumanType

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

      public String constructNameTextToDisplay()
      Overrides:
      constructNameTextToDisplay in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      Returns:
      pure name text for displaying
    • propertyChange

      public void propertyChange(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 PropertyChangeListener
      Overrides:
      propertyChange in class PresentationElement
    • asPresentationElement

      public PresentationElement asPresentationElement()
      Specified by:
      asPresentationElement in interface com.nomagic.magicdraw.uml.symbols.LabelOwner
      Specified by:
      asPresentationElement in interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
      Returns:
      converts itself to PresentationElement