Package com.evolveum.midpoint.prism.impl
Class PrismObjectDefinitionImpl<O extends Objectable>
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.prism.impl.DefinitionImpl
com.evolveum.midpoint.prism.impl.ItemDefinitionImpl<PrismContainer<C>>
com.evolveum.midpoint.prism.impl.PrismContainerDefinitionImpl<O>
com.evolveum.midpoint.prism.impl.PrismObjectDefinitionImpl<O>
- All Implemented Interfaces:
Definition
,Freezable
,ItemDefinition<PrismContainer<O>>
,ItemDefinitionTestAccess
,LocalItemDefinitionStore
,MutableDefinition
,MutableItemDefinition<PrismContainer<O>>
,MutablePrismContainerDefinition<O>
,MutablePrismObjectDefinition<O>
,PrismContainerDefinition<O>
,PrismContextSensitive
,PrismItemAccessDefinition
,PrismObjectDefinition<O>
,Revivable
,SmartVisitable<Definition>
,Visitable<Definition>
,DebugDumpable
,Serializable
,Cloneable
public class PrismObjectDefinitionImpl<O extends Objectable>
extends PrismContainerDefinitionImpl<O>
implements MutablePrismObjectDefinition<O>
MidPoint Object Definition.
Objects are storable entities in midPoint.
This is mostly just a marker class to identify object boundaries in schema.
This class represents schema definition for objects. See
Definition
for more details.
"Instance" class of this class is MidPointObject, not Object - to avoid
confusion with java.lang.Object.- Author:
- Radovan Semancik
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
PrismItemAccessDefinition.Mutable
-
Field Summary
Fields inherited from class com.evolveum.midpoint.prism.impl.PrismContainerDefinitionImpl
compileTimeClass, complexTypeDefinition
Fields inherited from class com.evolveum.midpoint.prism.impl.ItemDefinitionImpl
heterogeneousListItem, itemName, substitutionHead
Fields inherited from class com.evolveum.midpoint.prism.impl.DefinitionImpl
deprecated, deprecatedSince, displayName, displayOrder, documentation, elaborate, emphasized, experimental, help, isAbstract, isRuntimeSchema, plannedRemoval, processing, removed, removedSince, typeName
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorDescriptionPrismObjectDefinitionImpl
(QName elementName, ComplexTypeDefinition complexTypeDefinition, Class<O> compileTimeClass) -
Method Summary
Modifier and TypeMethodDescription@NotNull PrismObjectDefinitionImpl<O>
clone()
Shallow clone@NotNull PrismObjectDefinition<O>
cloneWithReplacedDefinition
(QName itemName, ItemDefinition<?> newDefinition) TODOTODOdeepClone
(@NotNull DeepCloneOperation operation) Make a deep clone, cloning all the sub-items and definitions.Return a human readable name of this class suitable for logs.Returns human-readable name of this class suitable for documentation.@NotNull PrismObject<O>
Create an item instance.@NotNull PrismObject<O>
instantiate
(QName name) Create an item instance.Returns an interface to mutate this definition.Methods inherited from class com.evolveum.midpoint.prism.impl.PrismContainerDefinitionImpl
accept, canBeDefinitionOf, canRepresent, checkMutable, copyDefinitionDataFrom, createContainerDefinition, createContainerDefinition, createContainerDefinition, createEmptyDelta, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, debugDump, debugDump, findItemDefinition, getAlwaysUseForEquals, getCompileTimeClass, getComplexTypeDefinition, getDefinitions, getDiagrams, getPropertyDefinitions, getSchemaNamespace, getTypeClass, isAbstract, isEmpty, performFreeze, replaceDefinition, revive, setAlwaysUseForEquals, setCompileTimeClass, setComplexTypeDefinition
Methods inherited from class com.evolveum.midpoint.prism.impl.ItemDefinitionImpl
adoptElementDefinitionFrom, canAdd, canBeDefinitionOf, canModify, canRead, copyDefinitionDataFrom, debugDumpShortToString, debugFlags, debugMultiplicity, equals, extendToString, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, hashCode, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isOperational, isSearchable, isValidFor, replaceName, setCanAdd, setCanModify, setCanRead, setDynamic, setHeterogeneousListItem, setIndexOnly, setInherited, setItemName, setMaxOccurs, setMinOccurs, setOperational, setReadOnly, setSearchable, setSubstitutionHead, setValueEnumerationRef, toString, useSerializationProxy, writeReplace
Methods inherited from class com.evolveum.midpoint.prism.impl.DefinitionImpl
accept, addDiagram, addSchemaMigration, checkMutableOnExposing, copyDefinitionDataFrom, extendDumpHeader, getAnnotation, getAnnotations, getDeprecatedSince, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getPlannedRemoval, getPrismContext, getProcessing, getRemovedSince, getSchemaMigrations, getTypeName, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRemoved, isRuntimeSchema, setAbstract, setAnnotation, setDeprecated, setDeprecatedSince, setDisplayName, setDisplayOrder, setDocumentation, setElaborate, setEmphasized, setExperimental, setHelp, setPlannedRemoval, setProcessing, setRemoved, setRemovedSince, setRuntimeSchema, setTypeName
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.Definition
debugDump, getAnnotation, getAnnotations, getDeprecatedSince, getDiagrams, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getProcessing, getRemovedSince, getSchemaMigrations, getSchemaRegistry, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRemoved, isRuntimeSchema, setAnnotation
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
Methods inherited from interface com.evolveum.midpoint.prism.ItemDefinition
adoptElementDefinitionFrom, canBeDefinitionOf, canBeDefinitionOf, debugDumpShortToString, findItemDefinition, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isMandatory, isMultiValue, isOperational, isOptional, isSearchable, isSingleValue, isValidFor
Methods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findPropertyDefinition, findReferenceDefinition
Methods inherited from interface com.evolveum.midpoint.prism.MutableDefinition
addDiagram, addSchemaMigration, setDeprecated, setDisplayName, setDisplayOrder, setDocumentation, setEmphasized, setExperimental, setHelp, setProcessing, setRemoved, setRemovedSince, setRuntimeSchema, setTypeName
Methods inherited from interface com.evolveum.midpoint.prism.MutableItemDefinition
setCanAdd, setCanModify, setCanRead, setDeprecatedSince, setDynamic, setElaborate, setHeterogeneousListItem, setIndexOnly, setInherited, setItemName, setMaxOccurs, setMinOccurs, setOperational, setPlannedRemoval, setReadOnly, setSearchable, setSubstitutionHead, setValueEnumerationRef
Methods inherited from interface com.evolveum.midpoint.prism.MutablePrismContainerDefinition
createContainerDefinition, createContainerDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, setAlwaysUseForEquals, setCompileTimeClass, setComplexTypeDefinition
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerDefinition
canRepresent, createEmptyDelta, getAlwaysUseForEquals, getCompileTimeClass, getComplexTypeDefinition, getDefinitions, getItemNames, getPropertyDefinitions, getTypeClass, isAlwaysUseForEquals, isCompletelyDefined, isEmpty, replaceDefinition, structuredType
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
canAdd, canModify, canRead
Methods inherited from interface com.evolveum.midpoint.prism.SmartVisitable
accept
-
Constructor Details
-
PrismObjectDefinitionImpl
public PrismObjectDefinitionImpl(QName elementName, ComplexTypeDefinition complexTypeDefinition, Class<O> compileTimeClass)
-
-
Method Details
-
instantiate
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 interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
instantiate
in classPrismContainerDefinitionImpl<O extends Objectable>
- Throws:
SchemaException
-
instantiate
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 interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
instantiate
in classPrismContainerDefinitionImpl<O extends Objectable>
- Throws:
SchemaException
-
clone
Description copied from class:PrismContainerDefinitionImpl
Shallow 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 classPrismContainerDefinitionImpl<O extends Objectable>
-
deepClone
Description copied from class:ItemDefinitionImpl
Make a deep clone, cloning all the sub-items and definitions.- Specified by:
deepClone
in interfaceItemDefinition<O extends Objectable>
- Specified by:
deepClone
in interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
deepClone
in classPrismContainerDefinitionImpl<O extends Objectable>
-
cloneWithReplacedDefinition
@NotNull public @NotNull PrismObjectDefinition<O> cloneWithReplacedDefinition(QName itemName, ItemDefinition<?> newDefinition) Description copied from interface:PrismContainerDefinition
TODO- Specified by:
cloneWithReplacedDefinition
in interfacePrismContainerDefinition<O extends Objectable>
- Specified by:
cloneWithReplacedDefinition
in interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
cloneWithReplacedDefinition
in classPrismContainerDefinitionImpl<O extends Objectable>
-
getExtensionDefinition
- Specified by:
getExtensionDefinition
in interfacePrismObjectDefinition<O extends Objectable>
-
createValue
Description copied from interface:PrismContainerDefinition
TODO- Specified by:
createValue
in interfacePrismContainerDefinition<O extends Objectable>
- Specified by:
createValue
in interfacePrismObjectDefinition<O extends Objectable>
- Overrides:
createValue
in classPrismContainerDefinitionImpl<O extends Objectable>
-
getDebugDumpClassName
Description copied from class:PrismContainerDefinitionImpl
Return a human readable name of this class suitable for logs.- Overrides:
getDebugDumpClassName
in classPrismContainerDefinitionImpl<O extends Objectable>
-
getDocClassName
Description copied from class:DefinitionImpl
Returns human-readable name of this class suitable for documentation. (e.g. "property")- Overrides:
getDocClassName
in classPrismContainerDefinitionImpl<O extends Objectable>
-
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 classPrismContainerDefinitionImpl<O extends Objectable>
-