|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primus.searchstudio.SpellingTerm
public class SpellingTerm
Spelling term value object.
Field Summary | |
---|---|
protected int |
length
|
protected int |
offset
|
protected java.lang.String |
suggestion
|
protected java.lang.String |
text
|
Constructor Summary | |
---|---|
protected |
SpellingTerm(java.lang.String suggestion,
int offset,
int length)
Constructs new term with specified parameters. |
|
SpellingTerm(java.lang.String text,
java.lang.String suggestion,
int offset,
int length)
Constructs new term with specified parameters. |
Method Summary | |
---|---|
int |
getLength()
Get term length used in the initial query. |
int |
getOffset()
Get term offset in the initial query. |
java.lang.String |
getSuggestion()
Get spell checker suggested text. |
java.lang.String |
getText()
Get spell checker initial text. |
boolean |
isUnknown()
Indicates whether this term is "unknown". |
boolean |
isUnsearchable()
Indicates whether this term is "unsearchable". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int offset
protected int length
protected java.lang.String suggestion
protected java.lang.String text
Constructor Detail |
---|
protected SpellingTerm(java.lang.String suggestion, int offset, int length)
suggestion
- text suggested by spell checkeroffset
- text offsetlength
- text lengthpublic SpellingTerm(java.lang.String text, java.lang.String suggestion, int offset, int length)
text
- current term textsuggestion
- text suggested by spell checkeroffset
- text offsetlength
- text lengthMethod Detail |
---|
public java.lang.String getSuggestion()
public java.lang.String getText()
public int getOffset()
public int getLength()
public boolean isUnknown()
true
if term is "unknown" or false
otherwise.public boolean isUnsearchable()
true
if term is "unsearchable" or false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |