Class DictionaryModel
java.lang.Object
com.iqser.red.service.redaction.v1.server.model.dictionary.DictionaryModel
- All Implemented Interfaces:
Serializable
Represents a model of a dictionary containing entries for redaction processes.
It includes various types of entries such as standard entries, false positives,
and false recommendations. Additionally, it manages local entries with matched
rules for enhanced search and matching capabilities.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDictionaryModel
(String type, int rank, float[] color, boolean caseInsensitive, boolean hint, Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel> entries, Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel> falsePositives, Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel> falseRecommendations, boolean isDossierDictionary) Constructs a new DictionaryModel with specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
float[]
getColor()
com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation
Returns the search implementation for deleted dictionary entries.Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel>
com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation
Returns the search implementation for non-deleted dictionary entries.Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel>
com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation
Returns the search implementation for non-deleted false positive entries.Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel>
com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation
Returns the search implementation for non-deleted false recommendation entries.com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation
Returns the search implementation for local entries.Retrieves the matched rules for a given value from the local dictionary entries.int
getRank()
getType()
int
hashCode()
boolean
boolean
boolean
isHint()
void
setDeletionEntriesSearch
(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation deletionEntriesSearch) void
setEntriesSearch
(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation entriesSearch) void
setFalsePositiveSearch
(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation falsePositiveSearch) void
setFalseRecommendationsSearch
(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation falseRecommendationsSearch) void
setLocalSearch
(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation localSearch) toString()
-
Constructor Details
-
DictionaryModel
public DictionaryModel(String type, int rank, float[] color, boolean caseInsensitive, boolean hint, Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel> entries, Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel> falsePositives, Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel> falseRecommendations, boolean isDossierDictionary) Constructs a new DictionaryModel with specified parameters.- Parameters:
type
- The type of the dictionary model.rank
- The rank order of the dictionary model.color
- An array representing the color associated with this model.caseInsensitive
- Flag indicating whether the dictionary is case-insensitive.hint
- Flag indicating whether this model should be used as a hint.entries
- Set of dictionary entry models representing the entries.falsePositives
- Set of dictionary entry models representing false positives.falseRecommendations
- Set of dictionary entry models representing false recommendations.isDossierDictionary
- Flag indicating whether this model is for a dossier dictionary.
-
-
Method Details
-
getLocalSearch
public com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation getLocalSearch()Returns the search implementation for local entries.- Returns:
- The
SearchImplementation
for local entries.
-
getEntriesSearch
public com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation getEntriesSearch()Returns the search implementation for non-deleted dictionary entries.- Returns:
- The
SearchImplementation
for non-deleted dictionary entries.
-
getDeletionEntriesSearch
public com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation getDeletionEntriesSearch()Returns the search implementation for deleted dictionary entries.- Returns:
- The
SearchImplementation
for deleted dictionary entries.
-
getFalsePositiveSearch
public com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation getFalsePositiveSearch()Returns the search implementation for non-deleted false positive entries.- Returns:
- The
SearchImplementation
for non-deleted false positive entries.
-
getFalseRecommendationsSearch
public com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation getFalseRecommendationsSearch()Returns the search implementation for non-deleted false recommendation entries.- Returns:
- The
SearchImplementation
for non-deleted false recommendation entries.
-
getMatchedRulesForLocalDictionaryEntry
Retrieves the matched rules for a given value from the local dictionary entries. The value is processed based on the case sensitivity of the dictionary.- Parameters:
value
- The value for which to retrieve the matched rules.- Returns:
- A set of
MatchedRule
associated with the given value, or null if no rules are found.
-
getType
-
getRank
public int getRank() -
getColor
public float[] getColor() -
isCaseInsensitive
public boolean isCaseInsensitive() -
isHint
public boolean isHint() -
isDossierDictionary
public boolean isDossierDictionary() -
getEntries
-
getFalsePositives
-
getFalseRecommendations
public Set<com.iqser.red.service.dictionarymerge.commons.DictionaryEntryModel> getFalseRecommendations() -
getLocalEntriesWithMatchedRules
-
setEntriesSearch
public void setEntriesSearch(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation entriesSearch) -
setDeletionEntriesSearch
public void setDeletionEntriesSearch(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation deletionEntriesSearch) -
setFalsePositiveSearch
public void setFalsePositiveSearch(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation falsePositiveSearch) -
setFalseRecommendationsSearch
public void setFalseRecommendationsSearch(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation falseRecommendationsSearch) -
setLocalSearch
public void setLocalSearch(com.iqser.red.service.redaction.v1.server.model.dictionary.SearchImplementation localSearch) -
equals
-
hashCode
public int hashCode() -
toString
-