Interface TypeFilter
-
- All Superinterfaces:
com.nomagic.magicdraw.ui.ElementFilter
- All Known Implementing Classes:
TypeFilterImpl
@OpenApiAll public interface TypeFilter extends com.nomagic.magicdraw.ui.ElementFilter
Type element filter. Implementation filters element according the element type. OverrideElementFilter.accept(com.nomagic.magicdraw.uml.BaseElement)
method to change the filtering.- See Also:
TypeFilterImpl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
accept(BaseElement obj, boolean checkType)
Tests element to satisfy filter condition.java.util.Collection<?>
getTypes()
Get the acceptable element types.
-
-
-
Method Detail
-
getTypes
@CheckForNull java.util.Collection<?> getTypes()
Get the acceptable element types.- Returns:
- acceptable element types. If null - all element types are accepted.
-
accept
boolean accept(BaseElement obj, boolean checkType)
Tests element to satisfy filter condition.- Parameters:
obj
- element.checkType
- check object type- Returns:
- true if obj satisfies filter condition otherwise false.
-
-