Package com.evolveum.midpoint.prism.impl
Class PrismObjectValueImpl<O extends Objectable>
- java.lang.Object
- 
- com.evolveum.midpoint.prism.AbstractFreezable
- 
- com.evolveum.midpoint.prism.impl.PrismValueImpl
- 
- com.evolveum.midpoint.prism.impl.PrismContainerValueImpl<O>
- 
- com.evolveum.midpoint.prism.impl.PrismObjectValueImpl<O>
 
 
 
 
- 
- All Implemented Interfaces:
- Freezable,- ItemDefinitionTransformer.TransformableValue,- MidpointOriginMetadata,- ParentVisitable,- PathVisitable,- PrismContainerValue<O>,- PrismContextSensitive,- PrismObjectValue<O>,- PrismValue,- Revivable,- Visitable,- DebugDumpable,- Serializable
 
 public class PrismObjectValueImpl<O extends Objectable> extends PrismContainerValueImpl<O> implements PrismObjectValue<O> 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.- Author:
- mederly
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismContainerValuePrismContainerValue.RemovedItemDefinitionException
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected Stringoidprotected Stringversion- 
Fields inherited from class com.evolveum.midpoint.prism.impl.PrismContainerValueImplcomplexTypeDefinition, DIFFERENT_ITEMS_EXCEPTION, items, unqualifiedItemNames
 - 
Fields inherited from class com.evolveum.midpoint.prism.impl.PrismValueImpldefaultEquivalenceStrategy
 - 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
 
- 
 - 
Constructor SummaryConstructors Constructor Description PrismObjectValueImpl()PrismObjectValueImpl(PrismContext prismContext)PrismObjectValueImpl(O objectable)PrismObjectValueImpl(O objectable, PrismContext prismContext)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OasObjectable()static <T extends Objectable>
 TasObjectable(PrismObject<T> object)PrismObject<O>asPrismObject()PrismContainer<O>asSingleValuedContainer(@NotNull QName itemName)Returns a single-valued container (with a single-valued definition) holding just this value.PrismObjectValueImpl<O>clone()Literal clone.PrismObjectValueImpl<O>cloneComplex(CloneStrategy strategy)Complex clone with different cloning strategies.protected voiddebugDumpIdentifiers(StringBuilder sb)protected voiddetailedDebugDumpStart(StringBuilder sb)booleanequals(PrismValue other, @NotNull ParameterizedEquivalenceStrategy strategy)booleanequivalent(PrismContainerValue<?> other)PrismContainer<?>getExtension()ObjectgetIdentifier()Returns the value of identifier corresponding to the '#' path: container id or object oid.PolyStringgetName()StringgetOid()StringgetVersion()inthashCode(@NotNull ParameterizedEquivalenceStrategy strategy)voidsetOid(String oid)voidsetVersion(String version)StringtoHumanReadableString()StringtoString()- 
Methods inherited from class com.evolveum.midpoint.prism.impl.PrismContainerValueImplaccept, accept, acceptParentVisitor, add, add, addAll, addAllReplaceExisting, addRawElement, addReplaceExisting, applyDefinition, applyDefinition, asContainerable, asContainerable, asContainerable, asContainerables, asContainerables, asPrismContainerValues, assertDefinitions, assertDefinitions, canRepresent, checkConsistenceInternal, clear, contains, contains, containsItem, containsRealValue, copyValues, createDetachedSubItem, createImmutableClone, createProperty, createProperty, debugDump, deleteRawElement, diffMatchingRepresentation, find, findContainer, findItem, findItem, findOrCreateContainer, findOrCreateItem, findOrCreateItem, findOrCreateItem, findOrCreateProperty, findOrCreateProperty, findOrCreateReference, findPartial, findProperty, findProperty, findReference, findReferenceByCompositeObjectElementName, getAllValues, getCompileTimeClass, getComplexTypeDefinition, getContainer, getDefinition, getId, getItemNames, getItems, getItems, getParent, getPath, getPathComponent, getPrismContext, getPrismContextLocal, getProperties, getPropertyRealValue, getRealClass, getRealValue, getRootValue, getTypeName, getValue, hasCompleteDefinition, hasNoItems, isEmpty, isIdOnly, isRaw, keepPaths, merge, mergeContent, normalize, performFreeze, recompute, remove, removeAll, removeContainer, removeItems, removeOperationalItems, removePaths, removeProperty, removeRawElement, removeReference, replace, representsSameValue, revive, setId, setOriginTypeRecursive, setPropertyRealValue, size, subtract, toPcvList, transformDefinition
 - 
