@OpenApiAll
public abstract class FilterSettings
extends java.lang.Object
implements com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
Constructor and Description |
---|
FilterSettings(Stereotype filterStereotype,
Diagram matrixElement)
Initializes access to the filter settings element
|
Modifier and Type | Method and Description |
---|---|
static <T> java.util.List<T> |
castList(java.util.List listValue)
Checks if provided list is not EmptyList.
|
java.util.Collection<Element> |
getAdditionalElements() |
java.util.List<Element> |
getElementTypes()
Element types for rows/columns
|
abstract java.lang.String |
getElementTypesTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value
|
protected Stereotype |
getFilterStereotype() |
protected Diagram |
getMatrixElement() |
Project |
getProject() |
java.util.List<java.lang.String> |
getPropertyFilter()
Dependency Matrix Property filter property
|
abstract java.lang.String |
getPropertyFilterTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value
|
com.nomagic.magicdraw.expressions.specification.ExpressionSpecification |
getQuery()
Dependency Matrix Property query
|
java.util.Collection<java.lang.String> |
getQueryExpressions() |
abstract java.lang.String |
getQueryTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value
|
java.util.Collection<Element> |
getRemovedElements()
Dependency matrix removed element property
|
abstract java.lang.String |
getRemovedElementsTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value
|
java.util.Collection<Element> |
getScope()
Deprecated.
use com.nomagic.magicdraw.dependencymatrix.persistence.FilterSettings#getScopeRoots()
|
abstract java.lang.String |
getScopeDefinedTagName() |
java.util.Collection<Element> |
getScopeRoots() |
abstract java.lang.String |
getScopeTagName()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value
|
abstract java.lang.String |
getTypesIncludeSubtypes()
Stereotype tag name of the dependency matrix filter stereotype, used to get the property value
|
boolean |
isElementTypesDefined() |
boolean |
isRemoveChildrenOfRemovedElements() |
boolean |
isScopeDefined() |
boolean |
isTypesIncludeSubtypes()
Include subtypes element filter property
|
void |
setConvertedElementTypes(java.util.List<java.lang.Object> types)
Converts element types and saves them as the diagram setting
|
void |
setElementTypes(java.util.List<Element> types)
Set element types for diagram
|
void |
setPropertyFilter(java.util.List<java.lang.String> propertyFilter)
Dependency Matrix Property filter property
|
void |
setQuery(java.util.Collection<java.lang.String> expressions)
Dependency Matrix Property query
|
void |
setRemovedElements(java.util.Collection<Element> removedElements)
update Dependency matrix removed element property
|
void |
setScope(java.util.Collection<Element> scope)
Dependency matrix scope property
|
void |
setScopeDefined(boolean confirmed)
Set scope confirmation flag
|
void |
setTypesIncludeSubtypes(boolean include)
Include subtypes element filter property
|
public FilterSettings(Stereotype filterStereotype, Diagram matrixElement)
filterStereotype
- filter settings stereotypematrixElement
- element with settingspublic static <T> java.util.List<T> castList(java.util.List listValue)
listValue
- checked listpublic java.util.List<Element> getElementTypes()
getElementTypes
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
public boolean isElementTypesDefined()
isElementTypesDefined
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
public void setElementTypes(java.util.List<Element> types)
types
- list of metaclass or stereotype instancepublic void setConvertedElementTypes(java.util.List<java.lang.Object> types)
types
- element typespublic java.util.Collection<Element> getScopeRoots()
getScopeRoots
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
@Deprecated public java.util.Collection<Element> getScope()
public void setScope(java.util.Collection<Element> scope)
scope
- scope element collectionpublic java.util.Collection<Element> getRemovedElements()
getRemovedElements
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
public boolean isRemoveChildrenOfRemovedElements()
isRemoveChildrenOfRemovedElements
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
public void setRemovedElements(java.util.Collection<Element> removedElements)
removedElements
- element removed from the scopepublic boolean isTypesIncludeSubtypes()
isTypesIncludeSubtypes
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
public void setTypesIncludeSubtypes(boolean include)
include
- if all subtypes should be acceptedpublic java.util.List<java.lang.String> getPropertyFilter()
getPropertyFilter
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
public void setPropertyFilter(java.util.List<java.lang.String> propertyFilter)
propertyFilter
- property filter values@CheckForNull public com.nomagic.magicdraw.expressions.specification.ExpressionSpecification getQuery()
public void setQuery(@CheckForNull java.util.Collection<java.lang.String> expressions)
expressions
- query string expressionspublic abstract java.lang.String getElementTypesTagName()
public abstract java.lang.String getScopeTagName()
public abstract java.lang.String getRemovedElementsTagName()
public abstract java.lang.String getTypesIncludeSubtypes()
public abstract java.lang.String getPropertyFilterTagName()
public abstract java.lang.String getScopeDefinedTagName()
public abstract java.lang.String getQueryTagName()
protected Stereotype getFilterStereotype()
protected Diagram getMatrixElement()
public Project getProject()
getProject
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
public void setScopeDefined(boolean confirmed)
confirmed
- flag valuepublic boolean isScopeDefined()
isScopeDefined
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
@CheckForNull public java.util.Collection<java.lang.String> getQueryExpressions()
getQueryExpressions
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings
public java.util.Collection<Element> getAdditionalElements()
getAdditionalElements
in interface com.nomagic.magicdraw.ui.diagrams.scope.ScopeSettings