com.evolveum.midpoint.prism
Class PrismPropertyValue<T>
java.lang.Object
com.evolveum.midpoint.prism.PrismValue
com.evolveum.midpoint.prism.PrismPropertyValue<T>
- All Implemented Interfaces:
- Visitable, DebugDumpable, Dumpable, java.io.Serializable
public class PrismPropertyValue<T>
- extends PrismValue
- implements Dumpable, DebugDumpable, java.io.Serializable
- Author:
- lazyman
- See Also:
- Serialized Form
Methods inherited from class com.evolveum.midpoint.prism.PrismValue |
accept, asDomElement, clearDomElement, cloneCollection, cloneValues, containsRealValue, copyValues, diff, diff, equals, equals, equalsRealValue, equalsRealValue, getOriginObject, getOriginType, getParent, getPath, getPrismContext, normalize, recompute, representsSameValue, resetParentCollection, revive, setOriginObject, setOriginType, setParent |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
PrismPropertyValue
public PrismPropertyValue(T value)
PrismPropertyValue
public PrismPropertyValue(T value,
OriginType type,
Objectable source)
setValue
public void setValue(T value)
getValue
public T getValue()
getValues
public static <T> java.util.Collection<T> getValues(java.util.Collection<PrismPropertyValue<T>> pvals)
getRawElement
public java.lang.Object getRawElement()
setRawElement
public void setRawElement(java.lang.Object rawElement)
isRaw
public boolean isRaw()
- Description copied from class:
PrismValue
- Returns true if the value is raw. Raw value is a semi-parsed value.
A value for which we don't have a full definition yet and therefore
the parsing could not be finished until the defintion is supplied.
- Specified by:
isRaw
in class PrismValue
applyDefinition
public void applyDefinition(ItemDefinition definition)
throws SchemaException
- Overrides:
applyDefinition
in class PrismValue
- Throws:
SchemaException
applyDefinition
public void applyDefinition(ItemDefinition definition,
boolean force)
throws SchemaException
- Overrides:
applyDefinition
in class PrismValue
- Throws:
SchemaException
recompute
public void recompute(PrismContext prismContext)
- Specified by:
recompute
in class PrismValue
createDomElement
protected org.w3c.dom.Element createDomElement()
- Specified by:
createDomElement
in class PrismValue
checkConsistenceInternal
public void checkConsistenceInternal(Itemable rootItem,
ItemPath parentPath,
boolean requireDefinitions,
boolean prohibitRaw)
- Specified by:
checkConsistenceInternal
in class PrismValue
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in class PrismValue
clone
public PrismPropertyValue<T> clone()
- Specified by:
clone
in class PrismValue
copyValues
protected void copyValues(PrismPropertyValue clone)
containsRealValue
public static boolean containsRealValue(java.util.Collection<PrismPropertyValue<?>> collection,
PrismPropertyValue<?> value)
createCollection
public static <T> java.util.Collection<PrismPropertyValue<T>> createCollection(java.util.Collection<T> realValueCollection)
createCollection
public static <T> java.util.Collection<PrismPropertyValue<T>> createCollection(T[] realValueArray)
equalsComplex
public boolean equalsComplex(PrismValue other,
boolean ignoreMetadata,
boolean isLiteral)
- Overrides:
equalsComplex
in class PrismValue
equalsComplex
public boolean equalsComplex(PrismPropertyValue<?> other,
boolean ignoreMetadata,
boolean isLiteral)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class PrismValue
hashCode
public int hashCode()
- Overrides:
hashCode
in class PrismValue
debugDump
public java.lang.String debugDump()
- Description copied from interface:
DebugDumpable
- Show the content of the object intended for diagnostics by system administrator. The out
put should be suitable to use in system logs at "debug" level. It may be multi-line, but in
that case it should be well indented and quite terse.
As it is intended to be used by system administrator, it should not use any developer terms
such as class names, exceptions or stack traces.
- Specified by:
debugDump
in interface DebugDumpable
- Returns:
- content of the object intended for diagnostics by system administrator.
debugDump
public java.lang.String debugDump(int indent)
- Specified by:
debugDump
in interface DebugDumpable
dump
public java.lang.String dump()
- Description copied from interface:
Dumpable
- Show the content of the object intended for diagnostics by developer.
The content may be multi-line, in case of hierarchical objects it may be intended.
The use of this method may not be efficient. It is not supposed to be used in normal operation.
However, it is very useful in tests or in case of dumping objects in severe error situations.
- Specified by:
dump
in interface Dumpable
- Returns:
- content of the object intended for diagnostics.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getHumanReadableDump
public java.lang.Object getHumanReadableDump()
Copyright © 2012 evolveum. All Rights Reserved.