Package net.sf.basedb.util
Class AutoDetectFileFormat.IsImportableFilter
java.lang.Object
net.sf.basedb.util.AutoDetectFileFormat.IsImportableFilter
- All Implemented Interfaces:
Filter<ContextUtil.ContextResult>
- Enclosing class:
- AutoDetectFileFormat
public static class AutoDetectFileFormat.IsImportableFilter
extends Object
implements Filter<ContextUtil.ContextResult>
Filter implementation that filters a collection of
ContextUtil.ContextResult
:s by checking each plug-ins ability to
import a given file. Eg. the ContextResult is accepted if the
AutoDetectingImporter.isImportable(InputStream)
returns
true. It is assumed that the collection of ContextResult:s only
contains import plug-ins that implements the AutoDetectingImporter
interface.- Version:
- 2.9
- Author:
- Nicklas
- Last modified
- $Date: 2022-12-20 14:16:51 +0100 (Tue, 20 Dec 2022) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionIsImportableFilter
(File file, Filter<? super ContextUtil.ContextResult> parent) -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(ContextUtil.ContextResult result) Evaluate if the given object should pass the filter or not.
-
Field Details
-
file
-
parent
-
-
Constructor Details
-
IsImportableFilter
-
-
Method Details
-
evaluate
Description copied from interface:Filter
Evaluate if the given object should pass the filter or not.- Specified by:
evaluate
in interfaceFilter<ContextUtil.ContextResult>
- Parameters:
result
- The object to evaluate- Returns:
- TRUE if the object passes the filter, FALSE otherwise
-