public class HunspellAffix extends Object
Constructor | Description |
---|---|
HunspellAffix() |
Modifier and Type | Method | Description |
---|---|---|
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
|
public boolean checkCondition(CharSequence text)
text
- Text to check if it matches the affix's conditional patterntrue
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 productCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.