Class FuzzyStringMatchFilterImpl<T>
- java.lang.Object
-
- com.evolveum.midpoint.prism.AbstractFreezable
-
- com.evolveum.midpoint.prism.impl.query.ObjectFilterImpl
-
- com.evolveum.midpoint.prism.impl.query.ValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
- com.evolveum.midpoint.prism.impl.query.PropertyValueFilterImpl<T>
-
- com.evolveum.midpoint.prism.impl.query.FuzzyStringMatchFilterImpl<T>
-
- All Implemented Interfaces:
Freezable
,Itemable
,PrismContextSensitive
,FuzzyStringMatchFilter<T>
,ItemFilter
,ObjectFilter
,PropertyValueFilter<T>
,ValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
,Revivable
,DebugDumpable
,Serializable
public class FuzzyStringMatchFilterImpl<T> extends PropertyValueFilterImpl<T> implements FuzzyStringMatchFilter<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter
FuzzyStringMatchFilter.FuzzyMatchingMethod, FuzzyStringMatchFilter.Levenshtein, FuzzyStringMatchFilter.Similarity, FuzzyStringMatchFilter.ThresholdMatchingMethod<T extends Number>
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Fields inherited from interface com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter
INCLUSIVE, LEVENSHTEIN, SIMILARITY, THRESHOLD
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyValueFilterImpl<T>
clone()
Does a SHALLOW clone.static <T> FuzzyStringMatchFilterImpl<T>
create(ItemPath itemPath, PrismPropertyDefinition<T> propertyDefinition, FuzzyStringMatchFilter.FuzzyMatchingMethod method, List<PrismPropertyValue<T>> values)
protected void
debugDump(int indent, StringBuilder sb)
protected String
getFilterName()
@NotNull FuzzyStringMatchFilter.FuzzyMatchingMethod
getMatchingMethod()
@NotNull PrismPropertyValue<T>
getSingleValue()
Returns single value ornull
, throws exception if multiple values are present.boolean
match(PrismContainerValue<?> cValue, MatchingRuleRegistry matchingRuleRegistry)
ValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
nested(ItemPath existsPath)
-
Methods inherited from class com.evolveum.midpoint.prism.impl.query.ValueFilterImpl
canNestInsideExists, checkConsistence, debugDump, equals, equals, getDeclaredMatchingRule, getDefinition, getElementName, getExpression, getFullPath, getParentPath, getPath, getPrismContext, getRightHandSideDefinition, getRightHandSidePath, getValues, hashCode, isRaw, performFreeze, setDefinition, setExpression, setMatchingRule, setRightHandSideDefinition, setRightHandSidePath, setValue, toString, toString
-
Methods inherited from class com.evolveum.midpoint.prism.impl.query.ObjectFilterImpl
accept, revive, setPrismContext
-
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
-
Methods inherited from interface com.evolveum.midpoint.prism.query.ObjectFilter
accept, revive
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
Methods inherited from interface com.evolveum.midpoint.prism.query.PropertyValueFilter
getMatchingRule
-
Methods inherited from interface com.evolveum.midpoint.prism.query.ValueFilter
canNestInsideExists, checkConsistence, equals, getDeclaredMatchingRule, getDefinition, getElementName, getExpression, getFullPath, getParentPath, getPath, getRightHandSideDefinition, getRightHandSidePath, getValues, hasNoValue, isRaw, matchesOnly, setDefinition, setExpression, setMatchingRule, setRightHandSideDefinition, setRightHandSidePath, setValue
-
-
-
-
Method Detail
-
getMatchingMethod
@NotNull public @NotNull FuzzyStringMatchFilter.FuzzyMatchingMethod getMatchingMethod()
- Specified by:
getMatchingMethod
in interfaceFuzzyStringMatchFilter<T>
-
clone
public PropertyValueFilterImpl<T> clone()
Description copied from interface:ObjectFilter
Does a SHALLOW clone.- Specified by:
clone
in interfaceObjectFilter
- Specified by:
clone
in interfacePropertyValueFilter<T>
- Specified by:
clone
in interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
- Specified by:
clone
in classPropertyValueFilterImpl<T>
-
getSingleValue
@NotNull public @NotNull PrismPropertyValue<T> getSingleValue()
Description copied from interface:ValueFilter
Returns single value ornull
, throws exception if multiple values are present.- Specified by:
getSingleValue
in interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
- Overrides:
getSingleValue
in classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
match
public boolean match(PrismContainerValue<?> cValue, MatchingRuleRegistry matchingRuleRegistry) throws SchemaException
- Specified by:
match
in interfaceObjectFilter
- Specified by:
match
in interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
- Specified by:
match
in classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
- Throws:
SchemaException
-
getFilterName
protected String getFilterName()
- Specified by:
getFilterName
in classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
debugDump
protected void debugDump(int indent, StringBuilder sb)
- Overrides:
debugDump
in classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
create
public static <T> FuzzyStringMatchFilterImpl<T> create(ItemPath itemPath, PrismPropertyDefinition<T> propertyDefinition, FuzzyStringMatchFilter.FuzzyMatchingMethod method, List<PrismPropertyValue<T>> values)
-
nested
public ValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>> nested(ItemPath existsPath)
- Specified by:
nested
in interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
-