Class KuromojiItem

java.lang.Object
org.codelibs.fess.dict.DictionaryItem
org.codelibs.fess.dict.kuromoji.KuromojiItem

public class KuromojiItem extends DictionaryItem
An item in a Kuromoji dictionary.
  • Constructor Details

    • KuromojiItem

      public KuromojiItem(long id, String token, String segmentation, String reading, String pos)
      Constructs a new Kuromoji item.
      Parameters:
      id - The ID of the item.
      token - The token.
      segmentation - The segmentation.
      reading - The reading.
      pos - The part of speech.
  • Method Details

    • getNewToken

      public String getNewToken()
      Returns the new token.
      Returns:
      The new token.
    • setNewToken

      public void setNewToken(String newToken)
      Sets the new token.
      Parameters:
      newToken - The new token.
    • getNewSegmentation

      public String getNewSegmentation()
      Returns the new segmentation.
      Returns:
      The new segmentation.
    • setNewSegmentation

      public void setNewSegmentation(String newSegmentation)
      Sets the new segmentation.
      Parameters:
      newSegmentation - The new segmentation.
    • getNewReading

      public String getNewReading()
      Returns the new reading.
      Returns:
      The new reading.
    • setNewReading

      public void setNewReading(String newReading)
      Sets the new reading.
      Parameters:
      newReading - The new reading.
    • getNewPos

      public String getNewPos()
      Returns the new part of speech.
      Returns:
      The new part of speech.
    • setNewPos

      public void setNewPos(String newPos)
      Sets the new part of speech.
      Parameters:
      newPos - The new part of speech.
    • getToken

      public String getToken()
      Returns the token.
      Returns:
      The token.
    • getSegmentation

      public String getSegmentation()
      Returns the segmentation.
      Returns:
      The segmentation.
    • getReading

      public String getReading()
      Returns the reading.
      Returns:
      The reading.
    • getPos

      public String getPos()
      Returns the part of speech.
      Returns:
      The part of speech.
    • isUpdated

      public boolean isUpdated()
      Returns true if the item has been updated.
      Returns:
      True if the item has been updated.
    • isDeleted

      public boolean isDeleted()
      Returns true if the item has been deleted.
      Returns:
      True if the item has been deleted.
    • 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()
      Returns the item as a line string.
      Returns:
      The item as a line string.