Class ValueSelector
java.lang.Object
com.evolveum.midpoint.schema.selector.spec.ValueSelector
- All Implemented Interfaces:
- DebugDumpable,- Serializable
Parsed form of 
ObjectSelectorType and its subtypes.
 It was created to allow easy manipulation and (eventually) better performance due to optimized data structures.
 Immutable.- See Also:
- 
Field SummaryFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Method SummaryModifier and TypeMethodDescriptioncomputeFilter(@NotNull FilteringContext ctx) Converts the clause intoObjectFilter.debugDump(int indent) static @NotNull ValueSelectorempty()Covers all values.static ValueSelector@Nullable ObjectSelectorTypegetBean()@NotNull List<SelectorClause>@NotNull Class<?>@Nullable ParentClause@NotNull Class<?>getTypeClass(@NotNull Class<?> superType) @Nullable QNamebooleanbooleanbooleanbooleanmatches(@NotNull PrismValue value, @NotNull MatchingContext ctx) Returns `true` if the `value` matches this selector.static ValueSelectorof(@NotNull TypeClause typeClause, @NotNull ParentClause parentClause) static ValueSelectorof(SelectorClause... clauses) static @NotNull ValueSelectorparse(@NotNull ObjectSelectorType bean) The bean is frozen during the parsing process.sameWithType(@NotNull QName newType) Returns a selector that is the same as this one, except that the type is as specified.booleantoFilter(@NotNull FilteringContext ctx) Converts the selector intoObjectFilter(passed toFilteringContext.filterCollector).Returns a selector that is the same as this one (or even this one), except that it has no parent clause.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazily
- 
Method Details- 
emptyCovers all values.
- 
ofpublic static ValueSelector of(@NotNull @NotNull TypeClause typeClause, @NotNull @NotNull ParentClause parentClause) 
- 
of
- 
parse@NotNull public static @NotNull ValueSelector parse(@NotNull @NotNull ObjectSelectorType bean) throws ConfigurationException The bean is frozen during the parsing process.- Throws:
- ConfigurationException
 
- 
forType
- 
getTypeName
- 
getClauses
- 
getBean
- 
matchespublic boolean matches(@NotNull @NotNull PrismValue value, @NotNull @NotNull MatchingContext ctx) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Returns `true` if the `value` matches this selector.
- 
computeFilterpublic ObjectFilter computeFilter(@NotNull @NotNull FilteringContext ctx) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Converts the clause intoObjectFilter. If not applicable, returns `none` filter.
- 
toFilterpublic boolean toFilter(@NotNull @NotNull FilteringContext ctx) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Converts the selector intoObjectFilter(passed toFilteringContext.filterCollector). Returns `false` if the selector is not applicable to given situation.
- 
getParentClause
- 
getEffectiveType
- 
getTypeClass@NotNull public @NotNull Class<?> getTypeClass(@NotNull @NotNull Class<?> superType) throws ConfigurationException - Throws:
- ConfigurationException
 
- 
debugDump- Specified by:
- debugDumpin interface- DebugDumpable
 
- 
getHumanReadableDesc
- 
sameWithTypeReturns a selector that is the same as this one, except that the type is as specified. May return the same object if types are equal. The type must be qualified.
- 
withParentRemovedReturns a selector that is the same as this one (or even this one), except that it has no parent clause.
- 
isSubObjectpublic boolean isSubObject()
- 
isPureSelfpublic boolean isPureSelf()
- 
isParentLesspublic boolean isParentLess()
 
-