public abstract class PrismValue extends Object implements Visitable, PathVisitable, Serializable, DebugDumpable, Revivable
Modifier and Type | Field and Description |
---|---|
protected Element |
domElement |
INDENT_STRING
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor) |
void |
accept(Visitor visitor,
ItemPath path,
boolean recursive) |
protected void |
appendOriginDump(StringBuilder builder) |
void |
applyDefinition(ItemDefinition definition) |
void |
applyDefinition(ItemDefinition definition,
boolean force) |
abstract void |
checkConsistenceInternal(Itemable rootItem,
boolean requireDefinitions,
boolean prohibitRaw,
ConsistencyCheckScope scope) |
void |
clearParent()
Used when we are removing the value from the previous parent.
|
static <T> void |
clearParent(List<PrismPropertyValue<T>> values) |
abstract PrismValue |
clone() |
static <T extends PrismValue> |
cloneCollection(Collection<T> values) |
static <X extends PrismValue> |
cloneValues(Collection<X> values) |
static <V extends PrismValue> |
containsRealValue(Collection<V> collection,
V value) |
protected void |
copyValues(PrismValue clone) |
Collection<? extends ItemDelta> |
diff(PrismValue otherValue)
Assumes matching representations.
|
Collection<? extends ItemDelta> |
diff(PrismValue otherValue,
boolean ignoreMetadata,
boolean isLiteral)
Assumes matching representations.
|
boolean |
equals(Object obj) |
boolean |
equals(PrismValue otherValue,
boolean ignoreMetadata) |
boolean |
equals(PrismValue thisValue,
PrismValue otherValue) |
boolean |
equalsComplex(PrismValue other,
boolean ignoreMetadata,
boolean isLiteral) |
boolean |
equalsRealValue(PrismValue otherValue) |
boolean |
equalsRealValue(PrismValue thisValue,
PrismValue otherValue) |
static <V extends PrismValue> |
equalsRealValues(Collection<V> collection1,
Collection<V> collection2) |
abstract Object |
find(ItemPath path) |
abstract <X extends PrismValue,Y extends ItemDefinition> |
findPartial(ItemPath path) |
protected ItemDefinition |
getDefinition() |
Objectable |
getOriginObject() |
OriginType |
getOriginType() |
Itemable |
getParent() |
ItemPath |
getPath() |
PrismContext |
getPrismContext() |
static <T> Set<T> |
getRealValuesOfCollection(Collection<PrismPropertyValue<T>> collection) |
Map<String,Object> |
getUserData() |
Object |
getUserData(String key) |
int |
hashCode() |
abstract boolean |
isEmpty() |
abstract boolean |
isRaw()
Returns true if the value is raw.
|
abstract boolean |
match(PrismValue otherValue) |
void |
normalize() |
void |
recompute()
Recompute the value or otherwise "initialize" it before adding it to a prism tree.
|
abstract void |
recompute(PrismContext prismContext) |
boolean |
representsSameValue(PrismValue other)
Returns true if this and other value represent the same value.
|
static <T extends PrismValue> |
resetParentCollection(Collection<T> values)
Sets all parents to null.
|
void |
revive(PrismContext prismContext) |
void |
setOriginObject(Objectable source) |
void |
setOriginType(OriginType type) |
void |
setParent(Itemable parent) |
void |
setUserData(String key,
Object value) |
abstract String |
toHumanReadableString()
Returns a short (one-line) representation of the real value stored in this object.
|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
debugDump, debugDump
protected Element domElement
public void setOriginObject(Objectable source)
public void setOriginType(OriginType type)
public OriginType getOriginType()
public Objectable getOriginObject()
public Itemable getParent()
public void setParent(Itemable parent)
public ItemPath getPath()
public void clearParent()
public static <T> void clearParent(List<PrismPropertyValue<T>> values)
public PrismContext getPrismContext()
protected ItemDefinition getDefinition()
public void applyDefinition(ItemDefinition definition) throws SchemaException
SchemaException
public void applyDefinition(ItemDefinition definition, boolean force) throws SchemaException
SchemaException
public void revive(PrismContext prismContext) throws SchemaException
revive
in interface Revivable
SchemaException
public void recompute()
public abstract void recompute(PrismContext prismContext)
public void accept(Visitor visitor, ItemPath path, boolean recursive)
accept
in interface PathVisitable
public abstract void checkConsistenceInternal(Itemable rootItem, boolean requireDefinitions, boolean prohibitRaw, ConsistencyCheckScope scope)
public boolean representsSameValue(PrismValue other)
public static <V extends PrismValue> boolean containsRealValue(Collection<V> collection, V value)
public static <V extends PrismValue> boolean equalsRealValues(Collection<V> collection1, Collection<V> collection2)
public abstract boolean isEmpty()
public void normalize()
public abstract boolean isRaw()
public static <X extends PrismValue> Collection<X> cloneValues(Collection<X> values)
public abstract PrismValue clone()
protected void copyValues(PrismValue clone)
public static <T extends PrismValue> Collection<T> cloneCollection(Collection<T> values)
public static <T extends PrismValue> Collection<T> resetParentCollection(Collection<T> values)
public abstract <X extends PrismValue,Y extends ItemDefinition> PartiallyResolvedItem<X,Y> findPartial(ItemPath path)
public boolean equalsComplex(PrismValue other, boolean ignoreMetadata, boolean isLiteral)
public boolean equals(PrismValue otherValue, boolean ignoreMetadata)
public boolean equals(PrismValue thisValue, PrismValue otherValue)
public boolean equalsRealValue(PrismValue otherValue)
public boolean equalsRealValue(PrismValue thisValue, PrismValue otherValue)
public Collection<? extends ItemDelta> diff(PrismValue otherValue)
public Collection<? extends ItemDelta> diff(PrismValue otherValue, boolean ignoreMetadata, boolean isLiteral)
public abstract boolean match(PrismValue otherValue)
public abstract String toHumanReadableString()
protected void appendOriginDump(StringBuilder builder)
public static <T> Set<T> getRealValuesOfCollection(Collection<PrismPropertyValue<T>> collection)
Copyright © 2016 evolveum. All rights reserved.