public class FileRegexParamFilterAndFactory extends FileRegexFilter implements CustomResultFilterFactory
Modifier and Type | Field and Description |
---|---|
protected char |
delim |
protected boolean |
isExclusion |
protected String |
paramFile |
protected int |
paramIndex |
protected Set<String> |
paramSet |
protected String |
prefixMatch |
patterns
FILTER_ABORT, FILTER_EXCLUDE, FILTER_INCLUDE
Constructor and Description |
---|
FileRegexParamFilterAndFactory() |
Modifier and Type | Method and Description |
---|---|
int |
filterObject(CaptureSearchResult o)
inpect record and determine if it should be included in the
results or not, or if processing of new records should stop.
|
ObjectFilter<CaptureSearchResult> |
get(AccessPoint ap) |
char |
getDelim() |
String |
getParamFile() |
int |
getParamIndex() |
String |
getPrefixMatch() |
boolean |
isExclusion() |
void |
loadParamFile() |
void |
setDelim(char delim) |
void |
setExclusion(boolean isExclusion) |
void |
setParamFile(String paramFile) |
void |
setParamIndex(int paramIndex) |
void |
setPrefixMatch(String prefixMatch) |
getPatterns, setPatterns
protected String paramFile
protected int paramIndex
protected boolean isExclusion
protected char delim
protected String prefixMatch
public void loadParamFile()
public ObjectFilter<CaptureSearchResult> get(AccessPoint ap)
get
in interface CustomResultFilterFactory
ap
- the AccessPoint is usepublic int filterObject(CaptureSearchResult o)
ObjectFilter
filterObject
in interface ObjectFilter<CaptureSearchResult>
filterObject
in class FileRegexFilter
o
- Object which should be checked for inclusion/exclusion or abortpublic String getParamFile()
public void setParamFile(String paramFile)
public int getParamIndex()
public void setParamIndex(int paramIndex)
public boolean isExclusion()
public void setExclusion(boolean isExclusion)
public char getDelim()
public void setDelim(char delim)
public String getPrefixMatch()
public void setPrefixMatch(String prefixMatch)
Copyright © 2005–2017 IIPC. All rights reserved.