Methods inherited from class com.evolveum.midpoint.prism.impl.PrismValueImplappendOriginDump, applyDefinition, clearParent, copyValues, diff, diffMatchingRepresentation, equals, equals, getOriginObject, getOriginType, getParentContainerValue, getUserData, getUserData, getValueMetadata, hashCode, hashCode, hasValueMetadata, isTransient, recompute, setOriginObject, setOriginType, setParent, setPrismContext, setTransient, setUserData, setValueMetadata, setValueMetadata, setValueMetadata
 - 
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezablefreeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDump, debugDumpLazily, debugDumpLazily
 - 
Methods inherited from interface com.evolveum.midpoint.prism.FreezablecheckImmutable, checkMutable, freeze, isImmutable
 - 
Methods inherited from interface com.evolveum.midpoint.prism.metadata.MidpointOriginMetadatagetOriginObject, getOriginType, setOriginObject, setOriginType
 - 
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerValueaccept, 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.PrismContextSensitivegetPrismContext
 - 
Methods inherited from interface com.evolveum.midpoint.prism.PrismObjectValueequals, hashCode
 - 
Methods inherited from interface com.evolveum.midpoint.prism.PrismValueapplyDefinition, checkConsistenceInternal, clearParent, diff, equals, find, getAllValues, getParentContainerValue, getPath, getRealClass, getRealValue, getRealValueOrRawType, getTypeName, getUserData, getUserData, getValueMetadata, getValueMetadataAsContainer, hashCode, hasRealClass, hasValueMetadata, isEmpty, isRaw, isTransient, normalize, recompute, representsSameValue, setParent, setPrismContext, setTransient, setUserData, setValueMetadata, setValueMetadata, setValueMetadata, valueMetadata
 
- 
 
- 
- 
- 
Constructor Detail- 
PrismObjectValueImplpublic PrismObjectValueImpl() 
 - 
PrismObjectValueImplpublic PrismObjectValueImpl(PrismContext prismContext) 
 - 
PrismObjectValueImplpublic PrismObjectValueImpl(O objectable) 
 - 
PrismObjectValueImplpublic PrismObjectValueImpl(O objectable, PrismContext prismContext) 
 
- 
 - 
Method Detail- 
getOidpublic String getOid() - Specified by:
- getOidin interface- PrismObjectValue<O extends Objectable>
 
 - 
setOidpublic void setOid(String oid) - Specified by:
- setOidin interface- PrismObjectValue<O extends Objectable>
 
 - 
getVersionpublic String getVersion() - Specified by:
- getVersionin interface- PrismObjectValue<O extends Objectable>
 
 - 
setVersionpublic void setVersion(String version) - Specified by:
- setVersionin interface- PrismObjectValue<O extends Objectable>
 
 - 
asObjectablepublic O asObjectable() - Specified by:
- asObjectablein interface- PrismObjectValue<O extends Objectable>
 
 - 
asPrismObjectpublic PrismObject<O> asPrismObject() - Specified by:
- asPrismObjectin interface- PrismObjectValue<O extends Objectable>
 
 - 
getNamepublic PolyString getName() - Specified by:
- getNamein interface- PrismObjectValue<O extends Objectable>
 
 - 
getExtensionpublic PrismContainer<?> getExtension() - Specified by:
- getExtensionin interface- PrismObjectValue<O extends Objectable>
 
 - 
