Package com.evolveum.midpoint.prism
Interface PrismContainerDefinition<C extends Containerable>
- All Superinterfaces:
Cloneable,DebugDumpable,Definition,Freezable,ItemDefinition<PrismContainer<C>>,LivePrismItemDefinition,LocalItemDefinitionStore,PrismItemAccessDefinition,PrismItemBasicDefinition,PrismItemStorageDefinition,PrismLifecycleDefinition,PrismPresentationDefinition,Revivable,SchemaLookup.Aware,Serializable,SmartVisitable<Definition>,Visitable<Definition>
- All Known Subinterfaces:
ContainerDefinitionDelegator<C>,ObjectDefinitionDelegator<O>,PrismContainerWrapper<C>,PrismObjectDefinition<O>,PrismObjectWrapper<O>,ShadowAssociationDefinition,ShadowAssociationsContainerDefinition,ShadowAttributesContainerDefinition,ShadowAttributesContainerDefinitionDelegator,ShadowWrapper
- All Known Implementing Classes:
AssignmentHolderWrapper,AssociationAttributeMappingWrapper,AssociationInboundExpressionWrapper,AssociationMappingExpressionWrapper,AssociationOutboundExpressionWrapper,AuthenticationBehaviorWrapper,CaseWorkItemTypeWrapper,ObjectTypeAttributeMappingWrapper,com.evolveum.midpoint.prism.impl.PrismContainerDefinitionImpl,PrismContainerWrapperImpl,PrismObjectWrapperImpl,PrismSchemaWrapper,ProfilingClassLoggerContainerWrapperImpl,ResourceWrapper,ShadowAssociationDefinitionImpl,ShadowAssociationsContainerDefinitionImpl,ShadowAssociationValueWrapper,ShadowAssociationWrapperImpl,ShadowAttributesContainerDefinitionImpl,ShadowWrapperImpl,ValueMetadataWrapperImpl
public interface PrismContainerDefinition<C extends Containerable>
extends ItemDefinition<PrismContainer<C>>, LocalItemDefinitionStore
Definition of a prism container.
Note: a lot is delegated to a
ComplexTypeDefinition.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe "createXXX" methods also add the new definition into this container.Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.Definition
Definition.DefinitionBuilder, Definition.DefinitionMutatorNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.ItemDefinition
ItemDefinition.ItemDefinitionLikeBuilder, ItemDefinition.ItemDefinitionMutatorNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
PrismItemAccessDefinition.Data, PrismItemAccessDefinition.Delegable, PrismItemAccessDefinition.Info, PrismItemAccessDefinition.MutableNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemBasicDefinition
PrismItemBasicDefinition.Data, PrismItemBasicDefinition.Delegable, PrismItemBasicDefinition.MutableNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemStorageDefinition
PrismItemStorageDefinition.MutableNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismLifecycleDefinition
PrismLifecycleDefinition.Data, PrismLifecycleDefinition.Delegable, PrismLifecycleDefinition.MutableNested 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 TypeMethodDescriptionbooleancanRepresent(@NotNull QName type) TODO@NotNull PrismContainerDefinition<C>clone()cloneWithNewDefinition(QName newItemName, ItemDefinition<?> newDefinition) TODO@NotNull PrismContainerDefinition<?>cloneWithNewType(@NotNull QName newTypeName, @NotNull ComplexTypeDefinition newCtd) Changes the type name and definition for this PCD.@NotNull ContainerDelta<C>createEmptyDelta(ItemPath path) Creates an empty delta (with appropriate implementation class), pointing to this item definition, with a given path.TODOdefault Collection<QName>Returns list of items which should be always used for equals, even if they are operational, and equivalence strategy does not consider operational data.Static (compile-time) class holding the container values.Definition of the container values.@NotNull List<? extends ItemDefinition<?>>Returns a list of item definitions in this container.default Collection<ItemName>Returns names of items that are defined within this container definition.Returns set of property definitions.Returns a compile-time class that is used to represent items.default booleanisAlwaysUseForEquals(QName name) Returns true, if item is explicitly specified mentioned to be used for equalsdefault booleanReturns true if the instantiated container can contain only items that are explicitly defined here.booleanisEmpty()TODOmutator()Returns an interface to mutate this definition.voidreplaceDefinition(QName itemName, ItemDefinition<?> newDefinition) TODOdefault SchemaLookupdefault Optional<ComplexTypeDefinition>Returns complex type definition of item, if underlying value is possible structured.Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.Definition
checkMutableOnExposing, debugDump, getAnnotation, getAnnotations, getMergerIdentifier, getMergerInstance, getMutabilityFlag, getNaturalKeyConstituents, getNaturalKeyInstance, getSchemaContextDefinition, getTypeName, isAbstract, isElaborate, isOptionalCleanup, isRuntimeSchemaMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.prism.ItemDefinition
cloneWithNewName, debugDumpShortToString, deepClone, getProcessing, getSubstitutionHead, getValueEnumerationRef, instantiate, instantiate, isAlwaysUseForEquals, isDynamic, isHeterogeneousListItem, isIgnored, isInherited, isOperationalMethods inherited from interface com.evolveum.midpoint.prism.LivePrismItemDefinition
findItemDefinition, isValidForMethods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findLocalItemDefinitionByIteration, findPropertyDefinition, findReferenceDefinitionMethods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
canAdd, canModify, canRead, getInfoMethods inherited from interface com.evolveum.midpoint.prism.PrismItemBasicDefinition
getItemName, getMaxOccurs, getMinOccurs, getTypeName, isMandatory, isMultiValue, isOptional, isSingleValueMethods inherited from interface com.evolveum.midpoint.prism.PrismItemStorageDefinition
isIndexed, isIndexOnly, isSearchableMethods inherited from interface com.evolveum.midpoint.prism.PrismLifecycleDefinition
getDeprecatedSince, getPlannedRemoval, getRemovedSince, getSchemaMigrations, isDeprecated, isExperimental, isRemovedMethods inherited from interface com.evolveum.midpoint.prism.PrismPresentationDefinition
getDiagrams, getDisplayHint, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, isEmphasizedMethods inherited from interface com.evolveum.midpoint.prism.SmartVisitable
accept
-
Method Details
-
getCompileTimeClass
Static (compile-time) class holding the container values. May be null. (Let's not mark it as @Nullable to avoid lots of warnings.) -
getComplexTypeDefinition
ComplexTypeDefinition getComplexTypeDefinition()Definition of the container values. May be null. (Let's not mark it as @Nullable to avoid lots of warnings.) Note that individual values can hold their own (more specific) complex type definitions. -
getDefinitions
Returns a list of item definitions in this container. It is intentionally aListbecause it is ordered. (To provide standard format for serialization.) Usually obtained fromComplexTypeDefinition. So please do not modify the content of the list!- Specified by:
getDefinitionsin interfaceLocalItemDefinitionStore
-
getItemNames
Returns names of items that are defined within this container definition. They do NOT include items that can be put into instantiated container by means of "xsd:any" mechanism. -
isCompletelyDefined
default boolean isCompletelyDefined()Returns true if the instantiated container can contain only items that are explicitly defined here. -
getPropertyDefinitions
List<PrismPropertyDefinition<?>> getPropertyDefinitions()Returns set of property definitions. The set contains all property definitions of all types that were parsed. Order of definitions is insignificant. The returned collection is immutable or detached from the source. Don't try to modify it. It may fail or the changes may be lost. -
createEmptyDelta
Description copied from interface:ItemDefinitionCreates an empty delta (with appropriate implementation class), pointing to this item definition, with a given path.- Specified by:
createEmptyDeltain interfaceItemDefinition<C extends Containerable>
-
clone
- Specified by:
clonein interfaceDefinition- Specified by:
clonein interfaceItemDefinition<C extends Containerable>
-
cloneWithNewType
@NotNull @NotNull PrismContainerDefinition<?> cloneWithNewType(@NotNull @NotNull QName newTypeName, @NotNull @NotNull ComplexTypeDefinition newCtd) Changes the type name and definition for this PCD. Use only in special cases. -
cloneWithNewDefinition
PrismContainerDefinition<C> cloneWithNewDefinition(QName newItemName, ItemDefinition<?> newDefinition) TODO -
replaceDefinition
TODO -
createValue
PrismContainerValue<C> createValue()TODO -
isEmpty
boolean isEmpty()TODO -
canRepresent
TODO -
mutator
Description copied from interface:DefinitionReturns an interface to mutate this definition.- Specified by:
mutatorin interfaceDefinition- Specified by:
mutatorin interfaceItemDefinition<C extends Containerable>
-
getTypeClass
Description copied from interface:DefinitionReturns a compile-time class that is used to represent items. E.g. returns String, Integer, subclasses of Objectable and Containerable and so on.- Specified by:
getTypeClassin interfaceDefinition
-
structuredType
Description copied from interface:ItemDefinitionReturns 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.- Specified by:
structuredTypein interfaceItemDefinition<C extends Containerable>
-
isAlwaysUseForEquals
Returns true, if item is explicitly specified mentioned to be used for equals -
getAlwaysUseForEquals
Returns list of items which should be always used for equals, even if they are operational, and equivalence strategy does not consider operational data. -
schemaLookup
- Specified by:
schemaLookupin interfaceSchemaLookup.Aware
-