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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIgnoringEquivalents(@NotNull PrismPropertyValue<T> newValue) Adds a value, not looking for equivalent values.voidaddRealValue(T valueToAdd) voidaddRealValues(T... valuesToAdd) voidaddRealValueSkipUniquenessCheck(T valueToAdd) voidaddValue(PrismPropertyValue<T> pValueToAdd) voidaddValues(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) booleandeleteValue(PrismPropertyValue<T> pValueToDelete) booleandeleteValues(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> XgetRealValue(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.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.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, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods 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, valuesStreamMethods inherited from interface com.evolveum.midpoint.prism.PathVisitable
acceptMethods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
Constructor Details
-
DummyPropertyImpl
-
-
Method Details
-
getValues
Description copied from interface:PrismPropertyType override, also for compatibility.- Specified by:
getValuesin interfacePrismProperty<T>
-
getValue
Description copied from interface:ItemReturns 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:
getValuein interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
getRealValues
Description copied from interface:ItemReturns (potentially empty) collection of "real values".- Specified by:
getRealValuesin interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
getRealValuesin interfacePrismProperty<T>
-
addIgnoringEquivalents
public void addIgnoringEquivalents(@NotNull @NotNull PrismPropertyValue<T> newValue) throws SchemaException Description copied from interface:ItemAdds 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:
addIgnoringEquivalentsin interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Throws:
SchemaException
-
getRealValues
Description copied from interface:PrismPropertyType override, also for compatibility.- Specified by:
getRealValuesin interfacePrismProperty<T>
-
getAnyRealValue
- Specified by:
getAnyRealValuein interfacePrismProperty<T>
-
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 interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
getRealValuein interfacePrismProperty<T>
-
getRealValue
Description copied from interface:ItemType override, also for compatibility.- Specified by:
getRealValuein interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
getRealValuesArray
Description copied from interface:ItemType override, also for compatibility.- Specified by:
getRealValuesArrayin interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>>
-
getValue
Description copied from interface:PrismPropertyType override, also for compatibility.- Specified by:
getValuein interfacePrismProperty<T>
-
setValue
Description copied from interface:PrismPropertyMeans as a short-hand for setting just a value for single-valued attributes. Will remove all existing values.- Specified by:
setValuein interfacePrismProperty<T>
-
setRealValue
- Specified by:
setRealValuein interfacePrismProperty<T>
-
setRealValues
- Specified by:
setRealValuesin interfacePrismProperty<T>
-
addValues
- Specified by:
addValuesin interfacePrismProperty<T>
-
addValue
- Specified by:
addValuein interfacePrismProperty<T>
-
addRealValue
- Specified by:
addRealValuein interfacePrismProperty<T>
-
addRealValueSkipUniquenessCheck
- Specified by:
addRealValueSkipUniquenessCheckin interfacePrismProperty<T>
-
addRealValues
- Specified by:
addRealValuesin interfacePrismProperty<T>
-
getHelp
Description copied from interface:ItemReturns 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:
getHelpin interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Returns:
- help message for the item
-
deleteValues
- Specified by:
deleteValuesin interfacePrismProperty<T>
-
deleteValue
- Specified by:
deleteValuein interfacePrismProperty<T>
-
replaceValues
- Specified by:
replaceValuesin interfacePrismProperty<T>
-
hasRealValue
- Specified by:
hasRealValuein interfacePrismProperty<T>
-
getValueClass
- Specified by:
getValueClassin interfacePrismProperty<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 interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
createDeltain interfacePrismProperty<T>
-
createDelta
- Specified by:
createDeltain interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
createDeltain interfacePrismProperty<T>
-
findPartial
public <IV extends PrismValue,ID extends ItemDefinition<?>> PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) - Specified by:
findPartialin interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
findPartialin interfacePrismProperty<T>
-
diff
- Specified by:
diffin interfacePrismProperty<T>
-
diff
- Specified by:
diffin interfacePrismProperty<T>
-
clone
Description copied from interface:ItemLiteral clone.- Specified by:
clonein interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
clonein interfacePrismProperty<T>- Specified by:
clonein classDummyItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>, PrismProperty<T>>
-
createImmutableClone
- Specified by:
createImmutableClonein interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
createImmutableClonein interfacePrismProperty<T>
-
cloneComplex
Description copied from interface:ItemComplex clone with different cloning strategies.- Specified by:
cloneComplexin interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
cloneComplexin interfacePrismProperty<T>- See Also:
-
toHumanReadableString
- Specified by:
toHumanReadableStringin interfacePrismProperty<T>
-