Package eu.clarin.sru.client
Class SRUTerm
- java.lang.Object
-
- eu.clarin.sru.client.SRUTerm
-
public final class SRUTerm extends Object
Class to hold a single entry from a scan response.- See Also:
SRUScanResponse
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayTerm()Get A string to display to the end user in place of the term itself.DocumentFragmentgetExtraTermData()Get extra term data for this term.intgetNumberOfRecords()Get the number of records which would me matched by the term.StringgetValue()Get the term as it appeared in the index.SRUWhereInListgetWhereInList()Get the flag to indicate the position of the term within the complete term list.booleanhasExtraTermData()Check, if this term has extra term data attached to it.
-
-
-
Method Detail
-
getValue
public String getValue()
Get the term as it appeared in the index.- Returns:
- the value of the term
-
getNumberOfRecords
public int getNumberOfRecords()
Get the number of records which would me matched by the term.- Returns:
- the number of record or
-1if unknown
-
getDisplayTerm
public String getDisplayTerm()
Get A string to display to the end user in place of the term itself.- Returns:
- a display string or
nullif unknown
-
getWhereInList
public SRUWhereInList getWhereInList()
Get the flag to indicate the position of the term within the complete term list.- Returns:
- the flag or
nullif unknown
-
getExtraTermData
public DocumentFragment getExtraTermData()
Get extra term data for this term.- Returns:
- get an instance of
DocumentFragmentcontaining the XML fragment for the extra term data from the SRU response ornullif none are available
-
hasExtraTermData
public boolean hasExtraTermData()
Check, if this term has extra term data attached to it.- Returns:
trueif extra term data is attached,falseotherwise
-
-