public class MeaningDetectorImpl extends java.lang.Object implements MeaningDetector
Constructor and Description |
---|
MeaningDetectorImpl(Library lib) |
Modifier and Type | Method and Description |
---|---|
void |
addMeaning(java.lang.String name,
SearchField.Meaning meaning)
Adds a meaning to this MeaningDetector.
|
SearchField |
detectMeaning(SearchField field) |
java.util.Set<java.lang.String> |
getIgnoredFields() |
public MeaningDetectorImpl(Library lib)
public SearchField detectMeaning(SearchField field)
detectMeaning
in interface MeaningDetector
public void addMeaning(java.lang.String name, SearchField.Meaning meaning)
name
- the name of the fieldmeaning
- the meaning to assignpublic java.util.Set<java.lang.String> getIgnoredFields() throws java.io.IOException, org.json.JSONException
java.io.IOException
org.json.JSONException