Class ValueFilterImpl<V extends PrismValue,D extends ItemDefinition>
- java.lang.Object
-
- com.evolveum.midpoint.prism.AbstractFreezable
-
- com.evolveum.midpoint.prism.impl.query.ObjectFilterImpl
-
- com.evolveum.midpoint.prism.impl.query.ValueFilterImpl<V,D>
-
- All Implemented Interfaces:
Freezable
,Itemable
,PrismContextSensitive
,ItemFilter
,ObjectFilter
,ValueFilter<V,D>
,Revivable
,DebugDumpable
,Serializable
- Direct Known Subclasses:
PropertyValueFilterImpl
,RefFilterImpl
public abstract class ValueFilterImpl<V extends PrismValue,D extends ItemDefinition> extends ObjectFilterImpl implements ValueFilter<V,D>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.prism.impl.query.ObjectFilterImpl
prismContext
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ValueFilterImpl(@NotNull ItemPath fullPath, D definition, @Nullable QName matchingRule, @Nullable List<V> values, @Nullable ExpressionWrapper expression, @Nullable ItemPath rightHandSidePath, @Nullable ItemDefinition rightHandSideDefinition)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
checkConsistence(boolean requireDefinitions)
abstract ValueFilterImpl<V,D>
clone()
Does a SHALLOW clone.String
debugDump(int indent)
protected void
debugDump(int indent, StringBuilder sb)
boolean
equals(Object o)
boolean
equals(Object o, boolean exact)
D
getDefinition()
@NotNull ItemName
getElementName()
@Nullable ExpressionWrapper
getExpression()
protected abstract String
getFilterName()
@NotNull ItemPath
getFullPath()
@Nullable QName
getMatchingRule()
@NotNull ItemPath
getParentPath()
ItemPath
getPath()
PrismContext
getPrismContext()
@Nullable ItemDefinition
getRightHandSideDefinition()
@Nullable ItemPath
getRightHandSidePath()
V
getSingleValue()
Returns single value ornull
, throws exception if multiple values are present.@Nullable List<V>
getValues()
int
hashCode()
boolean
isRaw()
abstract boolean
match(PrismContainerValue cvalue, MatchingRuleRegistry matchingRuleRegistry)
protected void
performFreeze()
void
setDefinition(D definition)
void
setExpression(@Nullable ExpressionWrapper expression)
void
setMatchingRule(@Nullable QName matchingRule)
void
setRightHandSideDefinition(@Nullable ItemDefinition rightHandSideDefinition)
void
setRightHandSidePath(@Nullable ItemPath rightHandSidePath)
void
setValue(V value)
String
toString()
protected String
toString(StringBuilder sb)
-
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, 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
-
-
-
-
Constructor Detail
-
ValueFilterImpl
protected ValueFilterImpl(@NotNull @NotNull ItemPath fullPath, @Nullable D definition, @Nullable @Nullable QName matchingRule, @Nullable @Nullable List<V> values, @Nullable @Nullable ExpressionWrapper expression, @Nullable @Nullable ItemPath rightHandSidePath, @Nullable @Nullable ItemDefinition rightHandSideDefinition)
-
-
Method Detail
-
getFullPath
@NotNull public @NotNull ItemPath getFullPath()
- Specified by:
getFullPath
in interfaceItemFilter
- Specified by:
getFullPath
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getParentPath
@NotNull public @NotNull ItemPath getParentPath()
- Specified by:
getParentPath
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getElementName
@NotNull public @NotNull ItemName getElementName()
- Specified by:
getElementName
in interfaceItemable
- Specified by:
getElementName
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getDefinition
@Nullable public D getDefinition()
- Specified by:
getDefinition
in interfaceItemable
- Specified by:
getDefinition
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setDefinition
public void setDefinition(@Nullable D definition)
- Specified by:
setDefinition
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getMatchingRule
@Nullable public @Nullable QName getMatchingRule()
- Specified by:
getMatchingRule
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setMatchingRule
public void setMatchingRule(@Nullable @Nullable QName matchingRule)
- Specified by:
setMatchingRule
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getValues
@Nullable public @Nullable List<V> getValues()
- Specified by:
getValues
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getSingleValue
@Nullable public V getSingleValue()
Description copied from interface:ValueFilter
Returns single value ornull
, throws exception if multiple values are present.- Specified by:
getSingleValue
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setValue
public void setValue(V value)
- Specified by:
setValue
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
- Parameters:
value
- value, has to be parent-less
-
getExpression
@Nullable public @Nullable ExpressionWrapper getExpression()
- Specified by:
getExpression
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setExpression
public void setExpression(@Nullable @Nullable ExpressionWrapper expression)
- Specified by:
setExpression
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getRightHandSidePath
@Nullable public @Nullable ItemPath getRightHandSidePath()
- Specified by:
getRightHandSidePath
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setRightHandSidePath
public void setRightHandSidePath(@Nullable @Nullable ItemPath rightHandSidePath)
- Specified by:
setRightHandSidePath
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getRightHandSideDefinition
@Nullable public @Nullable ItemDefinition getRightHandSideDefinition()
- Specified by:
getRightHandSideDefinition
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setRightHandSideDefinition
public void setRightHandSideDefinition(@Nullable @Nullable ItemDefinition rightHandSideDefinition)
- Specified by:
setRightHandSideDefinition
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getPrismContext
public PrismContext getPrismContext()
- Specified by:
getPrismContext
in interfacePrismContextSensitive
- Overrides:
getPrismContext
in classObjectFilterImpl
-
getPath
public ItemPath getPath()
- Specified by:
getPath
in interfaceItemable
- Specified by:
getPath
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
isRaw
public boolean isRaw()
- Specified by:
isRaw
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
match
public abstract boolean match(PrismContainerValue cvalue, MatchingRuleRegistry matchingRuleRegistry) throws SchemaException
- Specified by:
match
in interfaceObjectFilter
- Specified by:
match
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
- Throws:
SchemaException
-
clone
public abstract ValueFilterImpl<V,D> clone()
Description copied from interface:ObjectFilter
Does a SHALLOW clone.- Specified by:
clone
in interfaceObjectFilter
- Specified by:
clone
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
- Specified by:
clone
in classObjectFilterImpl
-
equals
public boolean equals(Object o, boolean exact)
- Specified by:
equals
in interfaceObjectFilter
- Specified by:
equals
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
getFilterName
protected abstract String getFilterName()
-
debugDump
protected void debugDump(int indent, StringBuilder sb)
-
toString
protected String toString(StringBuilder sb)
-
performFreeze
protected void performFreeze()
- Specified by:
performFreeze
in classObjectFilterImpl
-
checkConsistence
public void checkConsistence(boolean requireDefinitions)
- Specified by:
checkConsistence
in interfaceObjectFilter
- Specified by:
checkConsistence
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
-