Class HunspellAffix
- java.lang.Object
-
- org.apache.lucene.analysis.hunspell.HunspellAffix
-
public class HunspellAffix extends java.lang.ObjectWrapper class representing a hunspell affix
-
-
Constructor Summary
Constructors Constructor Description HunspellAffix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckCondition(java.lang.CharSequence text)Checks whether the given text matches the conditional pattern on this affixjava.lang.StringgetAppend()Returns the append defined for the affixchar[]getAppendFlags()Returns the flags defined for the affix appendjava.lang.StringgetCondition()Returns the condition that must be met before the affix can be appliedchargetFlag()Returns the affix flagjava.lang.StringgetStrip()Returns the stripping characters defined for the affixbooleanisCrossProduct()Returns whether the affix is defined as cross productvoidsetAppend(java.lang.String append)Sets the append defined for the affixvoidsetAppendFlags(char[] appendFlags)Sets the flags defined for the affix appendvoidsetCondition(java.lang.String condition, java.lang.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 flagvoidsetStrip(java.lang.String strip)Sets the stripping characters defined for the affix
-
-
-
Method Detail
-
checkCondition
public boolean checkCondition(java.lang.CharSequence text)
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
public java.lang.String getAppend()
Returns the append defined for the affix- Returns:
- Defined append
-
setAppend
public void setAppend(java.lang.String append)
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
public java.lang.String getStrip()
Returns the stripping characters defined for the affix- Returns:
- Stripping characters defined for the affix
-
setStrip
public void setStrip(java.lang.String strip)
Sets the stripping characters defined for the affix- Parameters:
strip- Stripping characters defined for the affix
-
getCondition
public java.lang.String 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
public void setCondition(java.lang.String condition, java.lang.String pattern)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
-
-