-
public final class DictionaryDataA dictionary model used for predefined values entities.
-
-
Field Summary
Fields Modifier and Type Field Description private final transient StringqualifiedNameprivate final Stringnamespaceprivate final StringentityNameprivate final List<PredefinedValue>valuesprivate final BooleanonlyValuesprivate final DoubleminDistanceprivate final BooleantextSearch
-
Constructor Summary
Constructors Constructor Description DictionaryData(String namespace, String entityName, List<PredefinedValue> values, Boolean onlyValues, Double minDistance, Boolean textSearch)
-
Method Summary
Modifier and Type Method Description final Map<PredefinedValue, List<String>>getLabelsMap(Locale locale)Returns a PredefinedValue -> list of labels map for the specified locale. final Stringcomponent1()final Stringcomponent2()final List<PredefinedValue>component3()final Booleancomponent4()final Doublecomponent5()final Booleancomponent6()final DictionaryDatacopy(String namespace, String entityName, List<PredefinedValue> values, Boolean onlyValues, Double minDistance, Boolean textSearch)final StringgetQualifiedName()final StringgetNamespace()The namespace of the entity. final StringgetEntityName()The name of the entity. final List<PredefinedValue>getValues()The values of the dictionary. final BooleangetOnlyValues()Are only defined labels allowed or can we try to use Damerau-Levenshtein distance ? final DoublegetMinDistance()The minimum distance to be allowed. final BooleangetTextSearch()If the text is contained by at least one label, the value is eligible. -
-
Method Detail
-
getLabelsMap
final Map<PredefinedValue, List<String>> getLabelsMap(Locale locale)
Returns a PredefinedValue -> list of labels map for the specified locale.
-
component1
final String component1()
-
component2
final String component2()
-
component3
final List<PredefinedValue> component3()
-
component4
final Boolean component4()
-
component5
final Double component5()
-
component6
final Boolean component6()
-
copy
final DictionaryData copy(String namespace, String entityName, List<PredefinedValue> values, Boolean onlyValues, Double minDistance, Boolean textSearch)
-
getQualifiedName
final String getQualifiedName()
-
getNamespace
final String getNamespace()
The namespace of the entity.
-
getEntityName
final String getEntityName()
The name of the entity.
-
getValues
final List<PredefinedValue> getValues()
The values of the dictionary.
-
getOnlyValues
final Boolean getOnlyValues()
Are only defined labels allowed or can we try to use Damerau-Levenshtein distance ?
-
getMinDistance
final Double getMinDistance()
The minimum distance to be allowed.
-
getTextSearch
final Boolean getTextSearch()
If the text is contained by at least one label, the value is eligible.
-
-
-
-