Class FilterSettings
- java.lang.Object
 - 
- com.nomagic.magicdraw.dependencymatrix.persistence.FilterSettings
 
 
- 
- All Implemented Interfaces:
 com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
@OpenApiAll public abstract class FilterSettings extends java.lang.Object implements com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettingsProvides generic ability to access row or column filter settings. Settings are stored directly in the Dependency Matrix diagram element, and retrieved directly 
- 
- 
Constructor Summary
Constructors Constructor Description FilterSettings(Diagram diagram)Initializes access to the filter settings elementFilterSettings(Diagram diagram, Stereotype filterStereotype) 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> java.util.List<T>castList(java.util.List listValue)Checks if provided list is not EmptyList.java.util.Collection<Element>getAdditionalElements()Additional scope elements settingjava.util.List<Element>getElementTypes()Element types for rows/columnsabstract java.lang.StringgetElementTypesTagName()Stereotype tag name of the dependency matrix filter stereotype, used to get the property valueprotected StereotypegetFilterStereotype()protected DiagramgetMatrixElement()ProjectgetProject()Project of these settingsjava.util.List<java.lang.String>getPropertyFilter()Dependency Matrix Property filter propertyabstract java.lang.StringgetPropertyFilterTagName()Stereotype tag name of the dependency matrix filter stereotype, used to get the property valuejava.lang.StringgetQueryExpression()abstract java.lang.StringgetQueryTagName()Stereotype tag name of the dependency matrix filter stereotype, used to get the property valuejava.util.Collection<Element>getRemovedElements()Dependency matrix removed element propertyabstract java.lang.StringgetRemovedElementsTagName()Stereotype tag name of the dependency matrix filter stereotype, used to get the property valuejava.util.Collection<Element>getScope()Deprecated.use com.nomagic.magicdraw.dependencymatrix.persistence.FilterSettings#getScopeRoots()abstract java.lang.StringgetScopeDefinedTagName()java.util.Collection<Element>getScopeRoots()Root elements of the scope.abstract java.lang.StringgetScopeTagName()Stereotype tag name of the dependency matrix filter stereotype, used to get the property valueabstract java.lang.StringgetTypesIncludeCustomTypes()Stereotype tag name of the dependency matrix filter stereotype, used to get the property valueabstract java.lang.StringgetTypesIncludeSubtypes()Stereotype tag name of the dependency matrix filter stereotype, used to get the property valuebooleanisElementTypesDefined()booleanisIncludeAdditionalContent()booleanisRemoveChildrenOfRemovedElements()Indicates if children of removed elements should be removed too.booleanisScopeDefined()booleanisTypesIncludeCustomTypes()Include custom types element filter propertybooleanisTypesIncludeSubtypes()Include subtypes element filter propertyvoidsetConvertedElementTypes(java.util.List<java.lang.Object> types)Converts element types and saves them as the diagram settingvoidsetElementTypes(java.util.List<Element> types)Set element types for diagramvoidsetIncludeAdditionalContent(boolean includeAdditionalContent)voidsetPropertyFilter(java.util.List<java.lang.String> propertyFilter)Dependency Matrix Property filter propertyvoidsetQueryExpression(java.lang.String expression)voidsetRemovedElements(java.util.Collection<Element> removedElements)update Dependency matrix removed element propertyvoidsetScope(java.util.Collection<Element> scope)Dependency matrix scope propertyvoidsetScopeDefined(boolean confirmed)Set scope confirmation flagvoidsetTypesIncludeCustomTypes(boolean includeCustomTypes)Include subtypes element filter propertyvoidsetTypesIncludeSubtypes(boolean includeSubtypes)Include subtypes element filter property 
 - 
 
- 
- 
Constructor Detail
- 
FilterSettings
public FilterSettings(Diagram diagram)
Initializes access to the filter settings element- Parameters:
 diagram- matrix diagram
 
- 
FilterSettings
public FilterSettings(Diagram diagram, Stereotype filterStereotype)
 
 - 
 
- 
Method Detail
- 
castList
public static <T> java.util.List<T> castList(java.util.List listValue)
Checks if provided list is not EmptyList. If so - returns new list. Otherwise - returns the same list- Parameters:
 listValue- checked list- Returns:
 - list or new list
 
 
- 
getElementTypes
public java.util.List<Element> getElementTypes()
Element types for rows/columns- Specified by:
 getElementTypesin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - ist of metaclass or stereotype instance
 
 
- 
isElementTypesDefined
public boolean isElementTypesDefined()
- Specified by:
 isElementTypesDefinedin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - when true and getElementTypes() is empty, means that elements of any type can be in the scope. when false and getElementTypes() is empty, means that no types are accepted so the scope is empty
 
 
- 
setElementTypes
public void setElementTypes(java.util.List<Element> types)
Set element types for diagram- Parameters:
 types- list of metaclass or stereotype instance
 
- 
setConvertedElementTypes
public void setConvertedElementTypes(java.util.List<java.lang.Object> types)
Converts element types and saves them as the diagram setting- Parameters:
 types- element types
 
