Interface ContainerDefinitionDelegator<C extends Containerable>
- 
- All Superinterfaces:
 Cloneable,DebugDumpable,Definition,DefinitionDelegator,Freezable,ItemDefinition<PrismContainer<C>>,ItemDefinitionDelegator<PrismContainer<C>>,LocalItemDefinitionStore,PrismContainerDefinition<C>,PrismContextSensitive,PrismItemAccessDefinition,Revivable,Serializable,SmartVisitable<Definition>,Visitable<Definition>
- All Known Subinterfaces:
 AttributeContainerDefinitionDelegator,ObjectDefinitionDelegator<O>
- All Known Implementing Classes:
 TransformableContainerDefinition,TransformableContainerDefinition.AttributeContainer,TransformableObjectDefinition
public interface ContainerDefinitionDelegator<C extends Containerable> extends ItemDefinitionDelegator<PrismContainer<C>>, PrismContainerDefinition<C>
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
PrismItemAccessDefinition.Mutable 
 - 
 
- 
Field Summary
- 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancanRepresent(@NotNull QName type)TODOdefault PrismContainerDefinition<C>cloneWithReplacedDefinition(QName itemName, ItemDefinition<?> newDefinition)TODOdefault @NotNull ContainerDelta<C>createEmptyDelta(ItemPath path)Creates an empty delta (with appropriate implementation class), pointing to this item definition, with a given path.default PrismContainerValue<C>createValue()TODOPrismContainerDefinition<C>delegate()default <C extends Containerable>
PrismContainerDefinition<C>findContainerDefinition(@NotNull ItemPath path)ReturnsPrismContainerDefinitioncorresponding to given path (rooted at this store).default <T extends ItemDefinition<?>>
TfindItemDefinition(@NotNull ItemPath path, @NotNull Class<T> clazz)Used to find a matching item definition _within_ this definition.default Class<C>getCompileTimeClass()Static (compile-time) class holding the container values.default ComplexTypeDefinitiongetComplexTypeDefinition()Definition of the container values.default @NotNull List<? extends ItemDefinition<?>>getDefinitions()Returns a list of item definitions in this container.default Collection<ItemName>getItemNames()Returns names of items that are defined within this container definition.default List<PrismPropertyDefinition<?>>getPropertyDefinitions()Returns set of property definitions.default Class<C>getTypeClass()Returns a compile-time class that is used to represent items.default booleanisEmpty()TODOdefault voidreplaceDefinition(QName itemName, ItemDefinition<?> newDefinition)TODOdefault Optional<ComplexTypeDefinition>structuredType()Returns complex type definition of item, if underlying value is possible structured.- 
Methods inherited from interface com.evolveum.midpoint.prism.deleg.DefinitionDelegator
accept, accept, debugDump, debugDump, debugDump, debugDumpLazily, debugDumpLazily, getAnnotation, getAnnotations, getDeprecatedSince, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getPrismContext, getProcessing, getSchemaMigrations, getSchemaRegistry, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRuntimeSchema, setAnnotation 
- 
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable 
- 
Methods inherited from interface com.evolveum.midpoint.prism.ItemDefinition
isMandatory, isMultiValue, isOptional, isSingleValue 
- 
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ItemDefinitionDelegator
adoptElementDefinitionFrom, canAdd, canBeDefinitionOf, canBeDefinitionOf, canModify, canRead, debugDumpShortToString, deepClone, getDiagrams, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, instantiate, instantiate, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isOperational, isValidFor 
- 
Methods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findPropertyDefinition, findReferenceDefinition 
- 
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerDefinition
clone, isCompletelyDefined, toMutable 
 - 
 
 - 
 
- 
- 
Method Detail
- 
delegate
PrismContainerDefinition<C> delegate()
- Specified by:
 delegatein interfaceDefinitionDelegator- Specified by:
 delegatein interfaceItemDefinitionDelegator<C extends Containerable>
 
