public static class AutoDetectFileFormat.IsImportableFilter extends Object implements Filter<ContextUtil.ContextResult>
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.Modifier and Type | Field and Description |
---|---|
private File |
file |
private Filter<? super ContextUtil.ContextResult> |
parent |
Constructor and Description |
---|
IsImportableFilter(File file,
Filter<? super ContextUtil.ContextResult> parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(ContextUtil.ContextResult result)
Evaluate if the given object should pass the filter or not.
|
private File file
private Filter<? super ContextUtil.ContextResult> parent
public IsImportableFilter(File file, Filter<? super ContextUtil.ContextResult> parent)
public boolean evaluate(ContextUtil.ContextResult result)
Filter
evaluate
in interface Filter<ContextUtil.ContextResult>
result
- The object to evaluate