|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for a document in the Information Retrieval Library.
Field Summary | |
static int |
STYLE_BOLD
|
static int |
STYLE_DEEMPHASIZED
|
static int |
STYLE_EMPHSIZED
|
static int |
STYLE_ITALIC
|
Method Summary | |
java.lang.String |
getFullContent()
Returns the unmodified contents of this document. |
java.lang.String |
getIndexibleContent()
Returns a string containing the content of this document which might be indexible. |
java.lang.String |
getStylizedText(int style)
Allows the user to query the document about text which is highlighted in some way. |
int |
numOccurs(java.lang.String w)
The number of times w occurs in the indexible content. |
int |
numUniqueWords()
The number of unique words in the indexible content of the document. |
int |
numWords()
The number of total words in the document. |
void |
setIndexibleContent(java.lang.String content)
Changes the indexible content of the current document to content . |
Field Detail |
public static final int STYLE_ITALIC
public static final int STYLE_BOLD
public static final int STYLE_EMPHSIZED
public static final int STYLE_DEEMPHASIZED
Method Detail |
public java.lang.String getFullContent()
String
valuepublic java.lang.String getIndexibleContent()
String
valuepublic void setIndexibleContent(java.lang.String content)
content
. Can be used by the DocumentFilters
to change the content.
public java.lang.String getStylizedText(int style)
style
- an int
value
String
valuepublic int numOccurs(java.lang.String w)
w
- a String
value
int
valuepublic int numWords()
int
valuepublic int numUniqueWords()
int
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |