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 Summary
Modifier and TypeMethodDescriptionbooleanacceptsCategory(ISourceSinkCategory category) Checks whether methods from the given category shall be parsed or notfilter(ISourceSinkCategory category, SourceSinkType sourceSinkType) Filters sources and sinks by category
-
Method Details
-
acceptsCategory
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
Filters sources and sinks by category- Parameters:
category- The category in which the source or sink is definedsourceSinkType- 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.
-