Class ValueFilterImpl<V extends PrismValue,D extends ItemDefinition>
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.query.ObjectFilterImpl
-
- com.evolveum.midpoint.prism.impl.query.ValueFilterImpl<V,D>
-
- All Implemented Interfaces:
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)
TODO decide whether to make these fields final.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
-
Methods inherited from class com.evolveum.midpoint.prism.impl.query.ObjectFilterImpl
accept, revive, setPrismContext
-
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.query.ObjectFilter
accept, revive
-
-
-
-
Constructor Detail
-
ValueFilterImpl
protected ValueFilterImpl(@NotNull @NotNull ItemPath fullPath, @Nullable D definition)
TODO decide whether to make these fields final. It makes the code simpler, but maybe not that much that it is worth the discomfort of the clients (they cannot change they if the would wish). Some of them like definition, matchingRule, and right-hand things are filled-in later in some cases (provisioning, query builder).
-
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()
- 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 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 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)
-
checkConsistence
public void checkConsistence(boolean requireDefinitions)
- Specified by:
checkConsistence
in interfaceObjectFilter
- Specified by:
checkConsistence
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
-