Class ProjectFilter

  • All Implemented Interfaces:
    IConfigurationFilter

    class ProjectFilter
    extends java.lang.Object
    implements IConfigurationFilter
    A project-based filter, i.e., all elements contained in a project shall be included by this filter.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • ProjectFilter

        public ProjectFilter​(Project project,
                             boolean considerImports)
        Creates a filter.
        Parameters:
        project - the project to filter for
        considerImports - the imports of project
      • ProjectFilter

        public ProjectFilter​(Project project,
                             boolean considerImports,
                             IConfigurationFilter further)
        Creates a filter.
        Parameters:
        project - the project to filter for (may be null, then the filter rejects all elements)
        considerImports - the imports of project
        further - an (optional) filter to be considered (may be null)
    • Method Detail

      • include

        private boolean include​(IvmlElement element,
                                Project project,
                                java.util.Set<Project> done)
        Checks whether element shall be included due to its membership in project.
        Parameters:
        element - the element to consider
        project - the project to ask for element
        done - already considered projects to control cyclic imports
        Returns:
        true if element shall be included, false else
      • include

        public boolean include​(IvmlElement element)
        Description copied from interface: IConfigurationFilter
        Returns whether a given element shall be included.
        Specified by:
        include in interface IConfigurationFilter
        Parameters:
        element - the element to be tested
        Returns:
        true if element shall be included, false else
      • checkFurther

        private boolean checkFurther​(IvmlElement element,
                                     boolean result)
        Checks whether further applies.
        Parameters:
        element - the element to be tested
        result - the result determined for including element so far
        Returns:
        true if element shall be included, false else