Class PersistenceManager
- java.lang.Object
-
- com.nomagic.magicdraw.dependencymatrix.persistence.PersistenceManager
-
@OpenApiAll public class PersistenceManager extends java.lang.Object
All main matrix settings holder, which holds the references to the row, column and all general Dependency Matrix settings
-
-
Field Summary
Fields Modifier and Type Field Description private FilterSettings
columnFilterSettings
Filter for dependency matrix columnsprivate MatrixSettings
matrixSettings
Diagram settings from diagram elementprivate FilterSettings
rowFilterSettings
Filter for dependency matrix rows
-
Constructor Summary
Constructors Modifier Constructor Description protected
PersistenceManager()
Used to initialize quick tests.PersistenceManager(Diagram diagram)
Initializes matrix settings component from provided Diagram element
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterSettings
getColumnSettings()
Column filter settingsMatrixSettings
getMatrixSettings()
General matrix settingsProject
getProject()
Returns project of this matrixFilterSettings
getRowSettings()
Row filter settingsprivate static boolean
hasElementTypesDefined(FilterSettings settings)
Getting full stereotype value might take long if all (many) element types are selected This method checks if slot exists and has at least some valueboolean
isMainCriteriaDefined()
-
-
-
Field Detail
-
matrixSettings
private MatrixSettings matrixSettings
Diagram settings from diagram element
-
rowFilterSettings
private FilterSettings rowFilterSettings
Filter for dependency matrix rows
-
columnFilterSettings
private FilterSettings columnFilterSettings
Filter for dependency matrix columns
-
-
Constructor Detail
-
PersistenceManager
public PersistenceManager(Diagram diagram)
Initializes matrix settings component from provided Diagram element- Parameters:
diagram
- Matrix element
-
PersistenceManager
protected PersistenceManager()
Used to initialize quick tests.
-
-
Method Detail
-
getMatrixSettings
public MatrixSettings getMatrixSettings()
General matrix settings- Returns:
- settings for whole dependency matrix
-
getRowSettings
public FilterSettings getRowSettings()
Row filter settings- Returns:
- settings of the row filter
-
getColumnSettings
public FilterSettings getColumnSettings()
Column filter settings- Returns:
- settings of the column filter
-
getProject
public Project getProject()
Returns project of this matrix- Returns:
- project instance
-
isMainCriteriaDefined
public boolean isMainCriteriaDefined()
- Returns:
- true if row element type, row scope, column element type, column scope and dependency criteria are all defined in these settings
-
hasElementTypesDefined
private static boolean hasElementTypesDefined(FilterSettings settings)
Getting full stereotype value might take long if all (many) element types are selected This method checks if slot exists and has at least some value
-
-