Package org.codelibs.fess.dict.kuromoji
Class KuromojiItem
java.lang.Object
org.codelibs.fess.dict.DictionaryItem
org.codelibs.fess.dict.kuromoji.KuromojiItem
An item in a Kuromoji dictionary.
-
Field Summary
Fields inherited from class org.codelibs.fess.dict.DictionaryItem
id -
Constructor Summary
ConstructorsConstructorDescriptionKuromojiItem(long id, String token, String segmentation, String reading, String pos) Constructs a new Kuromoji item. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the new part of speech.Returns the new reading.Returns the new segmentation.Returns the new token.getPos()Returns the part of speech.Returns the reading.Returns the segmentation.getToken()Returns the token.inthashCode()booleanReturns true if the item has been deleted.booleanReturns true if the item has been updated.voidSets the new part of speech.voidsetNewReading(String newReading) Sets the new reading.voidsetNewSegmentation(String newSegmentation) Sets the new segmentation.voidsetNewToken(String newToken) Sets the new token.Returns the item as a line string.toString()Methods inherited from class org.codelibs.fess.dict.DictionaryItem
getId
-
Constructor Details
-
KuromojiItem
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
Returns the new token.- Returns:
- The new token.
-
setNewToken
Sets the new token.- Parameters:
newToken- The new token.
-
getNewSegmentation
Returns the new segmentation.- Returns:
- The new segmentation.
-
setNewSegmentation
Sets the new segmentation.- Parameters:
newSegmentation- The new segmentation.
-
getNewReading
Returns the new reading.- Returns:
- The new reading.
-
setNewReading
Sets the new reading.- Parameters:
newReading- The new reading.
-
getNewPos
Returns the new part of speech.- Returns:
- The new part of speech.
-
setNewPos
Sets the new part of speech.- Parameters:
newPos- The new part of speech.
-
getToken
Returns the token.- Returns:
- The token.
-
getSegmentation
Returns the segmentation.- Returns:
- The segmentation.
-
getReading
Returns the reading.- Returns:
- The reading.
-
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() -
equals
-
toString
-
toLineString
Returns the item as a line string.- Returns:
- The item as a line string.
-