javax.help.search
public class SearchItem extends java.lang.Object
SearchTOCItem
,
SearchEvent
,
SearchListener
Constructor and Description |
---|
SearchItem(java.net.URL base,
java.lang.String title,
java.lang.String lang,
java.lang.String filename,
double confidence,
int begin,
int end,
java.util.Vector concepts)
Constructs a SearchItem
|
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getBase()
Gets the base of the SearchItem.
|
int |
getBegin()
Gets the begin pointer position for the hit.
|
java.util.Enumeration |
getConcepts()
If there are "concepts" against which the query is made, this is an enumeration
of the concepts.
|
double |
getConfidence()
Gets the confidence value for the hit.
|
int |
getEnd()
Gets the ending pointer position.
|
java.lang.String |
getFilename()
Gets the spec (as a URL relative to getBase() ) to the document.
|
java.lang.String |
getLang()
Gets the lang of the SearchItem.
|
java.lang.String |
getTitle()
Gets the title of the SearchItem.
|
java.lang.String |
toString() |
public SearchItem(java.net.URL base, java.lang.String title, java.lang.String lang, java.lang.String filename, double confidence, int begin, int end, java.util.Vector concepts)
base
- The URL to the base from which file is a spec.title
- Title of the itemlang
- A string representation of the locale. A null lang is valid
and represents the default locale.filename
- FileName for the item.confidence
- How closely this matches the params.begin
- Starting position where the (requested) match has been found.end
- Ending position.concepts
- A vector of concepts.public java.net.URL getBase()
public java.lang.String getTitle()
public java.lang.String getLang()
public java.lang.String getFilename()
public double getConfidence()
public int getBegin()
public int getEnd()
public java.util.Enumeration getConcepts()
public java.lang.String toString()
toString
in class java.lang.Object