Package com.evolveum.midpoint.prism.util
Class ItemDeltaItem<V extends PrismValue,D extends ItemDefinition<?>>
- java.lang.Object
- 
- com.evolveum.midpoint.prism.util.ItemDeltaItem<V,D>
 
- 
- All Implemented Interfaces:
- DebugDumpable,- Serializable
 - Direct Known Subclasses:
- ObjectDeltaObject
 
 public class ItemDeltaItem<V extends PrismValue,D extends ItemDefinition<?>> extends Object implements DebugDumpable, Serializable A class defining old item state (before change), delta (change) and new item state (after change). This is a useful class used to describe how the item has changed without the need to re-apply the delta several times. The delta can be applied once, and then all the rest of the code will have all the data available. This is mostly just a convenience class that groups those three things together. There is only a very little logic on top of that.- Author:
- Radovan Semancik
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedItemDeltaItem()ItemDeltaItem(Item<V,D> item)ItemDeltaItem(Item<V,D> itemOld, ItemDelta<V,D> delta, Item<V,D> itemNew, D definition)ItemDeltaItem(Item<V,D> item, D definition)ItemDeltaItem(ItemDeltaItem<V,D> idi)
 - 
Method Summary- 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazily
 
- 
 
- 
- 
- 
Method Detail- 
getItemNewpublic Item<V,D> getItemNew() Returns new item that is a result of delta application. May return null if there is no new item. WARNING: Output of this method should be used for preview only. It should NOT be placed into prism structures. Not even cloned. This method may return dummy items or similar items that are not usable. Values in the items should be OK, but they may need cloning.
 - 
getResidualPathpublic ItemPath getResidualPath() 
 - 
setResidualPathpublic void setResidualPath(ItemPath residualPath) 
 - 
getResolvePathpublic ItemPath getResolvePath() 
 - 
setResolvePathpublic void setResolvePath(ItemPath resolvePath) 
 - 
getSubItemDeltaspublic Collection<? extends ItemDelta<?,?>> getSubItemDeltas() 
 - 
setSubItemDeltaspublic void setSubItemDeltas(Collection<? extends ItemDelta<?,?>> subItemDeltas) 
 - 
isNullpublic boolean isNull() 
 - 
getElementNamepublic QName getElementName() 
 - 
getDefinition@NotNull public D getDefinition() 
 - 
recomputepublic void recompute() throws SchemaException- Throws:
- SchemaException
 
 - 
findIdipublic <IV extends PrismValue,ID extends ItemDefinition<?>> ItemDeltaItem<IV,ID> findIdi(@NotNull @NotNull ItemPath path) throws SchemaException - Throws:
- SchemaException
 
 - 
findIdipublic <IV extends PrismValue,ID extends ItemDefinition<?>> ItemDeltaItem<IV,ID> findIdi(@NotNull @NotNull ItemPath path, @Nullable @Nullable DefinitionResolver<D,ID> additionalDefinitionResolver) throws SchemaException - Throws:
- SchemaException
 
 - 
toDeltaSetTriplepublic PrismValueDeltaSetTriple<V> toDeltaSetTriple() throws SchemaException - Throws:
- SchemaException
 
 - 
isContainerpublic boolean isContainer() 
 - 
isPropertypublic boolean isProperty() 
 - 
isStructuredPropertypublic boolean isStructuredProperty() 
 - 
resolveStructuredPropertypublic <X> ItemDeltaItem<PrismPropertyValue<X>,PrismPropertyDefinition<X>> resolveStructuredProperty(ItemPath resolvePath, PrismPropertyDefinition outputDefinition, PrismContext prismContext) 
 - 
applyDefinitionpublic void applyDefinition(D def, boolean force) throws SchemaException - Throws:
- SchemaException
 
 - 
clonepublic ItemDeltaItem<V,D> clone() 
 - 
copyValuesprotected void copyValues(ItemDeltaItem<V,D> clone) 
 - 
debugDumppublic String debugDump(int indent) - Specified by:
- debugDumpin interface- DebugDumpable
 
 - 
getSingleValuepublic V getSingleValue(boolean old) 
 
- 
 
-