Interface MDElement

All Superinterfaces:
BaseElement, Cloneable, Comparable
All Known Implementing Classes:
AbstractDiagramPresentationElement, com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView, com.nomagic.magicdraw.uml.symbols.shapes.AbstractImageShapeView, com.nomagic.magicdraw.uml.symbols.shapes.AbstractSeparatorView, com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels, com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabelsInside, com.nomagic.magicdraw.uml.symbols.shapes.AbstractTextBoxView, ActionView, ActivationView, com.nomagic.magicdraw.uml.symbols.shapes.ActivityGroupView, ActorView, ArtifactView, AssociationClassView, AssociationView, BarView, com.nomagic.magicdraw.uml.symbols.paths.BaseFlowView, com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView, com.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView, com.nomagic.magicdraw.uml.symbols.paths.BaseRealizationView, com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape, CallBehaviorActionView, CallOperationActionView, ClassifierView, ClassView, CollaborationUseView, CollaborationView, CombinedFragmentView, CommentView, CommunicationPathView, ComponentView, ConditionalNodeView, ConnectorToSelfView, ConnectorView, ConstraintLinkView, com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView, com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView, ContainmentLinkView, ContentShape, ControlFlowView, DataTypeView, DecisionView, DependencyView, DeploymentView, DiagramFrameView, DiagramLegendShape, DiagramPresentationElement, DiagramPropertiesShape, DiagramShape, DurationConstraintView, ElementImportView, com.nomagic.magicdraw.uml.symbols.shapes.EmbeddedImageShapeView, EnumerationView, ExceptionHandlerView, ExpansionNodeView, ExpansionRegionView, ExtendView, ExtensionView, FlowConnectorView, FoundMessageView, com.nomagic.magicdraw.uml.symbols.shapes.FragmentView, com.nomagic.magicdraw.uml.symbols.shapes.FrameView, GeneralizationSetView, GeneralizationView, GenericView, com.dassault_systemes.modeler.magic.kerml.diagram.HeaderShape, com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView, ImageShapeView, IncludeView, InformationFlowView, InformationItemView, InstanceSpecificationView, InteractionUseOverviewView, InteractionUseView, InterfaceRealizationView, InterfaceView, InterruptibleActivityRegionView, LifeLineLineView, LifelineView, LinkAttributeView, LinkView, com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView, com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView, com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype, LoopNodeView, com.nomagic.magicdraw.uml.symbols.paths.LostFoundMessageView, LostMessageView, com.nomagic.magicdraw.uml.MDElementImpl, MessageView, NNaryAssociationView, NodeInstanceSpecificationView, NodeView, NoteAnchorView, NoteView, ObjectFlowView, ObjectNodeView, OpaqueActionView, PackageImportView, PackageMergeView, PackageShape, PackageView, PartView, PathConnector, PathElement, com.nomagic.magicdraw.uml.symbols.shapes.PathToSelfShape, PinView, PortView, PresentationElement, PrimitiveTypeView, ProfileApplicationView, Project, ProjectOptions, PseudoNodeView, PseudoStateView, RealizationView, RectangularShape, RoleBindingView, SeparatorView, com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView, SeqMessageView, SeqSelfMessageView, SequenceLifelineView, SequenceNodeView, ShapeElement, com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels, SignalActionView, SignalView, StateInvariantView, StateView, StereotypeView, StructuredActivityNodeView, SwimlaneCellView, SwimlaneView, com.nomagic.magicdraw.uml.symbols.shapes.TableCellView, com.nomagic.magicdraw.uml.symbols.shapes.TableShapeView, TemplateBindingView, TextBoxView, com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView, TimeConstraintView, TransitionToSelfView, TransitionView, TreeView, com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView, com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels, UsageView, UseCaseView, VirtualRelationView

@OpenApi public interface MDElement extends BaseElement
This is a MagicDraw element interface.
  • Method Details

    • getSortKeys

      com.dassault_systemes.modeler.foundation.common.sort.SortKeys getSortKeys()
      Implementation of getSortKeys() from Sortable interface.
      Returns:
      the array of predefined sort keys.
    • getName

      @OpenApi @CheckForNull String getName()
      Returns the name of the element. This element will return null always, because it cannot have a name. However, the derived element may override this method and return a specific name.
      Returns:
      name of the element.
    • getResourceID

      String getResourceID()
    • canAddChild

      boolean canAddChild(BaseElement baseElement)
    • accept

      @OpenApi void accept(Visitor visitor) throws Exception
      Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details.
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • getProjectImpl

      @Deprecated(since="2024x Refresh3", forRemoval=true) Project getProjectImpl()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use Project.getProject(BaseElement). Will be removed in 2026x.
      This method is deprecated and will be removed soon.
      Returns:
      project
    • getProject

      @Deprecated(since="2024x Refresh3", forRemoval=true) default Project getProject()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use Project.getProject(BaseElement). Will be removed in 2026x.
      This method is deprecated and will be removed soon.
      Returns:
      project