Class DummyPropertyImpl<T>
java.lang.Object
com.evolveum.midpoint.prism.impl.item.DummyItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>,PrismProperty<T>>
com.evolveum.midpoint.prism.impl.item.DummyPropertyImpl<T>
- All Implemented Interfaces:
Freezable
,Item<PrismPropertyValue<T>,
,PrismPropertyDefinition<T>> Itemable
,ParentVisitable
,PathVisitable
,PrismContextSensitive
,PrismProperty<T>
,Revivable
,Visitable
,DebugDumpable
,Serializable
public class DummyPropertyImpl<T>
extends DummyItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>,PrismProperty<T>>
implements PrismProperty<T>
- Author:
- semancik
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIgnoringEquivalents
(@NotNull PrismPropertyValue<T> newValue) Adds a value, not looking for equivalent values.void
addRealValue
(T valueToAdd) void
addRealValues
(T... valuesToAdd) void
addRealValueSkipUniquenessCheck
(T valueToAdd) void
addValue
(PrismPropertyValue<T> pValueToAdd) void
addValues
(Collection<PrismPropertyValue<T>> pValuesToAdd) clone()
Literal clone.cloneComplex
(CloneStrategy strategy) Complex clone with different cloning strategies.Creates specific subclass of ItemDelta appropriate for type of item that this definition represents (e.g.createDelta
(ItemPath path) boolean
deleteValue
(PrismPropertyValue<T> pValueToDelete) boolean
deleteValues
(Collection<PrismPropertyValue<T>> pValuesToDelete) diff
(PrismProperty<T> other) diff
(PrismProperty<T> other, ParameterizedEquivalenceStrategy strategy) <IV extends PrismValue,
ID extends ItemDefinition<?>>
PartiallyResolvedItem<IV,ID> findPartial
(ItemPath path) getHelp()
Returns help message defined for the item.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.<X> X
getRealValue
(Class<X> type) Type override, also for compatibility.@NotNull Collection<T>
Returns (potentially empty) collection of "real values".<X> Collection<X>
getRealValues
(Class<X> type) Type override, also for compatibility.<X> X[]
getRealValuesArray
(Class<X> type) Type override, also for compatibility.getValue()
Returns the value, if there is only one.<X> PrismPropertyValue<X>
Type override, also for compatibility.<X> List<PrismPropertyValue<X>>
Type override, also for compatibility.boolean
hasRealValue
(PrismPropertyValue<T> value) void
replaceValues
(Collection<PrismPropertyValue<T>> valuesToReplace) void
setRealValue
(T realValue) void
setRealValues
(T... realValues) void
setValue
(PrismPropertyValue<T> value) Means as a short-hand for setting just a value for single-valued attributes.Methods inherited from class com.evolveum.midpoint.prism.impl.item.DummyItem
accept, accept, acceptParentVisitor, add, addAll, addRespectingMetadataAndCloning, applyDefinition, applyDefinition, assertDefinitions, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistenceInternal, clear, debugDump, delegate, diff, equals, equals, equals, find, freeze, getAllItems, getAllValues, getDefinition, getDisplayName, getElementName, getHighestId, getParent, getPath, getPrismContext, getPrismContextLocal, getUserData, getUserData, getValues, hasCompleteDefinition, hashCode, hashCode, hashCode, isEmpty, isImmutable, isIncomplete, merge, normalize, recomputeAllValues, remove, removeAll, removeRespectingMetadata, replace, replaceAll, revive, setDefinition, setElementName, setIncomplete, setParent, setPrismContext, setUserData, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
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.Item
acceptParentVisitor, add, add, addAll, addAll, 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, getHighestId, getParent, getPath, getPrismContextLocal, getRealValuesOrRawTypes, getUserData, getUserData, 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.PathVisitable
accept
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
Constructor Details
-
DummyPropertyImpl
-
-
Method Details
-
getValues
Description copied from interface:PrismProperty
Type override, also for compatibility.- Specified by:
getValues
in interfacePrismProperty<T>
-
getValue
Description copied from interface:Item
Returns the value, if there is only one. Throws exception if there are more values. If there is no value, this method either: - returns null (for properties) - throws an exception (for items that can hold multiple values) - creates an empty value (for containers and references). TODO think again whether getOrCreateValue would not be better- Specified by:
getValue
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>>
-
getRealValues
Description copied from interface:Item
Returns (potentially empty) collection of "real values".- Specified by:
getRealValues
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Specified by:
getRealValues
in interfacePrismProperty<T>
-
addIgnoringEquivalents
public void addIgnoringEquivalents(@NotNull @NotNull PrismPropertyValue<T> newValue) throws SchemaException Description copied from interface:Item
Adds a value, not looking for equivalent values. (This means that the new value is always added, if possible.) Note that we check the cardinality of the item according to its definition, i.e. we do not allow single-valued item to contain more than one value.- Specified by:
addIgnoringEquivalents
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Throws:
SchemaException
-
getRealValues
Description copied from interface:PrismProperty
Type override, also for compatibility.- Specified by:
getRealValues
in interfacePrismProperty<T>
-
getAnyRealValue
- Specified by:
getAnyRealValue
in interfacePrismProperty<T>
-
getRealValue
Description copied from interface:Item
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. 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:
getRealValue
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Specified by:
getRealValue
in interfacePrismProperty<T>
-
getRealValue
Description copied from interface:Item
Type override, also for compatibility.- Specified by:
getRealValue
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>>
-
getRealValuesArray
Description copied from interface:Item
Type override, also for compatibility.- Specified by:
getRealValuesArray
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>>
-
getValue
Description copied from interface:PrismProperty
Type override, also for compatibility.- Specified by:
getValue
in interfacePrismProperty<T>
-
setValue
Description copied from interface:PrismProperty
Means as a short-hand for setting just a value for single-valued attributes. Will remove all existing values.- Specified by:
setValue
in interfacePrismProperty<T>
-
setRealValue
- Specified by:
setRealValue
in interfacePrismProperty<T>
-
setRealValues
- Specified by:
setRealValues
in interfacePrismProperty<T>
-
addValues
- Specified by:
addValues
in interfacePrismProperty<T>
-
addValue
- Specified by:
addValue
in interfacePrismProperty<T>
-
addRealValue
- Specified by:
addRealValue
in interfacePrismProperty<T>
-
addRealValueSkipUniquenessCheck
- Specified by:
addRealValueSkipUniquenessCheck
in interfacePrismProperty<T>
-
addRealValues
- Specified by:
addRealValues
in interfacePrismProperty<T>
-
getHelp
Description copied from interface:Item
Returns help message defined for the item.Returns null if the help message cannot be determined.
The help message is fetched from the definition. If no definition (schema) is available, the help message will not be returned.
- Specified by:
getHelp
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Returns:
- help message for the item
-
deleteValues
- Specified by:
deleteValues
in interfacePrismProperty<T>
-
deleteValue
- Specified by:
deleteValue
in interfacePrismProperty<T>
-
replaceValues
- Specified by:
replaceValues
in interfacePrismProperty<T>
-
hasRealValue
- Specified by:
hasRealValue
in interfacePrismProperty<T>
-
getValueClass
- Specified by:
getValueClass
in interfacePrismProperty<T>
-
createDelta
Description copied from interface:Item
Creates specific subclass of ItemDelta appropriate for type of item that this definition represents (e.g. PropertyDelta, ContainerDelta, ...)- Specified by:
createDelta
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Specified by:
createDelta
in interfacePrismProperty<T>
-
createDelta
- Specified by:
createDelta
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Specified by:
createDelta
in interfacePrismProperty<T>
-
findPartial
public <IV extends PrismValue,ID extends ItemDefinition<?>> PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) - Specified by:
findPartial
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Specified by:
findPartial
in interfacePrismProperty<T>
-
diff
- Specified by:
diff
in interfacePrismProperty<T>
-
diff
- Specified by:
diff
in interfacePrismProperty<T>
-
clone
Description copied from interface:Item
Literal clone.- Specified by:
clone
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Specified by:
clone
in interfacePrismProperty<T>
- Specified by:
clone
in classDummyItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>, PrismProperty<T>>
-
createImmutableClone
- Specified by:
createImmutableClone
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Specified by:
createImmutableClone
in interfacePrismProperty<T>
-
cloneComplex
Description copied from interface:Item
Complex clone with different cloning strategies.- Specified by:
cloneComplex
in interfaceItem<PrismPropertyValue<T>,
PrismPropertyDefinition<T>> - Specified by:
cloneComplex
in interfacePrismProperty<T>
- See Also:
-
toHumanReadableString
- Specified by:
toHumanReadableString
in interfacePrismProperty<T>
-