Class ExtendablePropertyManager

    • Field Detail

      • removable

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

      • ExtendablePropertyManager

        public ExtendablePropertyManager()
        Construct ExtendablePropertyManager
      • ExtendablePropertyManager

        public ExtendablePropertyManager​(PropertyManager parentPropertyManager,
                                         java.lang.String name,
                                         java.util.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​(java.lang.String name,
                                         java.util.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 Detail

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

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

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

        public java.lang.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
      • getDefinedIn

        @CheckForNull
        public 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
                                 IProject definedIn)
        Set project where this module is read from.
        Parameters:
        definedIn - project where module is defined.