Package com.evolveum.midpoint.prism.util
Class PrismUtil
java.lang.Object
com.evolveum.midpoint.prism.util.PrismUtil
TODO clean this up as it is part of prism-api!
- Author:
- semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S,
T> PrismPropertyValue<T> convertPropertyValue
(@NotNull PrismPropertyValue<S> srcValue, @NotNull PrismPropertyDefinition<T> targetDef) static void
debugDumpWithLabel
(StringBuilder sb, String label, Containerable cc, int indent) static void
debugDumpWithLabelLn
(StringBuilder sb, String label, Containerable cc, int indent) static <T> boolean
equals
(T a, T b, MatchingRule<T> matchingRule) static <T extends Freezable>
Collection<T>freezeCollectionDeeply
(Collection<T> freezables) static boolean
isEmpty
(PolyStringType value) static boolean
isStructuredType
(QName typeName) static boolean
realValueEquals
(Containerable first, Containerable second) AsObjects.equals(Object, Object)
but comparing withEquivalenceStrategy.REAL_VALUE
.static <T> void
recomputePrismPropertyValue
(PrismPropertyValue<T> pValue) static <T> void
recomputeRealValue
(T realValue) static String
serializeQuietly
(PrismContext prismContext, Object object) static Object
serializeQuietlyLazily
(PrismContext prismContext, Object object) static <O extends Objectable>
voidsetDeltaOldValue
(PrismObject<O> oldObject, ItemDelta<?, ?> itemDelta) static <O extends Objectable>
voidsetDeltaOldValue
(PrismObject<O> oldObject, Collection<? extends ItemDelta> itemDeltas) static <T extends Objectable>
voidsetPropertyNullAndComplete
(PrismObject<T> prismObject, ItemPath path) Sets the property with the provided path on the provided prism object to null and complete, if found.
-
Constructor Details
-
PrismUtil
public PrismUtil()
-
-
Method Details
-
recomputeRealValue
public static <T> void recomputeRealValue(T realValue) -
recomputePrismPropertyValue
-
isEmpty
-
convertPropertyValue
public static <S,T> PrismPropertyValue<T> convertPropertyValue(@NotNull @NotNull PrismPropertyValue<S> srcValue, @NotNull @NotNull PrismPropertyDefinition<T> targetDef) -
setDeltaOldValue
public static <O extends Objectable> void setDeltaOldValue(PrismObject<O> oldObject, ItemDelta<?, ?> itemDelta) -
setDeltaOldValue
public static <O extends Objectable> void setDeltaOldValue(PrismObject<O> oldObject, Collection<? extends ItemDelta> itemDeltas) -
equals
- Throws:
SchemaException
-
serializeQuietly
-
serializeQuietlyLazily
-
debugDumpWithLabel
-
debugDumpWithLabelLn
public static void debugDumpWithLabelLn(StringBuilder sb, String label, Containerable cc, int indent) -
isStructuredType
-
freezeCollectionDeeply
-
setPropertyNullAndComplete
public static <T extends Objectable> void setPropertyNullAndComplete(PrismObject<T> prismObject, ItemPath path) Sets the property with the provided path on the provided prism object to null and complete, if found. -
realValueEquals
AsObjects.equals(Object, Object)
but comparing withEquivalenceStrategy.REAL_VALUE
. Null values are considered equal to empty PCVs.
-