Interface AbstractXMLSourceSinkParser.ICategoryFilter

All Known Implementing Classes:
ConfigurationBasedCategoryFilter
Enclosing class:
AbstractXMLSourceSinkParser

public static interface AbstractXMLSourceSinkParser.ICategoryFilter
Filter interface for excluding certain categories from the source/sink set.
Author:
Steven Arzt
  • Method Details

    • acceptsCategory

      boolean acceptsCategory(ISourceSinkCategory category)
      Checks whether methods from the given category shall be parsed or not
      Parameters:
      category - The category in which the source or sink is defined
      Returns:
      True if the given category shall be parsed, otherwise false
    • filter

      SourceSinkType filter(ISourceSinkCategory category, SourceSinkType sourceSinkType)
      Filters sources and sinks by category
      Parameters:
      category - The category in which the source or sink is defined
      sourceSinkType - Specifies whether the category is used for sources or sinks
      Returns:
      The acceptable use of the given category. This is a reduction from the given type. If the requested type, for example, is "Both", this method may return "Source", if the category shall only be used for sources, but not for sinks.