Class SubstringFilterImpl<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.SubstringFilterImpl<T>
-
- All Implemented Interfaces:
Freezable
,Itemable
,PrismContextSensitive
,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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubstringFilterImpl<T>
clone()
Does a SHALLOW clone.static <T> SubstringFilter<T>
createSubstring(@NotNull ItemPath path, @Nullable PrismPropertyDefinition<T> itemDefinition, @NotNull PrismContext prismContext, @Nullable QName matchingRule, Object anyValue, boolean anchorStart, boolean anchorEnd)
Creates a substring filter.static <T> SubstringFilter<T>
createSubstring(@NotNull ItemPath path, @Nullable PrismPropertyDefinition<T> itemDefinition, @Nullable QName matchingRule, ExpressionWrapper expressionWrapper, boolean anchorStart, boolean anchorEnd)
boolean
equals(Object o)
boolean
equals(Object o, boolean exact)
protected String
getFilterName()
int
hashCode()
boolean
isAnchorEnd()
boolean
isAnchorStart()
boolean
match(PrismContainerValue containerValue, MatchingRuleRegistry matchingRuleRegistry)
-
Methods inherited from class com.evolveum.midpoint.prism.impl.query.ValueFilterImpl
checkConsistence, debugDump, debugDump, getDefinition, getElementName, getExpression, getFullPath, getMatchingRule, getParentPath, getPath, getPrismContext, getRightHandSideDefinition, getRightHandSidePath, getSingleValue, getValues, 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.ValueFilter
checkConsistence, getDefinition, getElementName, getExpression, getFullPath, getMatchingRule, getParentPath, getPath, getRightHandSideDefinition, getRightHandSidePath, getSingleValue, getValues, isRaw, setDefinition, setExpression, setMatchingRule, setRightHandSideDefinition, setRightHandSidePath, setValue
-
-
-
-
Method Detail
-
createSubstring
public static <T> SubstringFilter<T> createSubstring(@NotNull @NotNull ItemPath path, @Nullable @Nullable PrismPropertyDefinition<T> itemDefinition, @NotNull @NotNull PrismContext prismContext, @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:
isAnchorStart
in interfaceSubstringFilter<T>
-
isAnchorEnd
public boolean isAnchorEnd()
- Specified by:
isAnchorEnd
in interfaceSubstringFilter<T>
-
clone
public SubstringFilterImpl<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 interfaceSubstringFilter<T>
- Specified by:
clone
in interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
- Specified by:
clone
in classPropertyValueFilterImpl<T>
-
getFilterName
protected String getFilterName()
- Specified by:
getFilterName
in classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
match
public boolean match(PrismContainerValue containerValue, 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
-
equals
public boolean equals(Object o, boolean exact)
- Specified by:
equals
in interfaceObjectFilter
- Specified by:
equals
in interfaceValueFilter<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
- Overrides:
equals
in classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classValueFilterImpl<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
-