Class HunspellAffix
java.lang.Object
org.apache.lucene.analysis.hunspell.HunspellAffix
Wrapper class representing a hunspell affix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckCondition(CharSequence text) Checks whether the given text matches the conditional pattern on this affixReturns the append defined for the affixchar[]Returns the flags defined for the affix appendReturns the condition that must be met before the affix can be appliedchargetFlag()Returns the affix flaggetStrip()Returns the stripping characters defined for the affixbooleanReturns whether the affix is defined as cross productvoidSets the append defined for the affixvoidsetAppendFlags(char[] appendFlags) Sets the flags defined for the affix appendvoidsetCondition(String condition, String pattern) Sets the condition that must be met before the affix can be appliedvoidsetCrossProduct(boolean crossProduct) Sets whether the affix is defined as cross productvoidsetFlag(char flag) Sets the affix flagvoidSets the stripping characters defined for the affix
-
Constructor Details
-
HunspellAffix
public HunspellAffix()
-
-
Method Details
-
checkCondition
Checks whether the given text matches the conditional pattern on this affix- Parameters:
text- Text to check if it matches the affix's conditional pattern- Returns:
trueif the text meets the condition,falseotherwise
-
getAppend
Returns the append defined for the affix- Returns:
- Defined append
-
setAppend
Sets the append defined for the affix- Parameters:
append- Defined append for the affix
-
getAppendFlags
public char[] getAppendFlags()Returns the flags defined for the affix append- Returns:
- Flags defined for the affix append
-
setAppendFlags
public void setAppendFlags(char[] appendFlags) Sets the flags defined for the affix append- Parameters:
appendFlags- Flags defined for the affix append
-
getStrip
Returns the stripping characters defined for the affix- Returns:
- Stripping characters defined for the affix
-
setStrip
Sets the stripping characters defined for the affix- Parameters:
strip- Stripping characters defined for the affix
-
getCondition
Returns the condition that must be met before the affix can be applied- Returns:
- Condition that must be met before the affix can be applied
-
setCondition
Sets the condition that must be met before the affix can be applied- Parameters:
condition- Condition to be met before affix applicationpattern- Condition as a regular expression pattern
-
getFlag
public char getFlag()Returns the affix flag- Returns:
- Affix flag
-
setFlag
public void setFlag(char flag) Sets the affix flag- Parameters:
flag- Affix flag
-
isCrossProduct
public boolean isCrossProduct()Returns whether the affix is defined as cross product- Returns:
trueif the affix is cross product,falseotherwise
-
setCrossProduct
public void setCrossProduct(boolean crossProduct) Sets whether the affix is defined as cross product- Parameters:
crossProduct- Whether the affix is defined as cross product
-