com.evolveum.midpoint.prism.delta
Class PrismValueDeltaSetTriple<V extends PrismValue>

java.lang.Object
  extended by com.evolveum.midpoint.prism.delta.DeltaSetTriple<V>
      extended by com.evolveum.midpoint.prism.delta.PrismValueDeltaSetTriple<V>
All Implemented Interfaces:
Visitable, DebugDumpable, Dumpable, java.io.Serializable
Direct Known Subclasses:
SourceTriple

public class PrismValueDeltaSetTriple<V extends PrismValue>
extends DeltaSetTriple<V>
implements Dumpable, DebugDumpable, Visitable

DeltaSetTriple that is limited to hold prism values. By limiting to the PrismValue descendants we gain advantage to be clonnable and ability to compare real values.

Author:
Radovan Semancik
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.evolveum.midpoint.prism.delta.DeltaSetTriple
minusSet, plusSet, zeroSet
 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
 
Constructor Summary
PrismValueDeltaSetTriple()
           
PrismValueDeltaSetTriple(java.util.Collection<V> zeroSet, java.util.Collection<V> plusSet, java.util.Collection<V> minusSet)
           
 
Method Summary
 void accept(Visitor visitor)
           
 void applyDefinition(ItemDefinition itemDefinition)
           
 PrismValueDeltaSetTriple<V> clone()
           
protected  void copyValues(PrismValueDeltaSetTriple<V> clone)
           
protected  java.lang.String debugName()
           
static
<V extends PrismValue>
PrismValueDeltaSetTriple<V>
diffPrismValueDeltaSetTriple(java.util.Collection<V> valuesOld, java.util.Collection<V> valuesNew)
          Compares two (unordered) collections and creates a triple describing the differences.
<O extends PrismValue>
void
distributeAs(V myMember, PrismValueDeltaSetTriple<O> otherTriple, O otherMember)
          Distributes a value in this triple similar to the placement of other value in the other triple.
 java.lang.Class<?> getRealValueClass()
           
 java.lang.Class<V> getValueClass()
           
 boolean isRaw()
           
 void setOriginObject(Objectable originObject)
          Sets specified origin object for all values in all sets
 void setOriginType(OriginType sourceType)
          Sets specified source type for all values in all sets
 
Methods inherited from class com.evolveum.midpoint.prism.delta.DeltaSetTriple
addAllToMinusSet, addAllToPlusSet, addAllToZeroSet, addToMinusSet, addToPlusSet, addToZeroSet, clearMinusSet, clearPlusSet, clearZeroSet, clone, copyValues, createSet, debugDump, debugDump, diff, diff, dump, getMinusSet, getNonNegativeValues, getNonPositiveValues, getPlusSet, getZeroSet, hasMinusSet, hasPlusSet, hasZeroSet, isEmpty, merge, presentInMinusSet, presentInPlusSet, presentInZeroSet, toString, union
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.evolveum.midpoint.util.Dumpable
dump
 
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump
 

Constructor Detail

PrismValueDeltaSetTriple

public PrismValueDeltaSetTriple()

PrismValueDeltaSetTriple

public PrismValueDeltaSetTriple(java.util.Collection<V> zeroSet,
                                java.util.Collection<V> plusSet,
                                java.util.Collection<V> minusSet)
Method Detail

diffPrismValueDeltaSetTriple

public static <V extends PrismValue> PrismValueDeltaSetTriple<V> diffPrismValueDeltaSetTriple(java.util.Collection<V> valuesOld,
                                                                                              java.util.Collection<V> valuesNew)
Compares two (unordered) collections and creates a triple describing the differences.


distributeAs

public <O extends PrismValue> void distributeAs(V myMember,
                                                PrismValueDeltaSetTriple<O> otherTriple,
                                                O otherMember)
Distributes a value in this triple similar to the placement of other value in the other triple. E.g. if the value "otherMember" is in the zero set in "otherTriple" then "myMember" will be placed in zero set in this triple.


getValueClass

public java.lang.Class<V> getValueClass()

getRealValueClass

public java.lang.Class<?> getRealValueClass()

isRaw

public boolean isRaw()

applyDefinition

public void applyDefinition(ItemDefinition itemDefinition)
                     throws SchemaException
Throws:
SchemaException

setOriginType

public void setOriginType(OriginType sourceType)
Sets specified source type for all values in all sets


setOriginObject

public void setOriginObject(Objectable originObject)
Sets specified origin object for all values in all sets


clone

public PrismValueDeltaSetTriple<V> clone()
Overrides:
clone in class java.lang.Object

copyValues

protected void copyValues(PrismValueDeltaSetTriple<V> clone)

accept

public void accept(Visitor visitor)
Specified by:
accept in interface Visitable

debugName

protected java.lang.String debugName()
Overrides:
debugName in class DeltaSetTriple<V extends PrismValue>


Copyright © 2012 evolveum. All Rights Reserved.