Package com.evolveum.midpoint.prism.impl
Class PrismPropertyValueImpl<T>
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.prism.impl.PrismValueImpl
com.evolveum.midpoint.prism.impl.PrismPropertyValueImpl<T>
- All Implemented Interfaces:
- Freezable,- ItemDefinitionTransformer.TransformableValue,- MidpointOriginMetadata,- PathVisitable,- PrismContextSensitive,- PrismPropertyValue<T>,- PrismValue,- Revivable,- Visitable,- DebugDumpable,- Serializable
public class PrismPropertyValueImpl<T>
extends PrismValueImpl
implements DebugDumpable, Serializable, PrismPropertyValue<T>
- Author:
- lazyman
- See Also:
- 
Field SummaryFields inherited from class com.evolveum.midpoint.prism.impl.PrismValueImpldefaultEquivalenceStrategyFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Constructor SummaryConstructorsConstructorDescriptionPrismPropertyValueImpl(T value) PrismPropertyValueImpl(T value, OriginType type, Objectable source) PrismPropertyValueImpl(T value, PrismContext prismContext) PrismPropertyValueImpl(T value, PrismContext prismContext, OriginType type, Objectable source, ExpressionWrapper expression) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyDefinition(ItemDefinition definition) voidapplyDefinition(ItemDefinition definition, boolean force) voidcheckConsistenceInternal(Itemable rootItem, boolean requireDefinitions, boolean prohibitRaw, ConsistencyCheckScope scope) clone()Literal clone.cloneComplex(CloneStrategy strategy) Complex clone with different cloning strategies.protected voidcopyValues(CloneStrategy strategy, PrismPropertyValueImpl<T> clone) Show the content of the object intended for diagnostics by system administrator.debugDump(int indent) debugDump(int indent, boolean detailedDump) booleanequals(PrismPropertyValue<?> other0, @NotNull ParameterizedEquivalenceStrategy strategy, @Nullable MatchingRule<T> matchingRule) booleanequals(PrismValue other, @NotNull ParameterizedEquivalenceStrategy strategy) <IV extends PrismValue,ID extends ItemDefinition<?>> 
 PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) @Nullable ExpressionWrapperClass<?>Returns the statically-typed "real value".@Nullable Object@Nullable ObjectgetRealValueOrRawType(PrismContext prismContext) getValue()inthashCode(@NotNull ParameterizedEquivalenceStrategy strategy) booleanisEmpty()booleanisRaw()voidvoidrecompute(PrismContext prismContext) voidrevive(PrismContext prismContext) TODO: Is revive necessary if prism context is static?voidsetExpression(@Nullable ExpressionWrapper expression) voidsetRawElement(XNode rawElement) voidjakarta.xml.bind.JAXBElement<T>Returns JAXBElement corresponding to the this value.toString()voidtransformDefinition(ComplexTypeDefinition parentDef, ItemDefinition<?> itemDef, ItemDefinitionTransformer transformation) Methods inherited from class com.evolveum.midpoint.prism.impl.PrismValueImplaccept, accept, appendOriginDump, clearParent, copyValues, createImmutableClone, diff, diffMatchingRepresentation, diffMatchingRepresentation, equals, equals, getAllItems, getAllValues, getDefinition, getOriginObject, getOriginType, getParent, getParentContainerValue, getPath, getPathComponent, getPrismContext, getRootValue, getTypeName, getUserData, getUserData, getValueMetadata, hashCode, hashCode, hasValueMetadata, isTransient, normalize, recompute, representsSameValue, setOriginObject, setOriginType, setParent, setPrismContext, setTransient, setUserData, setValueMetadata, setValueMetadata, setValueMetadataMethods inherited from class com.evolveum.midpoint.prism.AbstractFreezablefreeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutableMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.FreezablecheckImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.prism.metadata.MidpointOriginMetadatagetOriginObject, getOriginType, setOriginObject, setOriginTypeMethods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitivegetPrismContextMethods inherited from interface com.evolveum.midpoint.prism.PrismPropertyValueequals, hashCodeMethods inherited from interface com.evolveum.midpoint.prism.PrismValueaccept, accept, clearParent, cloneIfImmutable, createImmutableClone, diff, equals, getAllItems, getAllValues, getNearestValueOfType, getParent, getParentContainerValue, getPath, getRootObjectable, getRootValue, getTypeName, getUserData, getUserData, getValueMetadata, getValueMetadataAsContainer, hashCode, hasRealClass, hasValueMetadata, isObjectable, isOfType, isTransient, normalize, recompute, representsSameValue, setParent, setPrismContext, setTransient, setUserData, setValueMetadata, setValueMetadata, setValueMetadata, valueMetadata
- 
Constructor Details- 
PrismPropertyValueImpl
- 
PrismPropertyValueImpl
- 
PrismPropertyValueImpl
- 
PrismPropertyValueImplpublic PrismPropertyValueImpl(T value, PrismContext prismContext, OriginType type, Objectable source, ExpressionWrapper expression) 
 
- 
- 
Method Details- 
setValue- Specified by:
- setValuein interface- PrismPropertyValue<T>
 
- 
getValue- Specified by:
- getValuein interface- PrismPropertyValue<T>
 
- 
getRawElement- Specified by:
- getRawElementin interface- PrismPropertyValue<T>
 
