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,- PrismProperty<T>,- PrismVisitable,- Revivable,- Visitable,- DebugDumpable,- Serializable,- Cloneable
public class DummyPropertyImpl<T>
extends DummyItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>,PrismProperty<T>>
implements PrismProperty<T>  
- Author:
- semancik
- See Also:
- 
Field SummaryFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRINGFields inherited from interface com.evolveum.midpoint.prism.ItemKEY_NAMESPACE_CONTEXT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddIgnoringEquivalents(@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> @NotNull 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.DummyItemaccept, accept, acceptParentVisitor, add, addAll, addRespectingMetadataAndCloning, 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, getUserData, getUserData, getValues, hasCompleteDefinition, hashCode, hashCode, hashCode, isEmpty, isImmutable, isIncomplete, merge, normalize, recomputeAllValues, remove, removeAll, removeRespectingMetadata, replace, replaceAll, revive, setDefinition, setElementName, setIncomplete, setParent, setUserData, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.FreezablecheckImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.prism.ItemacceptParentVisitor, acceptVisitor, add, add, addAll, addAll, addRespectingMetadataAndCloning, applyDefinition, applyDefinition, applyDefinitionIfMissing, 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, getNamespaceContext, getParent, getPath, 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, setUserData, size, valuesStreamMethods inherited from interface com.evolveum.midpoint.prism.PathVisitableaccept
- 
Constructor Details- 
DummyPropertyImpl
 
- 
- 
Method Details- 
getValuesDescription copied from interface:PrismPropertyType override, also for compatibility.- Specified by:
- getValuesin interface- PrismProperty<T>
 
- 
getValueDescription 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 interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
 
- 
getRealValuesDescription copied from interface:ItemReturns (potentially empty) collection of "real values". The list itself is detached, freely modifiable. (Note that the values can still embed a parent, e.g., for containers and references.)- Specified by:
- getRealValuesin interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
- Specified by:
- getRealValuesin interface- PrismProperty<T>
- See Also:
 
- 
addIgnoringEquivalentspublic ItemModifyResult<PrismPropertyValue<T>> 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 interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
- Throws:
- SchemaException
 
- 
getRealValuesDescription copied from interface:PrismPropertyType override, also for compatibility.- Specified by:
- getRealValuesin interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
- Specified by:
- getRealValuesin interface- PrismProperty<T>
 
- 
getAnyRealValue- Specified by:
- getAnyRealValuein interface- PrismProperty<T>
 
- 
getRealValueDescription 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>> 
- Specified by:
- getRealValuein interface- PrismProperty<T>
 
- 
getRealValueDescription copied from interface:ItemType override, also for compatibility.- Specified by:
- getRealValuein interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
 
- 
getRealValuesArrayDescription copied from interface:ItemType override, also for compatibility.- Specified by:
- getRealValuesArrayin interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
 
- 
getValueDescription copied from interface:PrismPropertyType override, also for compatibility.- Specified by:
- getValuein interface- PrismProperty<T>
 
- 
setValueDescription 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 interface- PrismProperty<T>
 
- 
setRealValue- Specified by:
- setRealValuein interface- PrismProperty<T>
 
- 
setRealValues- Specified by:
- setRealValuesin interface- PrismProperty<T>
 
- 
addValues- Specified by:
- addValuesin interface- PrismProperty<T>
 
- 
addValue- Specified by:
- addValuein interface- PrismProperty<T>
 
- 
addRealValue- Specified by:
- addRealValuein interface- PrismProperty<T>
 
- 
addRealValueSkipUniquenessCheck- Specified by:
- addRealValueSkipUniquenessCheckin interface- PrismProperty<T>
 
- 
addRealValues- Specified by:
- addRealValuesin interface- PrismProperty<T>
 
- 
getHelpDescription 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 interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
- Returns:
- help message for the item
 
- 
deleteValues- Specified by:
- deleteValuesin interface- PrismProperty<T>
 
- 
deleteValue- Specified by:
- deleteValuein interface- PrismProperty<T>
 
- 
replaceValues- Specified by:
- replaceValuesin interface- PrismProperty<T>
 
- 
hasRealValue- Specified by:
- hasRealValuein interface- PrismProperty<T>
 
- 
getValueClass- Specified by:
- getValueClassin interface- PrismProperty<T>
 
- 
createDeltaDescription 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>> 
- Specified by:
- createDeltain interface- PrismProperty<T>
 
- 
createDelta- Specified by:
- createDeltain interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
- Specified by:
- createDeltain interface- PrismProperty<T>
 
- 
findPartialpublic <IV extends PrismValue,ID extends ItemDefinition<?>> PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) - Specified by:
- findPartialin interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
- Specified by:
- findPartialin interface- PrismProperty<T>
 
- 
diff- Specified by:
- diffin interface- PrismProperty<T>
 
- 
diff- Specified by:
- diffin interface- PrismProperty<T>
 
- 
cloneDescription copied from interface:ItemLiteral clone.- Specified by:
- clonein interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
- Specified by:
- clonein interface- PrismProperty<T>
- Specified by:
- clonein class- DummyItem<PrismPropertyValue<T>,- PrismPropertyDefinition<T>, - PrismProperty<T>> 
 
- 
createImmutableClone- Specified by:
- createImmutableClonein interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
- Specified by:
- createImmutableClonein interface- PrismProperty<T>
 
- 
cloneComplexDescription copied from interface:ItemComplex clone with different cloning strategies.- Specified by:
- cloneComplexin interface- Item<PrismPropertyValue<T>,- PrismPropertyDefinition<T>> 
- Specified by:
- cloneComplexin interface- PrismProperty<T>
- See Also:
 
- 
toHumanReadableString- Specified by:
- toHumanReadableStringin interface- PrismProperty<T>
 
 
-