public abstract class PrismValue extends Object implements Visitable, PathVisitable, Serializable, Dumpable, DebugDumpable
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) |
void |
applyDefinition(ItemDefinition definition) |
void |
applyDefinition(ItemDefinition definition,
boolean force) |
Element |
asDomElement() |
abstract void |
checkConsistenceInternal(Itemable rootItem,
boolean requireDefinitions,
boolean prohibitRaw) |
protected void |
clearDomElement() |
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) |
protected abstract Element |
createDomElement() |
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) |
abstract Object |
find(ItemPath path) |
abstract <X extends PrismValue> |
findPartial(ItemPath path) |
Objectable |
getOriginObject() |
OriginType |
getOriginType() |
Itemable |
getParent() |
ItemPath |
getPath() |
PrismContext |
getPrismContext() |
static <T> Set<T> |
getRealValuesOfCollection(Collection<PrismPropertyValue<T>> collection) |
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) |
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 PrismContext getPrismContext()
public void applyDefinition(ItemDefinition definition) throws SchemaException
SchemaException
public void applyDefinition(ItemDefinition definition, boolean force) throws SchemaException
SchemaException
public void revive(PrismContext prismContext)
public void recompute()
public abstract void recompute(PrismContext prismContext)
public void accept(Visitor visitor, ItemPath path, boolean recursive)
accept
in interface PathVisitable
public Element asDomElement()
protected abstract Element createDomElement()
protected void clearDomElement()
public abstract void checkConsistenceInternal(Itemable rootItem, boolean requireDefinitions, boolean prohibitRaw)
public boolean representsSameValue(PrismValue other)
public static <V extends PrismValue> boolean containsRealValue(Collection<V> collection, V value)
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> PartiallyResolvedValue<X> 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()
public static <T> Set<T> getRealValuesOfCollection(Collection<PrismPropertyValue<T>> collection)
Copyright © 2013 evolveum. All rights reserved.