- 
setRawElement- Specified by:
- setRawElementin interface- PrismPropertyValue<T>
 
- 
isRawpublic boolean isRaw()- Specified by:
- isRawin interface- PrismValue
 
- 
getExpression- Specified by:
- getExpressionin interface- PrismPropertyValue<T>
 
- 
setExpression- Specified by:
- setExpressionin interface- PrismPropertyValue<T>
 
- 
applyDefinition- Specified by:
- applyDefinitionin interface- PrismValue
- Overrides:
- applyDefinitionin class- PrismValueImpl
- Throws:
- SchemaException
 
- 
applyDefinition- Specified by:
- applyDefinitionin interface- PrismValue
- Overrides:
- applyDefinitionin class- PrismValueImpl
- Throws:
- SchemaException
 
- 
reviveDescription copied from interface:RevivableTODO: Is revive necessary if prism context is static? TODO document (if it's found to be necessary)- Specified by:
- revivein interface- Revivable
- Overrides:
- revivein class- PrismValueImpl
 
- 
recompute- Specified by:
- recomputein interface- PrismValue
- Specified by:
- recomputein class- PrismValueImpl
 
- 
find- Specified by:
- findin interface- PrismValue
 
- 
findPartialpublic <IV extends PrismValue,ID extends ItemDefinition<?>> PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) - Specified by:
- findPartialin interface- PrismPropertyValue<T>
 
- 
checkConsistenceInternalpublic void checkConsistenceInternal(Itemable rootItem, boolean requireDefinitions, boolean prohibitRaw, ConsistencyCheckScope scope) - Specified by:
- checkConsistenceInternalin interface- PrismValue
- Specified by:
- checkConsistenceInternalin class- PrismValueImpl
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- PrismValue
 
- 
cloneDescription copied from class:PrismValueImplLiteral clone.- Specified by:
- clonein interface- PrismPropertyValue<T>
- Specified by:
- clonein interface- PrismValue
- Specified by:
- clonein class- PrismValueImpl
 
- 
cloneComplexDescription copied from class:PrismValueImplComplex clone with different cloning strategies.- Specified by:
- cloneComplexin interface- PrismPropertyValue<T>
- Specified by:
- cloneComplexin interface- PrismValue
- Specified by:
- cloneComplexin class- PrismValueImpl
- See Also:
 
- 
copyValues
- 
equalspublic boolean equals(PrismValue other, @NotNull @NotNull ParameterizedEquivalenceStrategy strategy) - Specified by:
- equalsin interface- PrismValue
- Overrides:
- equalsin class- PrismValueImpl
 
- 
equalspublic boolean equals(PrismPropertyValue<?> other0, @NotNull @NotNull ParameterizedEquivalenceStrategy strategy, @Nullable @Nullable MatchingRule<T> matchingRule) - Specified by:
- equalsin interface- PrismPropertyValue<T>
- Returns:
- true if values are equivalent under given strategy and (if present) also under matching rule. Some of the strategy requirements (e.g. literal DOM comparison) can be skipped if matching rule is used.
 
- 
hashCode- Specified by:
- hashCodein interface- PrismValue
- Overrides:
- hashCodein class- PrismValueImpl
 
- 
debugDumpDescription copied from interface:DebugDumpableShow 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:
- debugDumpin interface- DebugDumpable
- Returns:
- content of the object intended for diagnostics by system administrator.
 
- 
debugDump- Specified by:
- debugDumpin interface- DebugDumpable
 
- 
debugDump- Specified by:
- debugDumpin interface- PrismPropertyValue<T>
 
- 
toString
- 
toHumanReadableString- Specified by:
- toHumanReadableStringin interface- PrismValue
- Specified by:
- toHumanReadableStringin class- PrismValueImpl
 
- 
toJaxbElementReturns JAXBElement corresponding to the this value. Name of the element is the name of parent property; its value is the real value of the property.- Specified by:
- toJaxbElementin interface- PrismPropertyValue<T>
- Returns:
- Created JAXBElement.
 
- 
getRealClass- Specified by:
- getRealClassin interface- PrismPropertyValue<T>
- Specified by:
- getRealClassin interface- PrismValue
- Specified by:
- getRealClassin class- PrismValueImpl
 
- 
getRealValueDescription copied from interface:PrismValueReturns the statically-typed "real value". TODO specify when exactly the returned value can be null. TODO decide for containers: they throw an exception if the value is not statically typed.- Specified by:
- getRealValuein interface- PrismPropertyValue<T>
- Specified by:
- getRealValuein interface- PrismValue
- Specified by:
- getRealValuein class- PrismValueImpl
 
- 
performFreezepublic void performFreeze()- Overrides:
- performFreezein class- PrismValueImpl
 
- 
getRealValueOrRawType- Specified by:
- getRealValueOrRawTypein interface- PrismValue
 
- 
getRealValueIfExists- Specified by:
- getRealValueIfExistsin interface- PrismValue
 
- 
transformDefinitionpublic void transformDefinition(ComplexTypeDefinition parentDef, ItemDefinition<?> itemDef, ItemDefinitionTransformer transformation) - Specified by:
- transformDefinitionin interface- ItemDefinitionTransformer.TransformableValue
 
 
-