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>>
,LocalItemDefinitionStore
,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()
@NotNull PrismObjectDefinition<O>
cloneWithReplacedDefinition(QName itemName, ItemDefinition<?> newDefinition)
TODOprotected TransformableContainerDefinition<O>
copy(ComplexTypeDefinition def)
PrismObjectValue<O>
createValue()
For a strange reason, IntelliJ IDEA complains about missingcreateValue()
method.PrismObjectDefinition<O>
deepClone(@NotNull DeepCloneOperation operation)
TODO documentPrismObjectDefinition<O>
delegate()
@NotNull 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()
Returns an interface to mutate this definition.-
Methods inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformableContainerDefinition
copy, createEmptyDelta, ensureMutableType, findContainerDefinition, findItemDefinition, freeze, getCompileTimeClass, getComplexTypeDefinition, getDefinitions, getPropertyDefinitions, getTypeClass, getTypeName, 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, findItemDefinition, getCompileTimeClass, getComplexTypeDefinition, getItemNames, getPropertyDefinitions, getTypeClass, isEmpty, replaceDefinition, structuredType
-
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, getDiagrams, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isOperational, isValidFor
-
Methods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findPropertyDefinition, findReferenceDefinition
-
Methods inherited from interface com.evolveum.midpoint.prism.MutablePrismContainerDefinition
setAlwaysUseForEquals
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ObjectDefinitionDelegator
getDefinitions, 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, setInherited, 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
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerDefinition
createEmptyDelta, getAlwaysUseForEquals, getTypeClass, isAlwaysUseForEquals, isCompletelyDefined, structuredType
-
-
-
-
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()
Description copied from interface:Definition
Returns an interface to mutate this definition.- 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
@NotNull public @NotNull PrismObjectDefinition<O> cloneWithReplacedDefinition(QName itemName, ItemDefinition<?> newDefinition)
Description copied from interface:PrismContainerDefinition
TODO- 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(@NotNull @NotNull DeepCloneOperation operation)
Description copied from interface:ItemDefinition
TODO document- 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
@NotNull public @NotNull PrismObject<O> instantiate() throws SchemaException
Description copied from interface:ItemDefinition
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.- 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>
- 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>
- Throws:
SchemaException
-
createValue
public PrismObjectValue<O> createValue()
For a strange reason, IntelliJ IDEA complains about missingcreateValue()
method. So adding it here.- Specified by:
createValue
in interfaceContainerDefinitionDelegator<O extends Objectable>
- Specified by:
createValue
in interfaceObjectDefinitionDelegator<O extends Objectable>
- Specified by:
createValue
in interfacePrismContainerDefinition<O extends Objectable>
- Specified by:
createValue
in interfacePrismObjectDefinition<O extends Objectable>
-
-