public class PrismPropertyValue<T> extends PrismValue implements Dumpable, DebugDumpable, Serializable
domElement
INDENT_STRING
Constructor and Description |
---|
PrismPropertyValue(T value) |
PrismPropertyValue(T value,
OriginType type,
Objectable source) |
Modifier and Type | Method and Description |
---|---|
void |
applyDefinition(ItemDefinition definition) |
void |
applyDefinition(ItemDefinition definition,
boolean force) |
void |
checkConsistenceInternal(Itemable rootItem,
boolean requireDefinitions,
boolean prohibitRaw) |
PrismPropertyValue<T> |
clone() |
static boolean |
containsRealValue(Collection<PrismPropertyValue<?>> collection,
PrismPropertyValue<?> value) |
protected void |
copyValues(PrismPropertyValue clone) |
static <T> Collection<PrismPropertyValue<T>> |
createCollection(Collection<T> realValueCollection) |
static <T> Collection<PrismPropertyValue<T>> |
createCollection(T[] realValueArray) |
protected Element |
createDomElement() |
String |
debugDump()
Show the content of the object intended for diagnostics by system administrator.
|
String |
debugDump(int indent) |
String |
dump()
Show the content of the object intended for diagnostics by developer.
|
boolean |
equals(Object obj) |
boolean |
equalsComplex(PrismPropertyValue<?> other,
boolean ignoreMetadata,
boolean isLiteral) |
boolean |
equalsComplex(PrismValue other,
boolean ignoreMetadata,
boolean isLiteral) |
Object |
find(ItemPath path) |
<X extends PrismValue> |
findPartial(ItemPath path) |
Object |
getRawElement() |
T |
getValue() |
static <T> Collection<T> |
getValues(Collection<PrismPropertyValue<T>> pvals) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isRaw()
Returns true if the value is raw.
|
boolean |
match(PrismValue otherValue) |
void |
recompute(PrismContext prismContext) |
void |
setRawElement(Object rawElement) |
void |
setValue(T value) |
String |
toHumanReadableString()
Returns a short (one-line) representation of the real value stored in this object.
|
String |
toString() |
accept, accept, asDomElement, clearDomElement, cloneCollection, cloneValues, containsRealValue, copyValues, diff, diff, equals, equals, equalsRealValue, equalsRealValue, getOriginObject, getOriginType, getParent, getPath, getPrismContext, getRealValuesOfCollection, normalize, recompute, representsSameValue, resetParentCollection, revive, setOriginObject, setOriginType, setParent
public PrismPropertyValue(T value)
public PrismPropertyValue(T value, OriginType type, Objectable source)
public void setValue(T value)
public T getValue()
public static <T> Collection<T> getValues(Collection<PrismPropertyValue<T>> pvals)
public Object getRawElement()
public void setRawElement(Object rawElement)
public boolean isRaw()
PrismValue
isRaw
in class PrismValue
public void applyDefinition(ItemDefinition definition) throws SchemaException
applyDefinition
in class PrismValue
SchemaException
public void applyDefinition(ItemDefinition definition, boolean force) throws SchemaException
applyDefinition
in class PrismValue
SchemaException
public void recompute(PrismContext prismContext)
recompute
in class PrismValue
public Object find(ItemPath path)
find
in class PrismValue
public <X extends PrismValue> PartiallyResolvedValue<X> findPartial(ItemPath path)
findPartial
in class PrismValue
protected Element createDomElement()
createDomElement
in class PrismValue
public void checkConsistenceInternal(Itemable rootItem, boolean requireDefinitions, boolean prohibitRaw)
checkConsistenceInternal
in class PrismValue
public boolean isEmpty()
isEmpty
in class PrismValue
public PrismPropertyValue<T> clone()
clone
in class PrismValue
protected void copyValues(PrismPropertyValue clone)
public static boolean containsRealValue(Collection<PrismPropertyValue<?>> collection, PrismPropertyValue<?> value)
public static <T> Collection<PrismPropertyValue<T>> createCollection(Collection<T> realValueCollection)
public static <T> Collection<PrismPropertyValue<T>> createCollection(T[] realValueArray)
public boolean equalsComplex(PrismValue other, boolean ignoreMetadata, boolean isLiteral)
equalsComplex
in class PrismValue
public boolean equalsComplex(PrismPropertyValue<?> other, boolean ignoreMetadata, boolean isLiteral)
public boolean match(PrismValue otherValue)
match
in class PrismValue
public boolean equals(Object obj)
equals
in class PrismValue
public int hashCode()
hashCode
in class PrismValue
public String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public String debugDump(int indent)
debugDump
in interface DebugDumpable
public String dump()
Dumpable
public String toHumanReadableString()
PrismValue
toHumanReadableString
in class PrismValue
Copyright © 2013 evolveum. All rights reserved.