Interface TypeFilter

    • 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.
      • Methods inherited from interface com.nomagic.magicdraw.ui.ElementFilter

        accept
    • 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.