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
,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(ItemPath fullPath, D definition)
TODO decide whether to make these fields final.protected
ValueFilterImpl(ItemPath fullPath, D definition, QName matchingRule, List<V> values, ExpressionWrapper expression, ItemPath rightHandSidePath, 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
debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.query.ObjectFilter
accept, revive, setPrismContext
-
-
-
-
Constructor Detail
-
ValueFilterImpl
protected ValueFilterImpl(@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 ItemPath fullPath, @Nullable D definition, @Nullable QName matchingRule, @Nullable List<V> values, @Nullable ExpressionWrapper expression, @Nullable ItemPath rightHandSidePath, @Nullable ItemDefinition rightHandSideDefinition)
-
-
Method Detail
-
getFullPath
@NotNull public ItemPath getFullPath()
- Specified by:
getFullPath
in interfaceItemFilter
- Specified by:
getFullPath
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getParentPath
@NotNull public ItemPath getParentPath()
- Specified by:
getParentPath
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getElementName
@NotNull public 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 QName getMatchingRule()
- Specified by:
getMatchingRule
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setMatchingRule
public void setMatchingRule(@Nullable QName matchingRule)
- Specified by:
setMatchingRule
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getValues
@Nullable public 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 ExpressionWrapper getExpression()
- Specified by:
getExpression
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setExpression
public void setExpression(@Nullable ExpressionWrapper expression)
- Specified by:
setExpression
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getRightHandSidePath
@Nullable public ItemPath getRightHandSidePath()
- Specified by:
getRightHandSidePath
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setRightHandSidePath
public void setRightHandSidePath(@Nullable ItemPath rightHandSidePath)
- Specified by:
setRightHandSidePath
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getRightHandSideDefinition
@Nullable public ItemDefinition getRightHandSideDefinition()
- Specified by:
getRightHandSideDefinition
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
setRightHandSideDefinition
public void setRightHandSideDefinition(@Nullable ItemDefinition rightHandSideDefinition)
- Specified by:
setRightHandSideDefinition
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
getPrismContext
public PrismContext getPrismContext()
- Specified by:
getPrismContext
in interfaceItemable
- Specified by:
getPrismContext
in interfaceObjectFilter
- Specified by:
getPrismContext
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
- 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)
- Specified by:
equals
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
- Overrides:
equals
in classObject
-
equals
public boolean equals(Object o, boolean exact)
- Specified by:
equals
in interfaceObjectFilter
- Specified by:
equals
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
- Overrides:
hashCode
in classObject
-
debugDump
public String debugDump()
Description copied from interface:DebugDumpable
Show the content of the object intended for diagnostics by system administrator. The out put should be suitable to use in system logs at "debug" level. It may be multi-line, but in that case it should be well indented and quite terse. As it is intended to be used by system administrator, it should not use any developer terms such as class names, exceptions or stack traces.- Specified by:
debugDump
in interfaceDebugDumpable
- Specified by:
debugDump
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
- Returns:
- content of the object intended for diagnostics by system administrator.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
- Specified by:
debugDump
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
-
toString
public String toString()
- Specified by:
toString
in interfaceValueFilter<V extends PrismValue,D extends ItemDefinition>
- Overrides:
toString
in classObject
-
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>
-
-