Class ComponentView

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.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
All Implemented Interfaces:
BaseElement, com.nomagic.magicdraw.uml.CompartmentSupport, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.CompartmentContainer, com.nomagic.magicdraw.uml.symbols.CompartmentOwner, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, com.nomagic.magicdraw.uml.symbols.shapes.PortOwner, com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, com.nomagic.magicdraw.uml.symbols.Wrapable, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class ComponentView extends ClassView
  • Constructor Details

    • ComponentView

      public ComponentView()
    • ComponentView

      public ComponentView(@CheckForNull PresentationElement parent)
  • Method Details

    • canAddInstance

      public boolean canAddInstance(PresentationElement symbol)
      Description copied from class: PresentationElement
      Object view has no children.
      Overrides:
      canAddInstance in class ClassView
    • 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 ClassView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • getInterfacesCompartment

      public com.nomagic.magicdraw.uml.symbols.shapes.InterfacesCompartmentView getInterfacesCompartment()
    • getRealizationsCompartment

      public com.nomagic.magicdraw.uml.symbols.shapes.RealizationsCompartmentView getRealizationsCompartment()
    • getArtifactsCompartment

      public com.nomagic.magicdraw.uml.symbols.shapes.ArtifactsCompartmentView getArtifactsCompartment()
    • getHeaderView

      public com.nomagic.magicdraw.uml.symbols.shapes.ComponentHeaderView getHeaderView()
      Overrides:
      getHeaderView in class ClassView
    • createPortConfig

      public static SmartListenerConfig createPortConfig()
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class ClassView
    • createComponentConfig

      public SmartListenerConfig createComponentConfig()
    • getElement

      public Component getElement()
      Description copied from class: PresentationElement
      Returns model element of this presentation element. Some presentation elements (for example TextBoxes) do not have model elements.
      Specified by:
      getElement in interface ModelElementProvider
      Overrides:
      getElement in class ClassView
      Returns:
      model element of this presentation element.