Package com.evolveum.midpoint.prism.util
Class PrismUtil
- java.lang.Object
-
- com.evolveum.midpoint.prism.util.PrismUtil
-
public class PrismUtil extends Object
TODO clean this up as it is part of prism-api!- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description PrismUtil()
-
Method Summary
-
-
-
Method Detail
-
recomputeRealValue
public static <T> void recomputeRealValue(T realValue, PrismContext prismContext)
-
recomputePrismPropertyValue
public static <T> void recomputePrismPropertyValue(PrismPropertyValue<T> pValue, PrismContext prismContext)
-
isEmpty
public static boolean isEmpty(PolyStringType value)
-
convertPropertyValue
public static <T,X> PrismPropertyValue<X> convertPropertyValue(PrismPropertyValue<T> srcVal, PrismPropertyDefinition<T> srcDef, PrismPropertyDefinition<X> targetDef, PrismContext prismContext)
-
convertProperty
public static <T,X> PrismProperty<X> convertProperty(PrismProperty<T> srcProp, PrismPropertyDefinition<X> targetDef, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
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
public static <T> boolean equals(T a, T b, MatchingRule<T> matchingRule) throws SchemaException
- Throws:
SchemaException
-
serializeQuietly
public static String serializeQuietly(PrismContext prismContext, Object object)
-
serializeQuietlyLazily
public static Object serializeQuietlyLazily(PrismContext prismContext, Object object)
-
debugDumpWithLabel
public static void debugDumpWithLabel(StringBuilder sb, String label, Containerable cc, int indent)
-
debugDumpWithLabelLn
public static void debugDumpWithLabelLn(StringBuilder sb, String label, Containerable cc, int indent)
-
isStructuredType
public static boolean isStructuredType(QName typeName)
-
freezeCollectionDeeply
public static <T extends Freezable> Collection<T> freezeCollectionDeeply(Collection<T> freezables)
-
-