public interface PrismValue extends Visitable, PathVisitable, Serializable, DebugDumpable, Revivable
INDENT_STRING
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor) |
void |
accept(Visitor visitor,
ItemPath path,
boolean recursive) |
void |
applyDefinition(ItemDefinition definition) |
void |
applyDefinition(ItemDefinition definition,
boolean force) |
void |
checkConsistenceInternal(Itemable rootItem,
boolean requireDefinitions,
boolean prohibitRaw,
ConsistencyCheckScope scope) |
void |
clearParent()
Used when we are removing the value from the previous parent.
|
PrismValue |
clone()
Literal clone.
|
PrismValue |
cloneComplex(CloneStrategy strategy)
Complex clone with different cloning strategies.
|
Collection<? extends ItemDelta> |
diff(PrismValue otherValue)
Assumes matching representations.
|
Collection<? extends ItemDelta> |
diff(PrismValue otherValue,
ParameterizedEquivalenceStrategy strategy)
Assumes matching representations.
|
boolean |
equals(PrismValue otherValue,
EquivalenceStrategy strategy) |
boolean |
equals(PrismValue otherValue,
ParameterizedEquivalenceStrategy strategy) |
boolean |
equals(PrismValue thisValue,
PrismValue otherValue) |
Object |
find(ItemPath path) |
Collection<PrismValue> |
getAllValues(ItemPath path) |
Objectable |
getOriginObject() |
OriginType |
getOriginType() |
Itemable |
getParent() |
PrismContainerValue<?> |
getParentContainerValue() |
ItemPath |
getPath() |
PrismContext |
getPrismContext() |
Class<?> |
getRealClass() |
<T> T |
getRealValue() |
PrismValue |
getRootValue() |
QName |
getTypeName() |
Map<String,Object> |
getUserData() |
Object |
getUserData(String key) |
int |
hashCode(EquivalenceStrategy equivalenceStrategy) |
int |
hashCode(ParameterizedEquivalenceStrategy equivalenceStrategy) |
boolean |
isEmpty() |
boolean |
isImmutable() |
boolean |
isRaw() |
void |
normalize() |
void |
recompute()
Recompute the value or otherwise "initialize" it before adding it to a prism tree.
|
void |
recompute(PrismContext prismContext) |
boolean |
representsSameValue(PrismValue other,
boolean lax)
Returns true if this and other value represent the same value.
|
void |
revive(PrismContext prismContext) |
void |
setImmutable(boolean immutable) |
void |
setOriginObject(Objectable source) |
void |
setOriginType(OriginType type) |
void |
setParent(Itemable parent) |
void |
setPrismContext(PrismContext prismContext) |
void |
setUserData(String key,
Object value) |
String |
toHumanReadableString() |
debugDump, debugDump, debugDumpLazily, debugDumpLazily
void setPrismContext(PrismContext prismContext)
void setOriginObject(Objectable source)
void setOriginType(OriginType type)
OriginType getOriginType()
Objectable getOriginObject()
Itemable getParent()
void setParent(Itemable parent)
@NotNull ItemPath getPath()
void clearParent()
PrismContext getPrismContext()
void applyDefinition(ItemDefinition definition) throws SchemaException
SchemaException
void applyDefinition(ItemDefinition definition, boolean force) throws SchemaException
SchemaException
void revive(PrismContext prismContext) throws SchemaException
revive
in interface Revivable
SchemaException
void recompute()
void recompute(PrismContext prismContext)
void accept(Visitor visitor, ItemPath path, boolean recursive)
accept
in interface PathVisitable
void checkConsistenceInternal(Itemable rootItem, boolean requireDefinitions, boolean prohibitRaw, ConsistencyCheckScope scope)
boolean representsSameValue(PrismValue other, boolean lax)
lax
- If we can reasonably assume that the two values belong together even if they don't have the same ID,
e.g. if they both belong to single-valued parent items. This is useful e.g. when comparing
multi-valued containers. But can cause problems when we want to be sure we are removing the correct
value.void normalize()
PrismValue clone()
PrismValue cloneComplex(CloneStrategy strategy)
CloneStrategy
int hashCode(@NotNull EquivalenceStrategy equivalenceStrategy)
int hashCode(@NotNull ParameterizedEquivalenceStrategy equivalenceStrategy)
boolean equals(PrismValue otherValue, @NotNull EquivalenceStrategy strategy)
boolean equals(PrismValue otherValue, @NotNull ParameterizedEquivalenceStrategy strategy)
boolean equals(PrismValue thisValue, PrismValue otherValue)
Collection<? extends ItemDelta> diff(PrismValue otherValue)
Collection<? extends ItemDelta> diff(PrismValue otherValue, ParameterizedEquivalenceStrategy strategy)
boolean isImmutable()
void setImmutable(boolean immutable)
@Nullable Class<?> getRealClass()
@Nullable <T> T getRealValue()
PrismValue getRootValue()
PrismContainerValue<?> getParentContainerValue()
QName getTypeName()
@NotNull Collection<PrismValue> getAllValues(ItemPath path)
boolean isRaw()
boolean isEmpty()
String toHumanReadableString()
Copyright © 2019 Evolveum. All rights reserved.