clonepublic PrismObjectValueImpl<O> clone() Description copied from class:PrismValueImplLiteral clone.- Specified by:
- clonein interface- PrismContainerValue<O extends Objectable>
- Specified by:
- clonein interface- PrismObjectValue<O extends Objectable>
- Specified by:
- clonein interface- PrismValue
- Overrides:
- clonein class- PrismContainerValueImpl<O extends Objectable>
 
 - 
cloneComplexpublic PrismObjectValueImpl<O> cloneComplex(CloneStrategy strategy) Description copied from class:PrismValueImplComplex clone with different cloning strategies.- Specified by:
- cloneComplexin interface- PrismContainerValue<O extends Objectable>
- Specified by:
- cloneComplexin interface- PrismObjectValue<O extends Objectable>
- Specified by:
- cloneComplexin interface- PrismValue
- Overrides:
- cloneComplexin class- PrismContainerValueImpl<O extends Objectable>
- See Also:
- CloneStrategy
 
 - 
hashCodepublic int hashCode(@NotNull @NotNull ParameterizedEquivalenceStrategy strategy)- Specified by:
- hashCodein interface- PrismValue
- Overrides:
- hashCodein class- PrismContainerValueImpl<O extends Objectable>
 
 - 
equivalentpublic boolean equivalent(PrismContainerValue<?> other) - Specified by:
- equivalentin interface- PrismContainerValue<O extends Objectable>
- Specified by:
- equivalentin interface- PrismObjectValue<O extends Objectable>
- Overrides:
- equivalentin class- PrismContainerValueImpl<O extends Objectable>
 
 - 
equalspublic boolean equals(PrismValue other, @NotNull @NotNull ParameterizedEquivalenceStrategy strategy) - Specified by:
- equalsin interface- PrismValue
- Overrides:
- equalsin class- PrismContainerValueImpl<O extends Objectable>
 
 - 
toStringpublic String toString() - Specified by:
- toStringin interface- PrismObjectValue<O extends Objectable>
- Overrides:
- toStringin class- PrismContainerValueImpl<O extends Objectable>
 
 - 
detailedDebugDumpStartprotected void detailedDebugDumpStart(StringBuilder sb) - Overrides:
- detailedDebugDumpStartin class- PrismContainerValueImpl<O extends Objectable>
 
 - 
debugDumpIdentifiersprotected void debugDumpIdentifiers(StringBuilder sb) - Overrides:
- debugDumpIdentifiersin class- PrismContainerValueImpl<O extends Objectable>
 
 - 
toHumanReadableStringpublic String toHumanReadableString() - Specified by:
- toHumanReadableStringin interface- PrismObjectValue<O extends Objectable>
- Specified by:
- toHumanReadableStringin interface- PrismValue
- Overrides:
- toHumanReadableStringin class- PrismContainerValueImpl<O extends Objectable>
 
 - 
asSingleValuedContainerpublic PrismContainer<O> asSingleValuedContainer(@NotNull @NotNull QName itemName) Description copied from class:PrismContainerValueImplReturns a single-valued container (with a single-valued definition) holding just this value.- Specified by:
- asSingleValuedContainerin interface- PrismContainerValue<O extends Objectable>
- Specified by:
- asSingleValuedContainerin interface- PrismObjectValue<O extends Objectable>
- Overrides:
- asSingleValuedContainerin class- PrismContainerValueImpl<O extends Objectable>
- Parameters:
- itemName- Item name for newly-created container.
 
 - 
asObjectablepublic static <T extends Objectable> T asObjectable(PrismObject<T> object) 
 - 
getIdentifierpublic Object getIdentifier() Description copied from class:PrismContainerValueImplReturns the value of identifier corresponding to the '#' path: container id or object oid.- Overrides:
- getIdentifierin class- PrismContainerValueImpl<O extends Objectable>
 
 
- 
 
-