Class ExtendablePropertyManager

java.lang.Object
com.nomagic.magicdraw.properties.PropertyManager
com.nomagic.magicdraw.properties.ExtendablePropertyManager
All Implemented Interfaces:
PropertyVisitorAcceptor, PropertyChangeListener, Cloneable, EventListener
Direct Known Subclasses:
PropertyManagerByDiagram, PropertyManagerByStereotype

@OpenApiAll public class ExtendablePropertyManager extends PropertyManager
Property manager which can be specified by another property manager.
  • Field Details

    • removable

      protected boolean removable
      Some property managers by diagram should be fixed and not allowed to be removed.
  • Constructor Details

    • ExtendablePropertyManager

      public ExtendablePropertyManager()
      Construct ExtendablePropertyManager
    • ExtendablePropertyManager

      public ExtendablePropertyManager(PropertyManager parentPropertyManager, String name, List<Property> properties)
      Construct ExtendablePropertyManager with the given argument.
      Parameters:
      parentPropertyManager - Parent of this Property manager
      name - ExtendablePropertyManager 's name.
      properties - List of properties.
    • ExtendablePropertyManager

      public ExtendablePropertyManager(String name, List<Property> properties)
      Construct ExtendablePropertyManager with given arguments.
      Parameters:
      name - Property manager name.
      properties - List of property.
    • ExtendablePropertyManager

      public ExtendablePropertyManager(boolean extendableByDiagram, boolean extendableByStereotype)
      Construct ExtendablePropertyManager with given arguments.
      Parameters:
      extendableByDiagram - extendable by diagram
      extendableByStereotype - extendable by stereotype
  • Method Details

    • isExtendableByDiagram

      public boolean isExtendableByDiagram()
      Tests If ExtendablePropertyManager is ExtendableByDiagram.
      Returns:
      true if this manager can be extended for diagram.
    • setExtendableByDiagram

      public void setExtendableByDiagram(boolean extendableByDiagram)
      Sets this manager extendable by diagram.
      Parameters:
      extendableByDiagram - value
    • isExtendableByStereotype

      public boolean isExtendableByStereotype()
      Tests If ExtendablePropertyManager is ExtendableByStereotype.
      Returns:
      true if this manager can be extended by stereotype.
    • setExtendableByStereotype

      public void setExtendableByStereotype(boolean extendableByStereotype)
      Sets this manager extendable by stereotype.
      Parameters:
      extendableByStereotype - value
    • accept

      public void accept(PropertyVisitor visitor) throws Exception
      Description copied from class: PropertyManager
      Accepts the given visitor.
      Specified by:
      accept in interface PropertyVisitorAcceptor
      Overrides:
      accept in class PropertyManager
      Parameters:
      visitor - the PropertyVisitor.
      Throws:
      Exception
      See Also:
    • getClassType

      public String getClassType()
      Description copied from class: PropertyManager
      Returns property class type.
      Specified by:
      getClassType in interface PropertyVisitorAcceptor
      Overrides:
      getClassType in class PropertyManager
      Returns:
      PropertyID.PROPERTY_MANAGER
      See Also:
    • setSymbolType

      public void setSymbolType(Class symbolType)
      Set symbol type. If set null manager can be used for diagrams.
      Parameters:
      symbolType - symbol type
    • setSymbolType

      public void setSymbolType(Class[] symbolType)
      Set symbol type. If set null manager can be used for diagrams.
      Parameters:
      symbolType - symbol types
    • getSymbolType

      public Class[] getSymbolType()
      Get Symbol type.
      Returns:
      symbol type.
    • isRemovable

      public boolean isRemovable()
      Tests Manager is removable.
      Returns:
      true if manager can be removed using GUI.
    • setRemovable

      public void setRemovable(boolean removable)
      Set Removable flag.
      Parameters:
      removable - true if manager can be removed using GUI.
    • elementIsAllowed

      public boolean elementIsAllowed(DiagramType diagramType)
      Checks If element is allowed by diagram type.
      Parameters:
      diagramType - The given diagram type.
      Returns:
      boolean
    • makeCopy

      public PropertyManager makeCopy()
      Description copied from class: PropertyManager
      Make copy of property.
      Overrides:
      makeCopy in class PropertyManager
      Returns:
      Property Manager.
    • getDefinedIn

      @CheckForNull public com.nomagic.ci.persistence.IProject getDefinedIn()
      Returns:
      module or project where this manager is defined (read from). In case manager is defined in primary project it may return null.
    • setDefinedIn

      public void setDefinedIn(@CheckForNull com.nomagic.ci.persistence.IProject definedIn)
      Set project where this module is read from.
      Parameters:
      definedIn - project where module is defined.