Package com.evolveum.midpoint.prism
Interface PrismObjectValue<O extends Objectable>
-
- All Superinterfaces:
DebugDumpable
,Freezable
,MidpointOriginMetadata
,ParentVisitable
,PathVisitable
,PrismContainerValue<O>
,PrismContextSensitive
,PrismValue
,Revivable
,Serializable
,Visitable
- All Known Implementing Classes:
PrismObjectValueImpl
public interface PrismObjectValue<O extends Objectable> extends PrismContainerValue<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
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description O
asObjectable()
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.PrismObjectValue<O>
clone()
Literal clone.PrismObjectValue<O>
cloneComplex(CloneStrategy strategy)
Complex clone with different cloning strategies.boolean
equals(Object o)
boolean
equivalent(PrismContainerValue<?> other)
PrismContainer<?>
getExtension()
PolyString
getName()
String
getOid()
String
getVersion()
int
hashCode()
void
setOid(String oid)
void
setVersion(String version)
String
toHumanReadableString()
String
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, diff, equals, equals, find, getAllValues, getParentContainerValue, getPath, getRealClass, getRealValue, getRealValueOrRawType, getTypeName, getUserData, getUserData, getValueMetadata, getValueMetadataAsContainer, hashCode, hashCode, hasRealClass, hasValueMetadata, isEmpty, isRaw, isTransient, normalize, recompute, representsSameValue, setParent, setPrismContext, setTransient, setUserData, setValueMetadata, setValueMetadata, setValueMetadata, valueMetadata
-
-
-
-
Method Detail
-
getOid
String getOid()
-
setOid
void setOid(String oid)
-
getVersion
String getVersion()
-
setVersion
void setVersion(String version)
-
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
PrismObjectValue<O> cloneComplex(CloneStrategy strategy)
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:
CloneStrategy
-
equivalent
boolean equivalent(PrismContainerValue<?> other)
- Specified by:
equivalent
in interfacePrismContainerValue<O extends Objectable>
-
toHumanReadableString
String toHumanReadableString()
- Specified by:
toHumanReadableString
in interfacePrismValue
-
asSingleValuedContainer
PrismContainer<O> asSingleValuedContainer(@NotNull @NotNull QName itemName) throws SchemaException
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
static <T extends Objectable> T asObjectable(PrismObject<T> object)
-
-