|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.analysis.hunspell.HunspellAffix
public class HunspellAffix
Wrapper class representing a hunspell affix
| Constructor Summary | |
|---|---|
HunspellAffix()
|
|
| Method Summary | |
|---|---|
boolean |
checkCondition(CharSequence text)
Checks whether the given text matches the conditional pattern on this affix |
String |
getAppend()
Returns the append defined for the affix |
char[] |
getAppendFlags()
Returns the flags defined for the affix append |
String |
getCondition()
Returns the condition that must be met before the affix can be applied |
char |
getFlag()
Returns the affix flag |
String |
getStrip()
Returns the stripping characters defined for the affix |
boolean |
isCrossProduct()
Returns whether the affix is defined as cross product |
void |
setAppend(String append)
Sets the append defined for the affix |
void |
setAppendFlags(char[] appendFlags)
Sets the flags defined for the affix append |
void |
setCondition(String condition,
String pattern)
Sets the condition that must be met before the affix can be applied |
void |
setCrossProduct(boolean crossProduct)
Sets whether the affix is defined as cross product |
void |
setFlag(char flag)
Sets the affix flag |
void |
setStrip(String strip)
Sets the stripping characters defined for the affix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HunspellAffix()
| Method Detail |
|---|
public boolean checkCondition(CharSequence text)
text - Text to check if it matches the affix's conditional pattern
true if the text meets the condition, false otherwisepublic String getAppend()
public void setAppend(String append)
append - Defined append for the affixpublic char[] getAppendFlags()
public void setAppendFlags(char[] appendFlags)
appendFlags - Flags defined for the affix appendpublic String getStrip()
public void setStrip(String strip)
strip - Stripping characters defined for the affixpublic String getCondition()
public void setCondition(String condition,
String pattern)
condition - Condition to be met before affix applicationpattern - Condition as a regular expression patternpublic char getFlag()
public void setFlag(char flag)
flag - Affix flagpublic boolean isCrossProduct()
true if the affix is cross product, false otherwisepublic void setCrossProduct(boolean crossProduct)
crossProduct - Whether the affix is defined as cross product
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||