Class ProtwordsItem

java.lang.Object
org.codelibs.fess.dict.DictionaryItem
org.codelibs.fess.dict.protwords.ProtwordsItem

public class ProtwordsItem extends DictionaryItem
Dictionary item for protected words. This class represents a single protected word entry in the dictionary.
  • Constructor Details

    • ProtwordsItem

      public ProtwordsItem(long id, String input)
      Constructor for ProtwordsItem.
      Parameters:
      id - the unique identifier for this item
      input - the protected word input
  • Method Details

    • getNewInput

      public String getNewInput()
      Gets the new input value for this item.
      Returns:
      the new input value
    • setNewInput

      public void setNewInput(String newInput)
      Sets the new input value for this item.
      Parameters:
      newInput - the new input value
    • getInput

      public String getInput()
      Gets the input value for this item.
      Returns:
      the input value
    • getInputValue

      public String getInputValue()
      Gets the input value or empty string if null.
      Returns:
      the input value or empty string
    • isUpdated

      public boolean isUpdated()
      Checks if this item has been updated.
      Returns:
      true if updated, false otherwise
    • isDeleted

      public boolean isDeleted()
      Checks if this item has been deleted.
      Returns:
      true if deleted, 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 this item to a string representation for writing to file.
      Returns:
      the string representation of this item