Class FuzzyStringMatchFilter.ThresholdMatchingMethod<T extends Number>
- java.lang.Object
-
- com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter.ThresholdMatchingMethod<T>
-
- All Implemented Interfaces:
FuzzyStringMatchFilter.FuzzyMatchingMethod
,Serializable
- Direct Known Subclasses:
FuzzyStringMatchFilter.Levenshtein
,FuzzyStringMatchFilter.Similarity
- Enclosing interface:
- FuzzyStringMatchFilter<T>
public abstract static class FuzzyStringMatchFilter.ThresholdMatchingMethod<T extends Number> extends Object implements FuzzyStringMatchFilter.FuzzyMatchingMethod
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
computeMatchMetricValue(String lValue, String rValue)
Computes the appropriate fuzzy match metric - the one that is being compared with the threshold.Map<QName,Object>
getAttributes()
abstract Class<T>
getMetricValueClass()
Returns the Java type of the metric being used by this method (Integer, Float, ...).T
getThreshold()
T
getThresholdRequired()
boolean
isInclusive()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter.FuzzyMatchingMethod
getMethodName, matches
-
-
-
-
Method Detail
-
getThreshold
public T getThreshold()
-
getThresholdRequired
@NotNull public T getThresholdRequired()
-
isInclusive
public boolean isInclusive()
-
computeMatchMetricValue
@NotNull public abstract T computeMatchMetricValue(String lValue, String rValue)
Computes the appropriate fuzzy match metric - the one that is being compared with the threshold. For example, Levenshtein edit distance (an integer value) or trigram similarity value (a float).
-
getMetricValueClass
public abstract Class<T> getMetricValueClass()
Returns the Java type of the metric being used by this method (Integer, Float, ...). TODO consider removal
-
getAttributes
public Map<QName,Object> getAttributes()
- Specified by:
getAttributes
in interfaceFuzzyStringMatchFilter.FuzzyMatchingMethod
-
-