- 
getCompileTimeClass
default Class<C> getCompileTimeClass()
Description copied from interface:PrismContainerDefinitionStatic (compile-time) class holding the container values. May be null. (Let's not mark it as @Nullable to avoid lots of warnings.)- Specified by:
 getCompileTimeClassin interfacePrismContainerDefinition<C extends Containerable>
 
- 
getComplexTypeDefinition
default ComplexTypeDefinition getComplexTypeDefinition()
Description copied from interface:PrismContainerDefinitionDefinition 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.- Specified by:
 getComplexTypeDefinitionin interfacePrismContainerDefinition<C extends Containerable>
 
- 
getDefinitions
@NotNull default @NotNull List<? extends ItemDefinition<?>> getDefinitions()
Description copied from interface:PrismContainerDefinitionReturns 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- Specified by:
 getDefinitionsin interfacePrismContainerDefinition<C extends Containerable>
 
- 
getItemNames
default Collection<ItemName> getItemNames()
Description copied from interface:PrismContainerDefinitionReturns 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.- Specified by:
 getItemNamesin interfacePrismContainerDefinition<C extends Containerable>
 
- 
getPropertyDefinitions
default List<PrismPropertyDefinition<?>> getPropertyDefinitions()
Description copied from interface:PrismContainerDefinitionReturns set of property definitions. The set contains all property definitions of all types that were parsed. Order of definitions is insignificant. The returned set is immutable! All changes may be lost.- Specified by:
 getPropertyDefinitionsin interfacePrismContainerDefinition<C extends Containerable>- Returns:
 - set of definitions
 
 
- 
findItemDefinition
default <T extends ItemDefinition<?>> T findItemDefinition(@NotNull @NotNull ItemPath path, @NotNull @NotNull Class<T> clazz)
Description copied from interface:ItemDefinitionUsed to find a matching item definition _within_ this definition. Treats e.g. de-referencing in prism references.- Specified by:
 findItemDefinitionin interfaceItemDefinition<C extends Containerable>- Specified by:
 findItemDefinitionin interfaceItemDefinitionDelegator<C extends Containerable>- Specified by:
 findItemDefinitionin interfaceLocalItemDefinitionStore
 
- 
cloneWithReplacedDefinition
default PrismContainerDefinition<C> cloneWithReplacedDefinition(QName itemName, ItemDefinition<?> newDefinition)
Description copied from interface:PrismContainerDefinitionTODO- Specified by:
 cloneWithReplacedDefinitionin interfacePrismContainerDefinition<C extends Containerable>
 
- 
replaceDefinition
default void replaceDefinition(QName itemName, ItemDefinition<?> newDefinition)
Description copied from interface:PrismContainerDefinitionTODO- Specified by:
 replaceDefinitionin interfacePrismContainerDefinition<C extends Containerable>
 
- 
createValue
default PrismContainerValue<C> createValue()
Description copied from interface:PrismContainerDefinitionTODO- Specified by:
 createValuein interfacePrismContainerDefinition<C extends Containerable>
 
- 
isEmpty
default boolean isEmpty()
Description copied from interface:PrismContainerDefinitionTODO- Specified by:
 isEmptyin interfacePrismContainerDefinition<C extends Containerable>
 
- 
canRepresent
default boolean canRepresent(@NotNull @NotNull QName type)Description copied from interface:PrismContainerDefinitionTODO- Specified by:
 canRepresentin interfacePrismContainerDefinition<C extends Containerable>
 
- 
findContainerDefinition
default <C extends Containerable> PrismContainerDefinition<C> findContainerDefinition(@NotNull @NotNull ItemPath path)
Description copied from interface:LocalItemDefinitionStoreReturnsPrismContainerDefinitioncorresponding to given path (rooted at this store). Tries the global resolution in the case of "any" content.- Specified by:
 findContainerDefinitionin interfaceLocalItemDefinitionStore
 
- 
createEmptyDelta
@NotNull default @NotNull ContainerDelta<C> createEmptyDelta(ItemPath path)
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>- Specified by:
 createEmptyDeltain interfaceItemDefinitionDelegator<C extends Containerable>- Specified by:
 createEmptyDeltain interfacePrismContainerDefinition<C extends Containerable>
 
- 
getTypeClass
default Class<C> 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- Specified by:
 getTypeClassin interfaceDefinitionDelegator- Specified by:
 getTypeClassin interfacePrismContainerDefinition<C extends Containerable>
 
- 
structuredType
default Optional<ComplexTypeDefinition> 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>- Specified by:
 structuredTypein interfaceItemDefinitionDelegator<C extends Containerable>- Specified by:
 structuredTypein interfacePrismContainerDefinition<C extends Containerable>
 
 - 
 
 -