|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.hdf.cdnavigator.FullTextParse
public class FullTextParse
Parse fulltext string to words and operators.
| Field Summary | |
|---|---|
private int |
index
index to actual word |
static int |
OPERATOR_AND
operator and |
static int |
OPERATOR_OR
operator or |
private java.util.List |
operators
parsed operators |
private java.util.List |
words
parsed words |
| Constructor Summary | |
|---|---|
FullTextParse()
Initialize class. |
|
| Method Summary | |
|---|---|
int |
getNextOperator()
Return actual operator for actual word. |
java.lang.String |
getNextWord()
Return actual word and shift words index to next word. |
private int |
getOperator(java.lang.String _word)
Get operator for this word. |
boolean |
hasNextWord()
Exist next word? |
void |
initialize(java.lang.String _fullText)
Parse fulltext string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OPERATOR_AND
public static final int OPERATOR_OR
private java.util.List words
private java.util.List operators
private int index
| Constructor Detail |
|---|
public FullTextParse()
| Method Detail |
|---|
public void initialize(java.lang.String _fullText)
_fullText - private int getOperator(java.lang.String _word)
_word -
public java.lang.String getNextWord()
public int getNextOperator()
public boolean hasNextWord()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||