Class TransformableReferenceDefinition
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformableDefinition
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformableItemDefinition<PrismReference,PrismReferenceDefinition>
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformableReferenceDefinition
-
- All Implemented Interfaces:
PartiallyMutableItemDefinition<PrismReference>
,PartiallyMutableItemDefinition.Reference
,Definition
,DefinitionDelegator
,ItemDefinitionDelegator<PrismReference>
,ReferenceDefinitionDelegator
,Freezable
,ItemDefinition<PrismReference>
,MutableDefinition
,MutableItemDefinition<PrismReference>
,MutablePrismReferenceDefinition
,PrismContextSensitive
,PrismItemAccessDefinition
,PrismItemAccessDefinition.Mutable
,PrismReferenceDefinition
,Revivable
,SmartVisitable<Definition>
,Visitable<Definition>
,DebugDumpable
,Serializable
,Cloneable
public class TransformableReferenceDefinition extends TransformableItemDefinition<PrismReference,PrismReferenceDefinition> implements ReferenceDefinitionDelegator, PartiallyMutableItemDefinition.Reference
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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 interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransformableReferenceDefinition(PrismReferenceDefinition delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PrismReferenceDefinition
clone()
protected TransformableReferenceDefinition
copy()
<T extends ItemDefinition>
TfindItemDefinition(@NotNull ItemPath path, @NotNull Class<T> clazz)
QName
getTargetTypeName()
@NotNull PrismReference
instantiate()
Create an item instance.@NotNull PrismReference
instantiate(QName name)
Create an item instance.static TransformableReferenceDefinition
of(PrismReferenceDefinition original)
protected PrismReferenceDefinition
publicView()
void
setTargetTypeName(QName typeName)
MutablePrismReferenceDefinition
toMutable()
-
Methods inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformableItemDefinition
access, applyTemplate, canAdd, canModify, canRead, deepClone, deepClone, delegate, delegatedItem, freeze, from, getDisplayName, getDisplayOrder, getHelp, getMaxOccurs, getMinOccurs, getProcessing, getValueEnumerationRef, isDeprecated, isEmphasized, isExperimental, isImmutable, 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.DefinitionDelegator
accept, accept, debugDump, debugDump, debugDump, debugDumpLazily, debugDumpLazily, getAnnotation, getDeprecatedSince, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getPrismContext, getProcessing, getSchemaMigrations, getSchemaRegistry, getTypeClass, 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, createEmptyDelta, debugDumpShortToString, deepClone, deepClone, getDiagrams, getItemName, getMaxOccurs, getMinOccurs, getNamespace, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isOperational, isValidFor, isValidFor, structuredType
-
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.Reference
setComposite
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ReferenceDefinitionDelegator
delegate, getCompositeObjectElementName, isComposite
-
-
-
-
Constructor Detail
-
TransformableReferenceDefinition
protected TransformableReferenceDefinition(PrismReferenceDefinition delegate)
-
-
Method Detail
-
setTargetTypeName
public void setTargetTypeName(QName typeName)
- Specified by:
setTargetTypeName
in interfaceMutablePrismReferenceDefinition
- Specified by:
setTargetTypeName
in interfacePartiallyMutableItemDefinition.Reference
-
getTargetTypeName
public QName getTargetTypeName()
- Specified by:
getTargetTypeName
in interfacePrismReferenceDefinition
- Specified by:
getTargetTypeName
in interfaceReferenceDefinitionDelegator
-
findItemDefinition
public <T extends ItemDefinition> T findItemDefinition(@NotNull @NotNull ItemPath path, @NotNull @NotNull Class<T> clazz)
- Specified by:
findItemDefinition
in interfaceItemDefinition<PrismReference>
- Specified by:
findItemDefinition
in interfaceItemDefinitionDelegator<PrismReference>
-
of
public static TransformableReferenceDefinition of(PrismReferenceDefinition original)
-
publicView
protected PrismReferenceDefinition publicView()
- Specified by:
publicView
in classTransformableItemDefinition<PrismReference,PrismReferenceDefinition>
-
toMutable
public MutablePrismReferenceDefinition toMutable()
- Specified by:
toMutable
in interfaceDefinition
- Specified by:
toMutable
in interfaceItemDefinition<PrismReference>
- Overrides:
toMutable
in classTransformableItemDefinition<PrismReference,PrismReferenceDefinition>
-
instantiate
@NotNull public @NotNull PrismReference instantiate()
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<PrismReference>
- Specified by:
instantiate
in interfaceItemDefinitionDelegator<PrismReference>
- Specified by:
instantiate
in interfacePrismReferenceDefinition
- Specified by:
instantiate
in interfaceReferenceDefinitionDelegator
- Returns:
- created item instance
-
instantiate
@NotNull public @NotNull PrismReference instantiate(QName name)
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<PrismReference>
- Specified by:
instantiate
in interfaceItemDefinitionDelegator<PrismReference>
- Specified by:
instantiate
in interfacePrismReferenceDefinition
- Specified by:
instantiate
in interfaceReferenceDefinitionDelegator
- Overrides:
instantiate
in classTransformableItemDefinition<PrismReference,PrismReferenceDefinition>
- Returns:
- created item instance
-
clone
@NotNull public @NotNull PrismReferenceDefinition clone()
- Specified by:
clone
in interfaceDefinition
- Specified by:
clone
in interfaceItemDefinition<PrismReference>
- Specified by:
clone
in interfacePrismReferenceDefinition
- Overrides:
clone
in classTransformableItemDefinition<PrismReference,PrismReferenceDefinition>
-
copy
protected TransformableReferenceDefinition copy()
- Specified by:
copy
in classTransformableItemDefinition<PrismReference,PrismReferenceDefinition>
-
-