Class StemmerOverrideItem
java.lang.Object
org.codelibs.fess.dict.DictionaryItem
org.codelibs.fess.dict.stemmeroverride.StemmerOverrideItem
Represents an item in a stemmer override dictionary.
This class stores a mapping from an input word to its corresponding
output stem. It also tracks updated values for the item.
-
Field Summary
Fields inherited from class org.codelibs.fess.dict.DictionaryItem
id -
Constructor Summary
ConstructorsConstructorDescriptionStemmerOverrideItem(long id, String input, String output) Constructs a new stemmer override item. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetInput()Gets the original input word.Gets the new input word.Gets the new output stem.Gets the original output stem.inthashCode()booleanChecks if the item has been marked for deletion.booleanChecks if the item has been updated.voidsetNewInput(String newInput) Sets the new input word.voidsetNewOutput(String newOutputs) Sets the new output stem.Converts the item to a string representation for writing to a file.toString()Methods inherited from class org.codelibs.fess.dict.DictionaryItem
getId
-
Constructor Details
-
StemmerOverrideItem
Constructs a new stemmer override item.- Parameters:
id- The unique identifier of the item.input- The input word.output- The output stem.
-
-
Method Details
-
getNewInput
Gets the new input word.- Returns:
- The new input word.
-
setNewInput
Sets the new input word.- Parameters:
newInput- The new input word.
-
getNewOutput
Gets the new output stem.- Returns:
- The new output stem.
-
setNewOutput
Sets the new output stem.- Parameters:
newOutputs- The new output stem.
-
getInput
Gets the original input word.- Returns:
- The original input word.
-
getOutput
Gets the original output stem.- Returns:
- The original output stem.
-
isUpdated
public boolean isUpdated()Checks if the item has been updated.- Returns:
- true if the item has been updated, false otherwise.
-
isDeleted
public boolean isDeleted()Checks if the item has been marked for deletion.- Returns:
- true if the item is marked for deletion, false otherwise.
-
hashCode
public int hashCode() -
equals
-
toString
-
toLineString
Converts the item to a string representation for writing to a file.- Returns:
- A string in the format "input=>output".
-