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

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

      • 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 Detail

      • getClassifier

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

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

        public void sSetClassifiers​(java.util.List<Classifier> classifiers)
        Specified by:
        sSetClassifiers in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      • getMetaClassifiersQPropertyName

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

        protected void internalSpecificUpdate()
        Overrides:
        internalSpecificUpdate in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • updateChildrenVisibility

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

        private void updateSpecificationValueVisibility()
      • canAddInstance

        public boolean canAddInstance​(PresentationElement o)
        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 java.lang.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:
        java.lang.Exception
      • setSuppressSlotsCompartment

        public void setSuppressSlotsCompartment​(boolean suppress)
        Suppress compartment
        Parameters:
        suppress - value
      • sSetSuppressSlotsCompartment

        public void sSetSuppressSlotsCompartment​(boolean suppress)
        Suppress compartment
        Parameters:
        suppress - value
      • isSuppressSlotsCompartment

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

        public java.lang.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​(java.lang.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​(java.lang.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​(PropertyManager man)
        Applies properties
        Overrides:
        internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
        Parameters:
        man - 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​(java.util.List<SmartListenerConfig> configurations)
        Overrides:
        createSmartListenerConfig in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • checkElementParentOnAdd

        public boolean checkElementParentOnAdd​(PresentationElement child)
      • internalGetSelfManipulationPreferredSize

        protected UnmodifiableDimension internalGetSelfManipulationPreferredSize()
        Overrides:
        internalGetSelfManipulationPreferredSize in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • getHeaderView

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