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 SummaryConstructors Constructor Description PrismUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,X>
 PrismProperty<X>convertProperty(PrismProperty<T> srcProp, PrismPropertyDefinition<X> targetDef)static <T,X>
 PrismPropertyValue<X>convertPropertyValue(PrismPropertyValue<T> srcVal, PrismPropertyDefinition<T> srcDef, PrismPropertyDefinition<X> targetDef)static voiddebugDumpWithLabel(StringBuilder sb, String label, Containerable cc, int indent)static voiddebugDumpWithLabelLn(StringBuilder sb, String label, Containerable cc, int indent)static <T> booleanequals(T a, T b, MatchingRule<T> matchingRule)static <T extends Freezable>
 Collection<T>freezeCollectionDeeply(Collection<T> freezables)static booleanisEmpty(PolyStringType value)static booleanisStructuredType(QName typeName)static booleanrealValueEquals(Containerable first, Containerable second)AsObjects.equals(Object, Object)but comparing withEquivalenceStrategy.REAL_VALUE.static <T> voidrecomputePrismPropertyValue(PrismPropertyValue<T> pValue, PrismContext prismContext)static <T> voidrecomputeRealValue(T realValue, PrismContext prismContext)static StringserializeQuietly(PrismContext prismContext, Object object)static ObjectserializeQuietlyLazily(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.
 
- 
- 
- 
Method Detail- 
recomputeRealValuepublic static <T> void recomputeRealValue(T realValue, PrismContext prismContext)
 - 
recomputePrismPropertyValuepublic static <T> void recomputePrismPropertyValue(PrismPropertyValue<T> pValue, PrismContext prismContext) 
 - 
isEmptypublic static boolean isEmpty(PolyStringType value) 
 - 
convertPropertyValuepublic static <T,X> PrismPropertyValue<X> convertPropertyValue(PrismPropertyValue<T> srcVal, PrismPropertyDefinition<T> srcDef, PrismPropertyDefinition<X> targetDef) 
 - 
convertPropertypublic static <T,X> PrismProperty<X> convertProperty(PrismProperty<T> srcProp, PrismPropertyDefinition<X> targetDef) throws SchemaException - Throws:
- SchemaException
 
 - 
setDeltaOldValuepublic static <O extends Objectable> void setDeltaOldValue(PrismObject<O> oldObject, ItemDelta<?,?> itemDelta) 
 - 
setDeltaOldValuepublic static <O extends Objectable> void setDeltaOldValue(PrismObject<O> oldObject, Collection<? extends ItemDelta> itemDeltas) 
 - 
equalspublic static <T> boolean equals(T a, T b, MatchingRule<T> matchingRule) throws SchemaException- Throws:
- SchemaException
 
 - 
serializeQuietlypublic static String serializeQuietly(PrismContext prismContext, Object object) 
 - 
serializeQuietlyLazilypublic static Object serializeQuietlyLazily(PrismContext prismContext, Object object) 
 - 
debugDumpWithLabelpublic static void debugDumpWithLabel(StringBuilder sb, String label, Containerable cc, int indent) 
 - 
debugDumpWithLabelLnpublic static void debugDumpWithLabelLn(StringBuilder sb, String label, Containerable cc, int indent) 
 - 
isStructuredTypepublic static boolean isStructuredType(QName typeName) 
 - 
freezeCollectionDeeplypublic static <T extends Freezable> Collection<T> freezeCollectionDeeply(Collection<T> freezables) 
 - 
setPropertyNullAndCompletepublic 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.
 - 
realValueEqualspublic static boolean realValueEquals(Containerable first, Containerable second) AsObjects.equals(Object, Object)but comparing withEquivalenceStrategy.REAL_VALUE. Null values are considered equal to empty PCVs.
 
- 
 
-