public class HunspellAffix
extends java.lang.Object
Constructor and Description |
---|
HunspellAffix() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkCondition(java.lang.CharSequence text)
Checks whether the given text matches the conditional pattern on this affix
|
java.lang.String |
getAppend()
Returns the append defined for the affix
|
char[] |
getAppendFlags()
Returns the flags defined for the affix append
|
java.lang.String |
getCondition()
Returns the condition that must be met before the affix can be applied
|
char |
getFlag()
Returns the affix flag
|
java.lang.String |
getStrip()
Returns the stripping characters defined for the affix
|
boolean |
isCrossProduct()
Returns whether the affix is defined as cross product
|
void |
setAppend(java.lang.String append)
Sets the append defined for the affix
|
void |
setAppendFlags(char[] appendFlags)
Sets the flags defined for the affix append
|
void |
setCondition(java.lang.String condition,
java.lang.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(java.lang.String strip)
Sets the stripping characters defined for the affix
|
public boolean checkCondition(java.lang.CharSequence text)
text
- Text to check if it matches the affix's conditional patterntrue
if the text meets the condition, false
otherwisepublic java.lang.String getAppend()
public void setAppend(java.lang.String append)
append
- Defined append for the affixpublic char[] getAppendFlags()
public void setAppendFlags(char[] appendFlags)
appendFlags
- Flags defined for the affix appendpublic java.lang.String getStrip()
public void setStrip(java.lang.String strip)
strip
- Stripping characters defined for the affixpublic java.lang.String getCondition()
public void setCondition(java.lang.String condition, java.lang.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.