- 
getScopeRoots
public java.util.Collection<Element> getScopeRoots()
Description copied from interface:com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettingsRoot elements of the scope. Those elements and their children can be included into the scope- Specified by:
 getScopeRootsin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - scope root elements, used when collecting all elements in the scope
 
 
- 
getScope
@Deprecated public java.util.Collection<Element> getScope()
Deprecated.use com.nomagic.magicdraw.dependencymatrix.persistence.FilterSettings#getScopeRoots() 
- 
setScope
public void setScope(java.util.Collection<Element> scope)
Dependency matrix scope property- Parameters:
 scope- scope element collection
 
- 
getRemovedElements
public java.util.Collection<Element> getRemovedElements()
Dependency matrix removed element property- Specified by:
 getRemovedElementsin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - element removed from the scope
 
 
- 
isRemoveChildrenOfRemovedElements
public boolean isRemoveChildrenOfRemovedElements()
Description copied from interface:com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettingsIndicates if children of removed elements should be removed too.- Specified by:
 isRemoveChildrenOfRemovedElementsin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - true if children of removed elements should be removed.
 
 
- 
setRemovedElements
public void setRemovedElements(java.util.Collection<Element> removedElements)
update Dependency matrix removed element property- Parameters:
 removedElements- element removed from the scope
 
- 
isTypesIncludeSubtypes
public boolean isTypesIncludeSubtypes()
Include subtypes element filter property- Specified by:
 isTypesIncludeSubtypesin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - true if all subtypes should be accepted
 
 
- 
setTypesIncludeSubtypes
public void setTypesIncludeSubtypes(boolean includeSubtypes)
Include subtypes element filter property- Parameters:
 includeSubtypes- if all subtypes should be accepted
 
- 
isTypesIncludeCustomTypes
public boolean isTypesIncludeCustomTypes()
Include custom types element filter property- Specified by:
 isTypesIncludeCustomTypesin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - true if all subtypes should be accepted
 
 
- 
setTypesIncludeCustomTypes
public void setTypesIncludeCustomTypes(boolean includeCustomTypes)
Include subtypes element filter property- Parameters:
 includeCustomTypes- if all custom types should be accepted
 
- 
getPropertyFilter
public java.util.List<java.lang.String> getPropertyFilter()
Dependency Matrix Property filter property- Specified by:
 getPropertyFilterin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - property filter values
 
 
- 
setPropertyFilter
public void setPropertyFilter(java.util.List<java.lang.String> propertyFilter)
Dependency Matrix Property filter property- Parameters:
 propertyFilter- property filter values
 
- 
setQueryExpression
public void setQueryExpression(@CheckForNull java.lang.String expression)- Parameters:
 expression- query string expression
 
- 
getElementTypesTagName
public abstract java.lang.String getElementTypesTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value- Returns:
 - tag name
 
 
- 
getScopeTagName
public abstract java.lang.String getScopeTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value- Returns:
 - tag name
 
 
- 
getRemovedElementsTagName
public abstract java.lang.String getRemovedElementsTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value- Returns:
 - tag name
 
 
- 
getTypesIncludeSubtypes
public abstract java.lang.String getTypesIncludeSubtypes()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value- Returns:
 - tag name
 
 
- 
getTypesIncludeCustomTypes
public abstract java.lang.String getTypesIncludeCustomTypes()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value- Returns:
 - tag name
 
 
- 
getPropertyFilterTagName
public abstract java.lang.String getPropertyFilterTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value- Returns:
 - tag name
 
 
- 
getScopeDefinedTagName
public abstract java.lang.String getScopeDefinedTagName()
 
- 
getQueryTagName
public abstract java.lang.String getQueryTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value- Returns:
 - tag name
 
 
- 
getFilterStereotype
protected Stereotype getFilterStereotype()
 
- 
getMatrixElement
protected Diagram getMatrixElement()
 
- 
getProject
public Project getProject()
Description copied from interface:com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettingsProject of these settings- Specified by:
 getProjectin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - project
 
 
- 
setScopeDefined
public void setScopeDefined(boolean confirmed)
Set scope confirmation flag- Parameters:
 confirmed- flag value
 
- 
isScopeDefined
public boolean isScopeDefined()
- Specified by:
 isScopeDefinedin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - true if scope is defined. If scope is empty and defined, it means whole project.
 
 
- 
setIncludeAdditionalContent
public void setIncludeAdditionalContent(boolean includeAdditionalContent)
 
- 
isIncludeAdditionalContent
public boolean isIncludeAdditionalContent()
- Specified by:
 isIncludeAdditionalContentin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - true if it should retrieve additional content when collecting elements.
 
 
- 
getQueryExpression
@CheckForNull public java.lang.String getQueryExpression()
- Specified by:
 getQueryExpressionin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
 
- 
getAdditionalElements
public java.util.Collection<Element> getAdditionalElements()
Description copied from interface:com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettingsAdditional scope elements setting- Specified by:
 getAdditionalElementsin interfacecom.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings- Returns:
 - additionally added elements to the scope
 
 
 - 
 
 -