Class StemmerOverrideItem

java.lang.Object
org.codelibs.fess.dict.DictionaryItem
org.codelibs.fess.dict.stemmeroverride.StemmerOverrideItem

public class StemmerOverrideItem extends DictionaryItem
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.
  • Constructor Details

    • StemmerOverrideItem

      public StemmerOverrideItem(long id, String input, String output)
      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

      public String getNewInput()
      Gets the new input word.
      Returns:
      The new input word.
    • setNewInput

      public void setNewInput(String newInput)
      Sets the new input word.
      Parameters:
      newInput - The new input word.
    • getNewOutput

      public String getNewOutput()
      Gets the new output stem.
      Returns:
      The new output stem.
    • setNewOutput

      public void setNewOutput(String newOutputs)
      Sets the new output stem.
      Parameters:
      newOutputs - The new output stem.
    • getInput

      public String getInput()
      Gets the original input word.
      Returns:
      The original input word.
    • getOutput

      public String 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toLineString

      public String toLineString()
      Converts the item to a string representation for writing to a file.
      Returns:
      A string in the format "input=>output".