Class LazyPrismContainerValue<C extends Containerable>
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.prism.lazy.LazyXNodeBasedPrismValue<MapXNodeImpl,PrismContainerValue<C>>
com.evolveum.midpoint.prism.impl.lazy.LazyPrismContainerValue<C>
- All Implemented Interfaces:
PrismContainerValueDelegator<C>
,Freezable
,MidpointOriginMetadata
,ParentVisitable
,PathVisitable
,PrismContainerValue<C>
,PrismValue
,PrismVisitable
,Revivable
,SchemaLookup.Aware
,Visitable
,Walkable
,DebugDumpable
,Serializable
public class LazyPrismContainerValue<C extends Containerable>
extends LazyXNodeBasedPrismValue<MapXNodeImpl,PrismContainerValue<C>>
implements PrismContainerValueDelegator<C>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.evolveum.midpoint.prism.lazy.LazyXNodeBasedPrismValue
LazyXNodeBasedPrismValue.Source<M extends XNode>
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismContainerValue
PrismContainerValue.RemovedItemDefinitionException
-
Field Summary
FieldsFields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorsConstructorDescriptionLazyPrismContainerValue
(ComplexTypeDefinition ctd, ParsingContext parsingContext, @NotNull MapXNodeImpl xnode) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
acceptParentVisitor
(Visitor visitor) applyDefinition
(@NotNull ItemDefinition<?> itemDefinition, boolean force) Definition application MAY change the value (currently only for container values).clone()
Literal clone.cloneComplex
(CloneStrategy strategy) Complex clone with different cloning strategies.debugDump
(int indent) delegate()
boolean
equals
(PrismValue otherValue, @NotNull EquivalenceStrategy strategy) getId()
boolean
Like isEmpty but ignores presence of container value ID.boolean
isEmpty()
boolean
isIdOnly()
protected PrismContainerValue<C>
protected void
void
Methods inherited from class com.evolveum.midpoint.prism.lazy.LazyXNodeBasedPrismValue
hasSameSource, isMaterialized, isNotMaterialized, materialized, xnode
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerValue
acceptVisitor
Methods inherited from interface com.evolveum.midpoint.prism.deleg.PrismContainerValueDelegator
accept, add, add, addAll, addAllReplaceExisting, addRawElement, addReplaceExisting, applyDefinition, applyDefinition, applyDefinitionLegacy, applyDefinitionLegacy, asContainerable, asContainerable, assertDefinitions, assertDefinitions, asSingleValuedContainer, canRepresent, checkConsistenceInternal, checkImmutable, checkMutable, checkNothingExceptFor, clear, clearParent, cloneIfImmutable, contains, contains, containsItem, createDetachedSubItem, createImmutableClone, createProperty, createProperty, deleteRawElement, deleteValueMetadata, diff, equals, equivalent, find, findContainer, findItem, findItem, findItem, findOrCreateContainer, findOrCreateItem, findOrCreateItem, findOrCreateItem, findOrCreateProperty, findOrCreateProperty, findOrCreateReference, findPartial, findProperty, findProperty, findReference, freeze, getAllItems, getAllValues, getCompileTimeClass, getComplexTypeDefinition, getContainer, getItemNames, getItemRealValue, getItems, getNearestValueOfType, getOriginObject, getOriginType, getParentContainerValue, getPath, getProperties, getPropertyRealValue, getRealClass, getRealValue, getRealValueIfExists, getRealValueOrRawType, getRootValue, getSchemaContext, getUserData, getUserData, getValue, getValueMetadata, getValueMetadataAsContainer, getValueMetadataIfExists, hasCompleteDefinition, hashCode, hashCode, hasRealClass, hasValueMetadata, isImmutable, isObjectable, isOfType, isRaw, isTransient, keepPaths, merge, mergeContent, normalize, recompute, recompute, remove, removeAll, removeContainer, removeItem, removeItems, removeMetadataFromPaths, removeOperationalItems, removePaths, removeProperty, removeRawElement, removeReference, replace, representsSameValue, revive, schemaLookup, setId, setOriginObject, setOriginType, setOriginTypeRecursive, setPropertyRealValue, setTransient, setUserData, setValueMetadata, setValueMetadata, setValueMetadata, size, subtract, toHumanReadableString, walk
Methods inherited from interface com.evolveum.midpoint.prism.PrismValue
getRootObjectable
-
Field Details
-
complexTypeDefinition
-
-
Constructor Details
-
LazyPrismContainerValue
public LazyPrismContainerValue(ComplexTypeDefinition ctd, ParsingContext parsingContext, @NotNull @NotNull MapXNodeImpl xnode) -
LazyPrismContainerValue
-
-
Method Details
-
getId
- Specified by:
getId
in interfacePrismContainerValue<C extends Containerable>
-
isIdOnly
public boolean isIdOnly()- Specified by:
isIdOnly
in interfacePrismContainerValue<C extends Containerable>
-
clone
Description copied from interface:PrismValue
Literal clone.- Specified by:
clone
in interfacePrismContainerValue<C extends Containerable>
- Specified by:
clone
in interfacePrismValue
- Overrides:
clone
in classObject
-
getTypeName
- Specified by:
getTypeName
in interfacePrismValue
-
delegate
- Specified by:
delegate
in interfacePrismContainerValueDelegator<C extends Containerable>
-
materialize
- Specified by:
materialize
in classLazyXNodeBasedPrismValue<MapXNodeImpl,
PrismContainerValue<C extends Containerable>>
-
setParent
- Specified by:
setParent
in interfacePrismContainerValueDelegator<C extends Containerable>
- Specified by:
setParent
in interfacePrismValue
-
accept
- Specified by:
accept
in interfacePrismContainerValue<C extends Containerable>
- Specified by:
accept
in interfacePrismContainerValueDelegator<C extends Containerable>
- Specified by:
accept
in interfacePrismValue
- Specified by:
accept
in interfaceVisitable<C extends Containerable>
-
acceptParentVisitor
- Specified by:
acceptParentVisitor
in interfaceParentVisitable
- Specified by:
acceptParentVisitor
in interfacePrismContainerValue<C extends Containerable>
- Specified by:
acceptParentVisitor
in interfacePrismContainerValueDelegator<C extends Containerable>
-
getParent
- Specified by:
getParent
in interfacePrismContainerValue<C extends Containerable>
- Specified by:
getParent
in interfacePrismContainerValueDelegator<C extends Containerable>
- Specified by:
getParent
in interfacePrismValue
-
applyDefinition
public PrismContainerValue<C> applyDefinition(@NotNull @NotNull ItemDefinition<?> itemDefinition, boolean force) throws SchemaException Description copied from interface:PrismValue
Definition application MAY change the value (currently only for container values). The caller must deal with that.- Specified by:
applyDefinition
in interfacePrismContainerValue<C extends Containerable>
- Specified by:
applyDefinition
in interfacePrismContainerValueDelegator<C extends Containerable>
- Specified by:
applyDefinition
in interfacePrismValue
- Throws:
SchemaException
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
getDefinition
- Specified by:
getDefinition
in interfacePrismContainerValue<C extends Containerable>
- Specified by:
getDefinition
in interfacePrismContainerValueDelegator<C extends Containerable>
-
cloneComplex
Description copied from interface:PrismValue
Complex clone with different cloning strategies.- Specified by:
cloneComplex
in interfacePrismContainerValue<C extends Containerable>
- Specified by:
cloneComplex
in interfacePrismContainerValueDelegator<C extends Containerable>
- Specified by:
cloneComplex
in interfacePrismValue
- See Also:
-
performFreeze
protected void performFreeze()- Overrides:
performFreeze
in classAbstractFreezable
-
equals
- Specified by:
equals
in interfacePrismContainerValueDelegator<C extends Containerable>
- Specified by:
equals
in interfacePrismValue
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfacePrismContainerValueDelegator<C extends Containerable>
- Specified by:
isEmpty
in interfacePrismValue
-
hasNoItems
public boolean hasNoItems()Description copied from interface:PrismContainerValue
Like isEmpty but ignores presence of container value ID.- Specified by:
hasNoItems
in interfacePrismContainerValue<C extends Containerable>
- Specified by:
hasNoItems
in interfacePrismContainerValueDelegator<C extends Containerable>
-