Package org.codelibs.fess.dict.protwords
Class ProtwordsItem
java.lang.Object
org.codelibs.fess.dict.DictionaryItem
org.codelibs.fess.dict.protwords.ProtwordsItem
Dictionary item for protected words.
This class represents a single protected word entry in the dictionary.
-
Field Summary
Fields inherited from class org.codelibs.fess.dict.DictionaryItem
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetInput()Gets the input value for this item.Gets the input value or empty string if null.Gets the new input value for this item.inthashCode()booleanChecks if this item has been deleted.booleanChecks if this item has been updated.voidsetNewInput(String newInput) Sets the new input value for this item.Converts this item to a string representation for writing to file.toString()Methods inherited from class org.codelibs.fess.dict.DictionaryItem
getId
-
Constructor Details
-
ProtwordsItem
Constructor for ProtwordsItem.- Parameters:
id- the unique identifier for this iteminput- the protected word input
-
-
Method Details
-
getNewInput
Gets the new input value for this item.- Returns:
- the new input value
-
setNewInput
Sets the new input value for this item.- Parameters:
newInput- the new input value
-
getInput
Gets the input value for this item.- Returns:
- the input value
-
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() -
equals
-
toString
-
toLineString
Converts this item to a string representation for writing to file.- Returns:
- the string representation of this item
-