Class InstanceSpecificationView

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
com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
com.nomagic.magicdraw.uml.symbols.shapes.InstanceSpecificationView
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.QualifiedNameLabelOwner, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, com.nomagic.magicdraw.uml.symbols.Wrapable, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener
Direct Known Subclasses:
NodeInstanceSpecificationView

@OpenApi public class InstanceSpecificationView extends com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
  • Constructor Details

    • InstanceSpecificationView

      public InstanceSpecificationView()
    • InstanceSpecificationView

      public InstanceSpecificationView(@CheckForNull PresentationElement parent)
      Creates and initializes a new CollaborationObjectView object from specified parameter.
      Parameters:
      parent - this object keeps reference to parent object
    • InstanceSpecificationView

      public InstanceSpecificationView(@CheckForNull PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.HeaderView headerView)
  • Method Details

    • getClassifier

      @CheckForNull public Classifier getClassifier()
      Specified by:
      getClassifier in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • getClassifiers

      public List<Classifier> getClassifiers()
      Overrides:
      getClassifiers in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • getElement

      public InstanceSpecification 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 PresentationElement
      Returns:
      model element of this presentation element.
    • sSetClassifiers

      public void sSetClassifiers(List<Classifier> classifiers)
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Sets one classifier.
      Specified by:
      sSetClassifiers in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Parameters:
      classifiers - a collection of classifiers to set as type of this typed element
    • getMetaClassifiersQPropertyName

      public String getMetaClassifiersQPropertyName()
      Specified by:
      getMetaClassifiersQPropertyName in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • internalSpecificUpdate

      protected void internalSpecificUpdate()
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Specific to every shape and model element update operation. Must be overridden in subclasses if you need to do specific tasks. !!! Important - all resizing, paths moving and so on is done in updatePresentationElement and should not be done in specific update.
      Overrides:
      internalSpecificUpdate in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      See Also:
      • AbstractHeaderShapeView.internalUpdatePresentationElement()
    • updateChildrenVisibility

      public void updateChildrenVisibility()
      Overrides:
      updateChildrenVisibility in class com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
    • canAddInstance

      public boolean canAddInstance(PresentationElement symbol)
      Checks can this container contain or not.
      Overrides:
      canAddInstance in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Returns:
      true if this container can add this object otherwise return false.
    • accept

      public void accept(Visitor visitor) throws Exception
      ** accept method for Visitor
      Specified by:
      accept in interface MDElement
      Overrides:
      accept in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Parameters:
      visitor - - the Visitor **
      Throws:
      Exception
    • isSuppressSlotsCompartment

      public boolean isSuppressSlotsCompartment()
      Is suppress compartment
      Returns:
      suppress value
    • getShowSlotTypeMode

      public String getShowSlotTypeMode()
      Gets value of slot showing property. Default is NONE
      Returns:
      mode
      See Also:
      • SlotView.SHOW_TYPE_MODE_NONE
      • SlotView.SHOW_TYPE_MODE_NAME
      • SlotView.SHOW_TYPE_MODE_QUALIFIED_NAME
    • getShowValueTypeUnits

      public boolean getShowValueTypeUnits()
      Gets value of slot stereotype tag showing property. Default is True
      Returns:
      true to show, else false
    • sSetShowValueTypeUnits

      public void sSetShowValueTypeUnits(boolean value)
      Sets value of showing value type units property. Just changes property, but no update is done
      Parameters:
      value - value
    • sSetShowSlotTypeMode

      public void sSetShowSlotTypeMode(String mode)
      Sets value of slot showing property. Just changes property, but no update is done
      Parameters:
      mode - mode
      See Also:
      • SlotView.SHOW_TYPE_MODE_NONE
      • SlotView.SHOW_TYPE_MODE_NAME
      • SlotView.SHOW_TYPE_MODE_QUALIFIED_NAME
    • setShowSlotTypeMode

      public void setShowSlotTypeMode(String mode)
      Sets value of slot showing property. Calls view update
      Parameters:
      mode - mode
      See Also:
      • SlotView.SHOW_TYPE_MODE_NONE
      • SlotView.SHOW_TYPE_MODE_NAME
      • SlotView.SHOW_TYPE_MODE_QUALIFIED_NAME
    • setShowValueTypeUnits

      public void setShowValueTypeUnits(boolean value)
      Sets value of showing value type units property.. Calls view update
      Parameters:
      value - value
    • internalApplyProperties

      public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer)
      Applies properties
      Overrides:
      internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Parameters:
      changer - new properties
    • isShowSpecificationValue

      public boolean isShowSpecificationValue()
      Returns:
      true if symbol should display specification value of Instance Specification
    • setShowSpecificationValue

      public void setShowSpecificationValue(boolean showSpecificationValue)
      Parameters:
      showSpecificationValue - true if symbol should display specification value of Instance Specification
    • sSetShowSpecificationValue

      public void sSetShowSpecificationValue(boolean showSpecificationValue)
      Parameters:
      showSpecificationValue - true if symbol should display specification value of Instance Specification
    • internalSilentApply

      public void internalSilentApply()
      Applies properties
      Overrides:
      internalSilentApply in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • getInstanceSlotsCompartmentView

      public com.nomagic.magicdraw.uml.symbols.shapes.InstanceSlotsCompartmentView getInstanceSlotsCompartmentView()
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
    • checkElementOwnerOnChange

      public boolean checkElementOwnerOnChange(PresentationElement child)
      Overrides:
      checkElementOwnerOnChange in class PresentationElement
    • internalGetSelfManipulationPreferredSize

      protected UnmodifiableDimension internalGetSelfManipulationPreferredSize()
      Overrides:
      internalGetSelfManipulationPreferredSize in class com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
      Returns:
      size for manipulation which does not take into account the size of children on some specific conditions (for example, in case if wrapped text)
    • getHeaderView

      public com.nomagic.magicdraw.uml.symbols.shapes.InstanceSpecificationHeaderView getHeaderView()
      Overrides:
      getHeaderView in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView