public class SearchTerm extends DocFilter
Constructor and Description |
---|
SearchTerm(java.lang.String term)
Create a new SearchTerm filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(DataRecord rec)
Return whether the DataRecord is accepted by this filter.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getTerm() |
int |
hashCode()
Return the hash code for this SearchTerm
|
boolean |
matchDoc(DocData doc)
Return whether the represented document is accepted by this filter.
|
java.lang.String |
toString()
Return a string representation of this search.
|
accept, filterDocuments, getTag, setTag
filterRecords
public SearchTerm(java.lang.String term)
term
- the term to search forpublic boolean accept(DataRecord rec)
accept
in class DataFilter
rec
- the data record to match.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getTerm()
public int hashCode()
hashCode
in class java.lang.Object
public boolean matchDoc(DocData doc)
public java.lang.String toString()
toString
in class java.lang.Object