Class SubstringFilterImpl<T>
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.prism.impl.query.ObjectFilterImpl
com.evolveum.midpoint.prism.impl.query.AbstractItemFilter
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.SubstringFilterImpl<T>
- All Implemented Interfaces:
Freezable,Itemable,ItemFilter,ObjectFilter,PropertyValueFilter<T>,SubstringFilter<T>,ValueFilter<PrismPropertyValue<T>,,PrismPropertyDefinition<T>> Revivable,DebugDumpable,Serializable
public final class SubstringFilterImpl<T>
extends PropertyValueFilterImpl<T>
implements SubstringFilter<T>
- See Also:
-
Field Summary
Fields inherited from class com.evolveum.midpoint.prism.impl.query.AbstractItemFilter
fullPathFields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionclone()Does a SHALLOW clone.static <T> SubstringFilter<T>createSubstring(@NotNull ItemPath path, @Nullable PrismPropertyDefinition<T> itemDefinition, @Nullable QName matchingRule, ExpressionWrapper expressionWrapper, boolean anchorStart, boolean anchorEnd) static <T> SubstringFilter<T>createSubstring(@NotNull ItemPath path, @Nullable PrismPropertyDefinition<T> itemDefinition, @Nullable QName matchingRule, Object anyValue, boolean anchorStart, boolean anchorEnd) Creates a substring filter.booleanbooleanprotected StringinthashCode()booleanbooleanbooleanmatch(PrismContainerValue<?> containerValue, MatchingRuleRegistry matchingRuleRegistry) Methods inherited from class com.evolveum.midpoint.prism.impl.query.ValueFilterImpl
canNestInsideExists, checkConsistence, collectUsedPaths, debugDump, debugDump, getDeclaredMatchingRule, getDefinition, getElementName, getExpression, getParentPath, getPath, getRightHandSideDefinition, getRightHandSidePath, getSingleValue, getValues, isRaw, performFreeze, setDefinition, setExpression, setMatchingRule, setRightHandSideDefinition, setRightHandSidePath, setValue, setValues, toString, toStringMethods inherited from class com.evolveum.midpoint.prism.impl.query.AbstractItemFilter
getFullPath, transformItemPathsMethods inherited from class com.evolveum.midpoint.prism.impl.query.ObjectFilterImpl
accept, revive, setPrismContextMethods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutableMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.prism.query.ObjectFilter
accept, collectUsedPaths, revive, transformItemPaths, usedPathsMethods inherited from interface com.evolveum.midpoint.prism.query.PropertyValueFilter
getMatchingRuleMethods inherited from interface com.evolveum.midpoint.prism.query.ValueFilter
canNestInsideExists, checkConsistence, getDeclaredMatchingRule, getDefinition, getElementName, getExpression, getFullPath, getParentPath, getPath, getRightHandSideDefinition, getRightHandSidePath, getSingleValue, getValues, hasNoValue, isRaw, matchesOnly, setDefinition, setExpression, setMatchingRule, setRightHandSideDefinition, setRightHandSidePath, setValue, setValues
-
Method Details
-
createSubstring
public static <T> SubstringFilter<T> createSubstring(@NotNull @NotNull ItemPath path, @Nullable @Nullable PrismPropertyDefinition<T> itemDefinition, @Nullable @Nullable QName matchingRule, Object anyValue, boolean anchorStart, boolean anchorEnd) Creates a substring filter.- Parameters:
itemDefinition- TODO about nullabilityanyValue- real value or prism property value; TODO about nullability
-
createSubstring
public static <T> SubstringFilter<T> createSubstring(@NotNull @NotNull ItemPath path, @Nullable @Nullable PrismPropertyDefinition<T> itemDefinition, @Nullable @Nullable QName matchingRule, ExpressionWrapper expressionWrapper, boolean anchorStart, boolean anchorEnd) -
isAnchorStart
public boolean isAnchorStart()- Specified by:
isAnchorStartin interfaceSubstringFilter<T>
-
isAnchorEnd
public boolean isAnchorEnd()- Specified by:
isAnchorEndin interfaceSubstringFilter<T>
-
clone
Description copied from interface:ObjectFilterDoes a SHALLOW clone.- Specified by:
clonein interfaceObjectFilter- Specified by:
clonein interfacePropertyValueFilter<T>- Specified by:
clonein interfaceSubstringFilter<T>- Specified by:
clonein interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
clonein classPropertyValueFilterImpl<T>
-
getFilterName
- Specified by:
getFilterNamein classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
match
public boolean match(PrismContainerValue<?> containerValue, MatchingRuleRegistry matchingRuleRegistry) throws SchemaException - Specified by:
matchin interfaceObjectFilter- Specified by:
matchin interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
matchin classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Throws:
SchemaException
-
equals
- Specified by:
equalsin interfaceObjectFilter- Specified by:
equalsin interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Overrides:
equalsin classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
equals
- Overrides:
equalsin classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
nested
- Specified by:
nestedin interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-