Package com.evolveum.midpoint.prism
Interface PrismObjectValue<O extends Objectable>
- All Superinterfaces:
DebugDumpable
,Freezable
,MidpointOriginMetadata
,ParentVisitable
,PathVisitable
,PrismContainerValue<O>
,PrismContextSensitive
,PrismValue
,Revivable
,Serializable
,Visitable
Extension of PrismContainerValue that holds object-specific data (OID and version).
It was created to make methods returning/accepting ItemValue universally usable;
not losing OID/version data when object values are passed via such interfaces.
This value is to be held by PrismObject. And such object should hold exactly one
PrismObjectValue.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismContainerValue
PrismContainerValue.RemovedItemDefinitionException
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Objectable>
TasObjectable
(PrismObject<T> object) asSingleValuedContainer
(@NotNull QName itemName) Returns a single-valued container (with a single-valued definition) holding just this value.clone()
Literal clone.cloneComplex
(CloneStrategy strategy) Complex clone with different cloning strategies.boolean
boolean
equivalent
(PrismContainerValue<?> other) getName()
getOid()
int
hashCode()
void
void
setVersion
(String version) toString()
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
Methods inherited from interface com.evolveum.midpoint.prism.metadata.MidpointOriginMetadata
getOriginObject, getOriginType, setOriginObject, setOriginType
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerValue
accept, accept, acceptParentVisitor, add, add, addAll, addAllReplaceExisting, addRawElement, addReplaceExisting, applyDefinition, applyDefinition, asContainerable, asContainerable, assertDefinitions, assertDefinitions, canRepresent, clear, contains, contains, containsItem, createDetachedSubItem, createImmutableClone, createProperty, createProperty, deleteRawElement, findContainer, findItem, findItem, findItem, findOrCreateContainer, findOrCreateItem, findOrCreateItem, findOrCreateItem, findOrCreateProperty, findOrCreateProperty, findOrCreateReference, findPartial, findProperty, findProperty, findReference, findReferenceByCompositeObjectElementName, getCompileTimeClass, getComplexTypeDefinition, getContainer, getDefinition, getId, getItemNames, getItemRealValue, getItems, getParent, getPrismContextLocal, getProperties, getPropertyRealValue, getRootValue, getValue, hasCompleteDefinition, hasNoItems, isIdOnly, keepPaths, merge, mergeContent, recompute, remove, removeAll, removeContainer, removeItems, removeOperationalItems, removePaths, removeProperty, removeRawElement, removeReference, replace, setId, setOriginTypeRecursive, setPropertyRealValue, size, subtract
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
Methods inherited from interface com.evolveum.midpoint.prism.PrismValue
applyDefinition, checkConsistenceInternal, clearParent, cloneIfImmutable, diff, equals, equals, find, getAllItems, getAllValues, getNearestValueOfType, getParentContainerValue, getPath, getRealClass, getRealValue, getRealValueIfExists, getRealValueOrRawType, getRootObjectable, getTypeName, getUserData, getUserData, getValueMetadata, getValueMetadataAsContainer, hashCode, hashCode, hasRealClass, hasValueMetadata, isEmpty, isObjectable, isOfType, isRaw, isTransient, normalize, recompute, representsSameValue, setParent, setPrismContext, setTransient, setUserData, setValueMetadata, setValueMetadata, setValueMetadata, valueMetadata
-
Method Details
-
getOid
String getOid() -
setOid
-
getVersion
String getVersion() -
setVersion
-
asObjectable
O asObjectable() -
asPrismObject
PrismObject<O> asPrismObject() -
getName
PolyString getName() -
getExtension
PrismContainer<?> getExtension() -
clone
PrismObjectValue<O> clone()Description copied from interface:PrismValue
Literal clone.- Specified by:
clone
in interfacePrismContainerValue<O extends Objectable>
- Specified by:
clone
in interfacePrismValue
-
cloneComplex
Description copied from interface:PrismValue
Complex clone with different cloning strategies.- Specified by:
cloneComplex
in interfacePrismContainerValue<O extends Objectable>
- Specified by:
cloneComplex
in interfacePrismValue
- See Also:
-
equals
-
hashCode
int hashCode() -
equivalent
- Specified by:
equivalent
in interfacePrismContainerValue<O extends Objectable>
-
toString
String toString() -
toHumanReadableString
String toHumanReadableString()- Specified by:
toHumanReadableString
in interfacePrismValue
-
asSingleValuedContainer
Description copied from interface:PrismContainerValue
Returns a single-valued container (with a single-valued definition) holding just this value.- Specified by:
asSingleValuedContainer
in interfacePrismContainerValue<O extends Objectable>
- Parameters:
itemName
- Item name for newly-created container.- Throws:
SchemaException
-
asObjectable
-