public class PrismPropertyValue<T> extends PrismValue implements 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,
ConsistencyCheckScope scope) |
PrismPropertyValue<T> |
clone() |
static boolean |
containsRealValue(Collection<PrismPropertyValue<?>> collection,
PrismPropertyValue<?> value) |
static boolean |
containsValue(Collection<PrismPropertyValue> collection,
PrismPropertyValue value,
Comparator comparator) |
protected void |
copyValues(PrismPropertyValue clone) |
static <T> Collection<PrismPropertyValue<T>> |
createCollection(Collection<T> realValueCollection) |
static <T> Collection<PrismPropertyValue<T>> |
createCollection(T[] realValueArray) |
static <T> PrismPropertyValue<T> |
createRaw(XNode rawElement) |
String |
debugDump()
Show the content of the object intended for diagnostics by system administrator.
|
String |
debugDump(int indent) |
boolean |
equals(Object obj) |
boolean |
equalsComplex(PrismPropertyValue<?> other,
boolean ignoreMetadata,
boolean isLiteral,
MatchingRule<T> matchingRule) |
boolean |
equalsComplex(PrismValue other,
boolean ignoreMetadata,
boolean isLiteral) |
Object |
find(ItemPath path) |
<IV extends PrismValue,ID extends ItemDefinition> |
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 |
revive(PrismContext prismContext) |
void |
setRawElement(XNode rawElement) |
void |
setValue(T value) |
String |
toHumanReadableString()
Returns a short (one-line) representation of the real value stored in this object.
|
JAXBElement<T> |
toJaxbElement()
Returns JAXBElement corresponding to the this value.
|
String |
toString() |
accept, accept, appendOriginDump, clearParent, clearParent, cloneCollection, cloneValues, containsRealValue, copyValues, diff, diff, equals, equals, equalsRealValue, equalsRealValue, equalsRealValues, getDefinition, getOriginObject, getOriginType, getParent, getPath, getPrismContext, getRealValuesOfCollection, getUserData, getUserData, normalize, recompute, representsSameValue, resetParentCollection, setOriginObject, setOriginType, setParent, setUserData
public PrismPropertyValue(T value)
public PrismPropertyValue(T value, OriginType type, Objectable source)
public static <T> PrismPropertyValue<T> createRaw(XNode rawElement)
public void setValue(T value)
public T getValue()
public static <T> Collection<T> getValues(Collection<PrismPropertyValue<T>> pvals)
public Object getRawElement()
public void setRawElement(XNode 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 revive(PrismContext prismContext) throws SchemaException
revive
in interface Revivable
revive
in class PrismValue
SchemaException
public void recompute(PrismContext prismContext)
recompute
in class PrismValue
public Object find(ItemPath path)
find
in class PrismValue
public <IV extends PrismValue,ID extends ItemDefinition> PartiallyResolvedItem<IV,ID> findPartial(ItemPath path)
findPartial
in class PrismValue
public void checkConsistenceInternal(Itemable rootItem, boolean requireDefinitions, boolean prohibitRaw, ConsistencyCheckScope scope)
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 boolean containsValue(Collection<PrismPropertyValue> collection, PrismPropertyValue value, Comparator comparator)
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, MatchingRule<T> matchingRule)
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 toHumanReadableString()
PrismValue
toHumanReadableString
in class PrismValue
public JAXBElement<T> toJaxbElement()
Copyright © 2016 evolveum. All rights reserved.