Class PrismValueDeltaSetTripleImpl<V extends PrismValue>
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.delta.DeltaSetTripleImpl<V>
-
- com.evolveum.midpoint.prism.impl.delta.PrismValueDeltaSetTripleImpl<V>
-
- All Implemented Interfaces:
DeltaSetTriple<V>
,PrismValueDeltaSetTriple<V>
,SimpleVisitable<V>
,Visitable
,DebugDumpable
,Foreachable<V>
,ShortDumpable
,Serializable
public class PrismValueDeltaSetTripleImpl<V extends PrismValue> extends DeltaSetTripleImpl<V> implements PrismValueDeltaSetTriple<V>
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 interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description PrismValueDeltaSetTripleImpl()
PrismValueDeltaSetTripleImpl(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
void
applyDefinition(ItemDefinition itemDefinition)
void
checkConsistence()
void
checkNoParent()
PrismValueDeltaSetTriple<V>
clone()
protected void
copyValues(PrismValueDeltaSetTripleImpl<V> clone)
protected String
debugName()
<O extends PrismValue>
voiddistributeAs(V myMember, PrismValueDeltaSetTriple<O> otherTriple, O otherMember)
Distributes a value in this triple similar to the placement of other value in the other triple.Class<?>
getRealValueClass()
Class<V>
getValueClass()
boolean
isRaw()
protected boolean
presentInSet(Collection<V> set, V item)
void
removeEmptyValues(boolean allowEmptyValues)
void
setOriginObject(Objectable originObject)
Sets specified origin object for all values in all setsvoid
setOriginType(OriginType sourceType)
Sets specified source type for all values in all setsprotected void
toHumanReadableString(StringBuilder sb, V item)
-
Methods inherited from class com.evolveum.midpoint.prism.impl.delta.DeltaSetTripleImpl
addAllToMinusSet, addAllToPlusSet, addAllToSet, addAllToZeroSet, addToMinusSet, addToPlusSet, addToSet, addToZeroSet, clearMinusSet, clearPlusSet, clearZeroSet, clone, copyValues, debugDump, debugDump, debugDumpSets, diff, foreach, getAllValues, getAnyValue, getMinusSet, getNonNegativeValues, getNonPositiveValues, getPlusSet, getSet, getZeroSet, hasMinusSet, hasPlusSet, hasZeroSet, isEmpty, isZeroOnly, merge, presentInMinusSet, presentInPlusSet, presentInZeroSet, shortDump, simpleAccept, size, stream, toHumanReadableString, toString, transform, 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.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.delta.DeltaSetTriple
addAllToMinusSet, addAllToPlusSet, addAllToSet, addAllToZeroSet, addToMinusSet, addToPlusSet, addToSet, addToZeroSet, clearMinusSet, clearPlusSet, clearZeroSet, clone, debugDumpSets, foreach, getAllValues, getAnyValue, getMinusSet, getNonNegativeValues, getNonPositiveValues, getPlusSet, getSet, getZeroSet, hasMinusSet, hasPlusSet, hasZeroSet, isEmpty, isZeroOnly, merge, presentInMinusSet, presentInPlusSet, presentInZeroSet, simpleAccept, size, stream, toHumanReadableString, transform, union
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDump, shortDumpLazily
-
-
-
-
Constructor Detail
-
PrismValueDeltaSetTripleImpl
public PrismValueDeltaSetTripleImpl()
-
PrismValueDeltaSetTripleImpl
public PrismValueDeltaSetTripleImpl(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet)
-
-
Method Detail
-
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.- Specified by:
distributeAs
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
presentInSet
protected boolean presentInSet(Collection<V> set, V item)
- Overrides:
presentInSet
in classDeltaSetTripleImpl<V extends PrismValue>
-
getValueClass
public Class<V> getValueClass()
- Specified by:
getValueClass
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
getRealValueClass
public Class<?> getRealValueClass()
- Specified by:
getRealValueClass
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
isRaw
public boolean isRaw()
- Specified by:
isRaw
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
applyDefinition
public void applyDefinition(ItemDefinition itemDefinition) throws SchemaException
- Specified by:
applyDefinition
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
- Throws:
SchemaException
-
setOriginType
public void setOriginType(OriginType sourceType)
Sets specified source type for all values in all sets- Specified by:
setOriginType
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
setOriginObject
public void setOriginObject(Objectable originObject)
Sets specified origin object for all values in all sets- Specified by:
setOriginObject
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
removeEmptyValues
public void removeEmptyValues(boolean allowEmptyValues)
- Specified by:
removeEmptyValues
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
clone
public PrismValueDeltaSetTriple<V> clone()
- Specified by:
clone
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
- Overrides:
clone
in classObject
-
copyValues
protected void copyValues(PrismValueDeltaSetTripleImpl<V> clone)
-
checkConsistence
public void checkConsistence()
- Specified by:
checkConsistence
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
accept
public void accept(Visitor visitor)
- Specified by:
accept
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
- Specified by:
accept
in interfaceVisitable<V extends PrismValue>
-
checkNoParent
public void checkNoParent()
- Specified by:
checkNoParent
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
debugName
protected String debugName()
- Overrides:
debugName
in classDeltaSetTripleImpl<V extends PrismValue>
-
toHumanReadableString
protected void toHumanReadableString(StringBuilder sb, V item)
- Overrides:
toHumanReadableString
in classDeltaSetTripleImpl<V extends PrismValue>
-
-