Package com.evolveum.midpoint.prism
Interface PrismProperty<T>
- 
- All Superinterfaces:
- DebugDumpable,- Freezable,- Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>>,- Itemable,- ParentVisitable,- PathVisitable,- PrismContextSensitive,- Revivable,- Serializable,- Visitable
 - All Known Subinterfaces:
- ResourceAttribute<T>
 - All Known Implementing Classes:
- com.evolveum.midpoint.prism.impl.PrismPropertyImpl,- ResourceAttributeImpl
 
 public interface PrismProperty<T> extends Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>> Property is a specific characteristic of an object. It may be considered object "attribute" or "field". For example User has fullName property that contains string value of user's full name.Properties may be single-valued or multi-valued Properties may contain primitive types or complex types (defined by XSD schema) Property values are unordered, implementation may change the order of values Duplicate values of properties should be silently removed by implementations, but clients must be able tolerate presence of duplicate values. Operations that modify the objects work with the granularity of properties. They add/remove/replace the values of properties, but do not "see" inside the property. Property is mutable. - Author:
- Radovan Semancik
 
- 
- 
Field Summary- 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddRealValue(T valueToAdd)default voidaddRealValues(T... valuesToAdd)voidaddRealValueSkipUniquenessCheck(T valueToAdd)voidaddValue(PrismPropertyValue<T> pValueToAdd)voidaddValues(Collection<PrismPropertyValue<T>> pValuesToAdd)PrismProperty<T>clone()Literal clone.PrismProperty<T>cloneComplex(CloneStrategy strategy)Complex clone with different cloning strategies.PropertyDelta<T>createDelta()Creates specific subclass of ItemDelta appropriate for type of item that this definition represents (e.g.PropertyDelta<T>createDelta(ItemPath path)PrismProperty<T>createImmutableClone()booleandeleteValue(PrismPropertyValue<T> pValueToDelete)booleandeleteValues(Collection<PrismPropertyValue<T>> pValuesToDelete)PropertyDelta<T>diff(PrismProperty<T> other)PropertyDelta<T>diff(PrismProperty<T> other, ParameterizedEquivalenceStrategy strategy)<IV extends PrismValue,ID extends ItemDefinition<?>>
 PartiallyResolvedItem<IV,ID>findPartial(ItemPath path)TgetAnyRealValue()TgetRealValue()Returns the "real value" (content) of this item: - value contained in PrismPropertyValue - Referencable in PrismReferenceValue - Containerable in PrismContainerValue - Objectable in PrismObjectValue Note that the real value can contain operational items.static <T> TgetRealValue(PrismProperty<T> property)@NotNull Collection<T>getRealValues()Returns (potentially empty) collection of "real values".<X> Collection<X>getRealValues(Class<X> type)Type override, also for compatibility.<X> PrismPropertyValue<X>getValue(Class<X> type)Type override, also for compatibility.Class<T>getValueClass()<X> List<PrismPropertyValue<X>>getValues(Class<X> type)Type override, also for compatibility.booleanhasRealValue(PrismPropertyValue<T> value)voidreplaceValues(Collection<PrismPropertyValue<T>> valuesToReplace)voidsetRealValue(T realValue)voidsetRealValues(T... realValues)voidsetValue(PrismPropertyValue<T> value)Means as a short-hand for setting just a value for single-valued attributes.StringtoHumanReadableString()- 
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.ItemacceptParentVisitor, add, add, addAll, addAll, addIgnoringEquivalents, addRespectingMetadataAndCloning, applyDefinition, applyDefinition, assertDefinitions, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistenceInternal, clear, contains, contains, copy, diff, diff, equals, equals, equals, filterValues, filterYields, find, findValue, findValue, getAllItems, getAllValues, getAnyValue, getAnyValue, getClonedValues, getDefinition, getDisplayName, getElementName, getHelp, getHighestId, getParent, getPath, getPrismContextLocal, getRealValue, getRealValuesArray, getRealValuesOrRawTypes, getUserData, getUserData, getValue, getValues, hasAnyValue, hasCompleteDefinition, hashCode, hashCode, hashCode, hasNoValues, hasRaw, isEmpty, isIncomplete, isOperational, isRaw, isSingleValue, isSingleValueByDefinition, merge, normalize, recomputeAllValues, remove, remove, removeAll, removeIf, removeRespectingMetadata, replace, replaceAll, setDefinition, setElementName, setIncomplete, setParent, setPrismContext, setUserData, size, valuesStream
 - 
Methods inherited from interface com.evolveum.midpoint.prism.PathVisitableaccept
 - 
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitivegetPrismContext
 
- 
 
- 
- 
- 
Method Detail- 
getValues<X> List<PrismPropertyValue<X>> getValues(Class<X> type) Type override, also for compatibility.
 - 
getRealValues@NotNull @NotNull Collection<T> getRealValues() Description copied from interface:ItemReturns (potentially empty) collection of "real values".- Specified by:
- getRealValuesin interface- Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
 
 - 
getRealValues<X> Collection<X> getRealValues(Class<X> type) Type override, also for compatibility.
 - 
getAnyRealValueT getAnyRealValue() 
 - 
getRealValueT getRealValue() Description copied from interface:ItemReturns the "real value" (content) of this item: - value contained in PrismPropertyValue - Referencable in PrismReferenceValue - Containerable in PrismContainerValue - Objectable in PrismObjectValue Note that the real value can contain operational items. It can also contain container IDs (although they are not considered to be part of the real value). It does not contain information about item element name nor other metadata like origin, definition, etc. (Although e.g. Containerable can be converted back into PrismContainerValue that can be used to retrieve this information.)- Specified by:
- getRealValuein interface- Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
 
 - 
getValue<X> PrismPropertyValue<X> getValue(Class<X> type) Type override, also for compatibility.
 - 
setValuevoid setValue(PrismPropertyValue<T> value) Means as a short-hand for setting just a value for single-valued attributes. Will remove all existing values.
 - 
setRealValuevoid setRealValue(T realValue) 
 - 
setRealValuesvoid setRealValues(T... realValues) 
 - 
addValuesvoid addValues(Collection<PrismPropertyValue<T>> pValuesToAdd) 
 - 
addValuevoid addValue(PrismPropertyValue<T> pValueToAdd) 
 - 
addRealValuevoid addRealValue(T valueToAdd) 
 - 
addRealValueSkipUniquenessCheckvoid addRealValueSkipUniquenessCheck(T valueToAdd) 
 - 
addRealValuesdefault void addRealValues(T... valuesToAdd) 
 - 
deleteValuesboolean deleteValues(Collection<PrismPropertyValue<T>> pValuesToDelete) 
 - 
deleteValueboolean deleteValue(PrismPropertyValue<T> pValueToDelete) 
 - 
replaceValuesvoid replaceValues(Collection<PrismPropertyValue<T>> valuesToReplace) 
 - 
hasRealValueboolean hasRealValue(PrismPropertyValue<T> value) 
 - 
createDeltaPropertyDelta<T> createDelta() Description copied from interface:ItemCreates specific subclass of ItemDelta appropriate for type of item that this definition represents (e.g. PropertyDelta, ContainerDelta, ...)- Specified by:
- createDeltain interface- Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
 
 - 
createDeltaPropertyDelta<T> createDelta(ItemPath path) - Specified by:
- createDeltain interface- Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
 
 - 
findPartial<IV extends PrismValue,ID extends ItemDefinition<?>> PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) - Specified by:
- findPartialin interface- Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
 
 - 
diffPropertyDelta<T> diff(PrismProperty<T> other) 
 - 
diffPropertyDelta<T> diff(PrismProperty<T> other, ParameterizedEquivalenceStrategy strategy) 
 - 
clonePrismProperty<T> clone() Description copied from interface:ItemLiteral clone.- Specified by:
- clonein interface- Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
 
 - 
createImmutableClonePrismProperty<T> createImmutableClone() - Specified by:
- createImmutableClonein interface- Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
 
 - 
cloneComplexPrismProperty<T> cloneComplex(CloneStrategy strategy) Description copied from interface:ItemComplex clone with different cloning strategies.- Specified by:
- cloneComplexin interface- Item<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
- See Also:
- CloneStrategy
 
 - 
toHumanReadableStringString toHumanReadableString() 
 - 
getRealValuestatic <T> T getRealValue(PrismProperty<T> property) 
 
- 
 
-