Class TransformableObjectDefinition<O extends Objectable>
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformableDefinition
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformableItemDefinition<PrismContainer<C>,PrismContainerDefinition<C>>
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformableContainerDefinition<O>
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformableObjectDefinition<O>
-
- All Implemented Interfaces:
PartiallyMutableItemDefinition<PrismContainer<O>>
,PartiallyMutableItemDefinition.Container<O>
,Definition
,ContainerDefinitionDelegator<O>
,DefinitionDelegator
,ItemDefinitionDelegator<PrismContainer<O>>
,ObjectDefinitionDelegator<O>
,Freezable
,ItemDefinition<PrismContainer<O>>
,LocalDefinitionStore
,MutableDefinition
,MutableItemDefinition<PrismContainer<O>>
,MutablePrismContainerDefinition<O>
,MutablePrismObjectDefinition<O>
,PrismContainerDefinition<O>
,PrismContextSensitive
,PrismItemAccessDefinition
,PrismItemAccessDefinition.Mutable
,PrismObjectDefinition<O>
,Revivable
,SmartVisitable<Definition>
,Visitable<Definition>
,DebugDumpable
,Serializable
,Cloneable
public class TransformableObjectDefinition<O extends Objectable> extends TransformableContainerDefinition<O> implements ObjectDefinitionDelegator<O>, MutablePrismObjectDefinition<O>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformableContainerDefinition
TransformableContainerDefinition.AttributeContainer
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.model.impl.schema.transform.PartiallyMutableItemDefinition
PartiallyMutableItemDefinition.Attribute<T>, PartiallyMutableItemDefinition.Container<C extends Containerable>, PartiallyMutableItemDefinition.Property<T>, PartiallyMutableItemDefinition.Reference
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
PrismItemAccessDefinition.Mutable
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformableContainerDefinition
complexTypeDefinition
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description TransformableObjectDefinition(PrismObjectDefinition<O> delegate)
TransformableObjectDefinition(PrismObjectDefinition<O> delegate, ComplexTypeDefinition typedef)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PrismObjectDefinition<O>
clone()
PrismObjectDefinition<O>
cloneWithReplacedDefinition(QName itemName, ItemDefinition newDefinition)
protected TransformableContainerDefinition<O>
copy(ComplexTypeDefinition def)
PrismObjectDefinition<O>
deepClone(boolean ultraDeep, Consumer<ItemDefinition> postCloneAction)
PrismObjectDefinition<O>
delegate()
PrismObject<O>
instantiate()
Create an item instance.@NotNull PrismObject<O>
instantiate(QName name)
Create an item instance.static <O extends Objectable>
TransformableObjectDefinition<O>of(PrismObjectDefinition<O> originalItem)
protected PrismObjectDefinition<O>
publicView()
MutablePrismObjectDefinition<O>
toMutable()
-
Methods inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformableContainerDefinition
copy, createEmptyDelta, deepClone, ensureMutableType, findContainerDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findNamedItemDefinition, findPropertyDefinition, findReferenceDefinition, findReferenceDefinition, freeze, getCompileTimeClass, getComplexTypeDefinition, getDefaultNamespace, getDefinitions, getIgnoredNamespaces, getPropertyDefinitions, getTypeClass, getTypeName, isCompletelyDefined, isEmpty, isImmutable, of, replaceDefinition, require
-
Methods inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformableItemDefinition
access, applyTemplate, canAdd, canModify, canRead, delegatedItem, from, getDisplayName, getDisplayOrder, getHelp, getMaxOccurs, getMinOccurs, getProcessing, getValueEnumerationRef, isDeprecated, isEmphasized, isExperimental, isMutableAccess, publicFrom, revive, setCanAdd, setCanModify, setCanRead, setDeprecated, setDisplayName, setDisplayOrder, setEmphasized, setExperimental, setHelp, setMaxOccurs, setMinOccurs, setProcessing, setValueEnumerationRef, toString
-
Methods inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformableDefinition
annotationsOverrides, getAnnotation, setAnnotation
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ContainerDefinitionDelegator
canRepresent, createEmptyDelta, findContainerDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findNamedItemDefinition, findPropertyDefinition, findReferenceDefinition, findReferenceDefinition, getCompileTimeClass, getComplexTypeDefinition, getDefaultNamespace, getDefinitions, getIgnoredNamespaces, getItemNames, getPropertyDefinitions, getTypeClass, isCompletelyDefined, isEmpty, replaceDefinition, structuredType
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.DefinitionDelegator
accept, accept, debugDump, debugDump, debugDump, debugDumpLazily, debugDumpLazily, getAnnotation, getDeprecatedSince, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getPrismContext, getProcessing, getSchemaMigrations, getSchemaRegistry, getTypeClassIfKnown, 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, revive
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ItemDefinitionDelegator
adoptElementDefinitionFrom, canAdd, canBeDefinitionOf, canBeDefinitionOf, canModify, canRead, debugDumpShortToString, deepClone, getDiagrams, getItemName, getMaxOccurs, getMinOccurs, getNamespace, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isOperational, isValidFor, isValidFor
-
Methods inherited from interface com.evolveum.midpoint.prism.LocalDefinitionStore
findItemDefinition
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ObjectDefinitionDelegator
createValue, getExtensionDefinition
-
Methods inherited from interface com.evolveum.midpoint.model.impl.schema.transform.PartiallyMutableItemDefinition
addDiagram, addSchemaMigration, setCanAdd, setCanModify, setCanRead, setDeprecated, setDeprecatedSince, setDisplayName, setDisplayOrder, setDocumentation, setDynamic, setElaborate, setEmphasized, setExperimental, setHelp, setHeterogeneousListItem, setIndexOnly, setItemName, setMaxOccurs, setMinOccurs, setOperational, setPlannedRemoval, setProcessing, setReadOnly, setRuntimeSchema, setSubstitutionHead, setTypeName, setValueEnumerationRef
-
Methods inherited from interface com.evolveum.midpoint.model.impl.schema.transform.PartiallyMutableItemDefinition.Container
createContainerDefinition, createContainerDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, setCompileTimeClass, setComplexTypeDefinition, setInherited
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerDefinition
createEmptyDelta, getTypeClass, structuredType
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismObjectDefinition
createValue
-
-
-
-
Constructor Detail
-
TransformableObjectDefinition
public TransformableObjectDefinition(PrismObjectDefinition<O> delegate)
-
TransformableObjectDefinition
public TransformableObjectDefinition(PrismObjectDefinition<O> delegate, ComplexTypeDefinition typedef)
-
-
Method Detail
-
of
public static <O extends Objectable> TransformableObjectDefinition<O> of(PrismObjectDefinition<O> originalItem)
-
publicView
protected PrismObjectDefinition<O> publicView()
- Overrides:
publicView
in classTransformableContainerDefinition<O extends Objectable>
-
clone
@NotNull public @NotNull PrismObjectDefinition<O> clone()
- Specified by:
clone
in interfaceDefinition
- Specified by:
clone
in interfaceItemDefinition<O extends Objectable>
- Specified by:
clone
in interfacePrismContainerDefinition<O extends Objectable>
- Specified by:
clone
in interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
clone
in classTransformableContainerDefinition<O extends Objectable>
-
toMutable
public MutablePrismObjectDefinition<O> toMutable()
- Specified by:
toMutable
in interfaceDefinition
- Specified by:
toMutable
in interfaceItemDefinition<O extends Objectable>
- Specified by:
toMutable
in interfacePrismContainerDefinition<O extends Objectable>
- Specified by:
toMutable
in interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
toMutable
in classTransformableContainerDefinition<O extends Objectable>
-
delegate
public PrismObjectDefinition<O> delegate()
- Specified by:
delegate
in interfaceContainerDefinitionDelegator<O extends Objectable>
- Specified by:
delegate
in interfaceDefinitionDelegator
- Specified by:
delegate
in interfaceItemDefinitionDelegator<O extends Objectable>
- Specified by:
delegate
in interfaceObjectDefinitionDelegator<O extends Objectable>
- Overrides:
delegate
in classTransformableItemDefinition<PrismContainer<O extends Objectable>,PrismContainerDefinition<O extends Objectable>>
-
cloneWithReplacedDefinition
public PrismObjectDefinition<O> cloneWithReplacedDefinition(QName itemName, ItemDefinition newDefinition)
- Specified by:
cloneWithReplacedDefinition
in interfaceContainerDefinitionDelegator<O extends Objectable>
- Specified by:
cloneWithReplacedDefinition
in interfaceObjectDefinitionDelegator<O extends Objectable>
- Specified by:
cloneWithReplacedDefinition
in interfacePrismContainerDefinition<O extends Objectable>
- Specified by:
cloneWithReplacedDefinition
in interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
cloneWithReplacedDefinition
in classTransformableContainerDefinition<O extends Objectable>
-
deepClone
public PrismObjectDefinition<O> deepClone(boolean ultraDeep, Consumer<ItemDefinition> postCloneAction)
- Specified by:
deepClone
in interfaceItemDefinition<O extends Objectable>
- Specified by:
deepClone
in interfaceItemDefinitionDelegator<O extends Objectable>
- Specified by:
deepClone
in interfaceObjectDefinitionDelegator<O extends Objectable>
- Specified by:
deepClone
in interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
deepClone
in classTransformableContainerDefinition<O extends Objectable>
-
copy
protected TransformableContainerDefinition<O> copy(ComplexTypeDefinition def)
- Overrides:
copy
in classTransformableContainerDefinition<O extends Objectable>
-
instantiate
public PrismObject<O> instantiate() throws SchemaException
Description copied from interface:ItemDefinition
Create an item instance. Definition name or default name will used as an element name for the instance. The instance will otherwise be empty.- Specified by:
instantiate
in interfaceItemDefinition<O extends Objectable>
- Specified by:
instantiate
in interfaceItemDefinitionDelegator<O extends Objectable>
- Specified by:
instantiate
in interfaceObjectDefinitionDelegator<O extends Objectable>
- Specified by:
instantiate
in interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
instantiate
in classTransformableContainerDefinition<O extends Objectable>
- Returns:
- created item instance
- Throws:
SchemaException
-
instantiate
@NotNull public @NotNull PrismObject<O> instantiate(QName name) throws SchemaException
Description copied from interface:ItemDefinition
Create an item instance. Definition name will use provided name. for the instance. The instance will otherwise be empty.- Specified by:
instantiate
in interfaceItemDefinition<O extends Objectable>
- Specified by:
instantiate
in interfaceItemDefinitionDelegator<O extends Objectable>
- Specified by:
instantiate
in interfaceObjectDefinitionDelegator<O extends Objectable>
- Specified by:
instantiate
in interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
instantiate
in classTransformableContainerDefinition<O extends Objectable>
- Returns:
- created item instance
- Throws:
SchemaException
-
-