Package com.evolveum.midpoint.prism
Interface ItemDefinition<I extends Item<?,?>>
- All Superinterfaces:
Cloneable
,DebugDumpable
,Definition
,Freezable
,LivePrismItemDefinition
,PrismItemAccessDefinition
,PrismItemBasicDefinition
,PrismItemStorageDefinition
,PrismLifecycleDefinition
,PrismPresentationDefinition
,Revivable
,SchemaLookup.Aware
,Serializable
,SmartVisitable<Definition>
,Visitable<Definition>
- All Known Subinterfaces:
ContainerDefinitionDelegator<C>
,ItemDefinitionDelegator<I>
,ItemWrapper<I,
,VW> ObjectDefinitionDelegator<O>
,PartiallyMutableItemDefinition<I>
,PartiallyMutableItemDefinition.Attribute<T>
,PartiallyMutableItemDefinition.Container<C>
,PartiallyMutableItemDefinition.Property<T>
,PartiallyMutableItemDefinition.Reference
,PrismContainerDefinition<C>
,PrismContainerWrapper<C>
,PrismObjectDefinition<O>
,PrismObjectWrapper<O>
,PrismPropertyDefinition<T>
,PrismPropertyWrapper<T>
,PrismReferenceDefinition
,PrismReferenceWrapper<R>
,PropertyDefinitionDelegator<T>
,ReferenceDefinitionDelegator
,ResourceAttributeDefinitionDelegator<T>
,ResourceAttributeWrapper<T>
,ShadowAssociationDefinition
,ShadowAssociationsContainerDefinition
,ShadowAttributesContainerDefinition
,ShadowAttributesContainerDefinitionDelegator
,ShadowReferenceAttributeDefinition
,ShadowSimpleAttributeDefinition<T>
,ShadowWrapper
- All Known Implementing Classes:
AssignmentHolderWrapper
,AssociationAttributeMappingWrapper
,AssociationInboundExpressionWrapper
,AssociationMappingExpressionWrapper
,AssociationOutboundExpressionWrapper
,AuthenticationAttemptWrapper
,AuthenticationBehaviorWrapper
,CaseWorkItemTypeWrapper
,DummyPrismObjectDefinition
,ExpressionWrapper
,ItemDefinitionImpl
,ItemWrapperImpl
,NormalizationAwareResourceAttributeDefinition
,ObjectTypeAttributeMappingWrapper
,PrismContainerDefinitionImpl
,PrismContainerWrapperImpl
,PrismObjectDefinitionImpl
,PrismObjectWrapperImpl
,PrismPropertyDefinitionImpl
,PrismPropertyWrapperImpl
,PrismReferenceDefinitionImpl
,PrismReferenceWrapperImpl
,PrismSchemaWrapper
,ProfilingClassLoggerContainerWrapperImpl
,ProtectedStringTypeWrapperImpl
,ResourceAttributeWrapperImpl
,ResourceWrapper
,ShadowAssociationDefinitionImpl
,ShadowAssociationsContainerDefinitionImpl
,ShadowAssociationValueWrapper
,ShadowAssociationWrapperImpl
,ShadowAttributesContainerDefinitionImpl
,ShadowReferenceAttributeDefinitionImpl
,ShadowSimpleAttributeDefinitionImpl
,ShadowWrapperImpl
,TransformableContainerDefinition
,TransformableItemDefinition
,TransformableObjectDefinition
,TransformablePropertyDefinition
,TransformablePropertyDefinition.RefinedAttribute
,TransformablePropertyDefinition.ResourceAttribute
,TransformableReferenceDefinition
,ValueMetadataWrapperImpl
public interface ItemDefinition<I extends Item<?,?>>
extends Definition, PrismItemBasicDefinition, PrismItemStorageDefinition, PrismItemAccessDefinition, LivePrismItemDefinition, SchemaLookup.Aware
A definition of a specific item (as opposed to a type).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
To be seen if useful.static interface
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.Definition
Definition.DefinitionBuilder, Definition.DefinitionMutator
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
PrismItemAccessDefinition.Data, PrismItemAccessDefinition.Delegable, PrismItemAccessDefinition.Info, PrismItemAccessDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemBasicDefinition
PrismItemBasicDefinition.Data, PrismItemBasicDefinition.Delegable, PrismItemBasicDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemStorageDefinition
PrismItemStorageDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismLifecycleDefinition
PrismLifecycleDefinition.Data, PrismLifecycleDefinition.Delegable, PrismLifecycleDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismPresentationDefinition
PrismPresentationDefinition.Data, PrismPresentationDefinition.Delegable, PrismPresentationDefinition.Mutable
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescription@NotNull ItemDefinition<I>
clone()
@NotNull ItemDefinition<I>
cloneWithNewName
(@NotNull ItemName itemName) Returns a clone of this definition, but with name changed to the provided one.@NotNull ItemDelta<?,
?> createEmptyDelta
(ItemPath path) Creates an empty delta (with appropriate implementation class), pointing to this item definition, with a given path.void
Used in debugDumping items.deepClone
(@NotNull DeepCloneOperation operation) TODO documentReturns the name of an element this one can be substituted for (e.g.Reference to an object that directly or indirectly represents possible values for this item.Create an item instance.instantiate
(QName name) Create an item instance.boolean
Item which should always be used for equals even if it is operational and strategy does not consider operational items.boolean
Returns true if definition was created during the runtime based on a dynamic information such as xsi:type attributes in XML.boolean
Can be used in heterogeneous lists as a list item.default boolean
boolean
Whether the item is inherited from a supertype.boolean
Marks operational item.mutator()
Returns an interface to mutate this definition.Returns complex type definition of item, if underlying value is possible structured.Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.Definition
checkMutableOnExposing, debugDump, getAnnotation, getAnnotations, getMergerIdentifier, getMergerInstance, getMutabilityFlag, getNaturalKeyConstituents, getNaturalKeyInstance, getSchemaContextDefinition, getTypeClass, getTypeName, isAbstract, isElaborate, isOptionalCleanup, isRuntimeSchema
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
Methods inherited from interface com.evolveum.midpoint.prism.LivePrismItemDefinition
findItemDefinition, isValidFor
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
canAdd, canModify, canRead, getInfo
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemBasicDefinition
getItemName, getMaxOccurs, getMinOccurs, getTypeName, isMandatory, isMultiValue, isOptional, isSingleValue
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemStorageDefinition
isIndexed, isIndexOnly, isSearchable
Methods inherited from interface com.evolveum.midpoint.prism.PrismLifecycleDefinition
getDeprecatedSince, getPlannedRemoval, getRemovedSince, getSchemaMigrations, isDeprecated, isExperimental, isRemoved
Methods inherited from interface com.evolveum.midpoint.prism.PrismPresentationDefinition
getDiagrams, getDisplayHint, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, isEmphasized
Methods inherited from interface com.evolveum.midpoint.prism.schema.SchemaLookup.Aware
schemaLookup
Methods inherited from interface com.evolveum.midpoint.prism.SmartVisitable
accept
-
Method Details
-
getProcessing
ItemProcessing getProcessing() -
isIgnored
default boolean isIgnored() -
isOperational
boolean isOperational()Marks operational item. Operational properties are auxiliary data (or meta-data) that are usually not modifiable by the end user. They are generated and maintained by the system. Operational items are also not usually displayed unless it is explicitly requested. The example of operational items are modification timestamps, create timestamps, user that made the last change, etc. They are also treated in a special way when comparing values. SeeParameterizedEquivalenceStrategy
. -
isAlwaysUseForEquals
Item which should always be used for equals even if it is operational and strategy does not consider operational items. EXPERIMENTAL -
isInherited
boolean isInherited()Whether the item is inherited from a supertype. -
isDynamic
boolean isDynamic()Returns true if definition was created during the runtime based on a dynamic information such as xsi:type attributes in XML. This means that the definition needs to be stored alongside the data to have a successful serialization "roundtrip". The definition is not part of any schema and therefore cannot be determined. It may even be different for every instance of the associated item (element name). -
getSubstitutionHead
Returns the name of an element this one can be substituted for (e.g. c:user -> c:object, s:pipeline -> s:expression, etc). EXPERIMENTAL -
isHeterogeneousListItem
Can be used in heterogeneous lists as a list item. EXPERIMENTAL. -
getValueEnumerationRef
PrismReferenceValue getValueEnumerationRef()Reference to an object that directly or indirectly represents possible values for this item. We do not define here what exactly the object has to be. It can be a lookup table, script that dynamically produces the values or anything similar. The object must produce the values of the correct type for this item otherwise an error occurs. -
instantiate
Create an item instance. Definition name or default name will be used as an element name for the instance. The instance will otherwise be empty.- Throws:
SchemaException
-
instantiate
Create an item instance. Definition name will use provided name. for the instance. The instance will otherwise be empty.- Throws:
SchemaException
-
createEmptyDelta
Creates an empty delta (with appropriate implementation class), pointing to this item definition, with a given path. -
clone
- Specified by:
clone
in interfaceDefinition
-
cloneWithNewName
Returns a clone of this definition, but with name changed to the provided one. -
deepClone
TODO document -
debugDumpShortToString
Used in debugDumping items. Does not need to have name in it as item already has it. Does not need to have class as that is just too much info that is almost anytime pretty obvious anyway. -
mutator
ItemDefinition.ItemDefinitionMutator mutator()Description copied from interface:Definition
Returns an interface to mutate this definition.- Specified by:
mutator
in interfaceDefinition
-
structuredType
Returns complex type definition of item, if underlying value is possible structured. NOTE: This seems weird, since properties and references are simple values, but actually object reference is serialized as structured value and some of properties are also.
-