Package com.evolveum.midpoint.prism
Interface ValueSelector<V extends PrismValue>
- All Superinterfaces:
Predicate<V>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Selects a value from multivalued item (property, container, reference). A typical use is to select
among PrismContainerValues by checking some sub-item ("key") value.
TODO Find a better name. "ValueMatcher" is already used in a different context.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Containerable>
ValueSelector<PrismContainerValue<C>>itemEquals
(ItemName itemName, Object expectedValue) Matches PrismContainerValue if it has single-valued sub-item named "itemName" with the value of "expectedValue" (or if the sub-item is not present and expectedValue is null).static <T> ValueSelector<PrismPropertyValue<T>>
origEquals
(T expectedValue) static ValueSelector<PrismReferenceValue>
static ValueSelector<PrismReferenceValue>
static <T> ValueSelector<PrismPropertyValue<T>>
valueEquals
(T expectedValue)
-
Method Details
-
itemEquals
static <C extends Containerable> ValueSelector<PrismContainerValue<C>> itemEquals(ItemName itemName, Object expectedValue) Matches PrismContainerValue if it has single-valued sub-item named "itemName" with the value of "expectedValue" (or if the sub-item is not present and expectedValue is null). -
valueEquals
-
origEquals
-
refEquals
-
refEquals
static ValueSelector<PrismReferenceValue> refEquals(@NotNull @NotNull String expectedTargetOid, QName expectedRelation)
-