Class MapXNodeImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.AbstractFreezable
-
- com.evolveum.midpoint.prism.impl.xnode.XNodeImpl
-
- com.evolveum.midpoint.prism.impl.xnode.MapXNodeImpl
-
- All Implemented Interfaces:
Copyable<XNode>
,Freezable
,Visitable<XNode>
,MapXNode
,MetadataAware
,XNode
,DebugDumpable
,Serializable
,Cloneable
public class MapXNodeImpl extends XNodeImpl implements MapXNode
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.prism.impl.xnode.XNodeImpl
elementName, KEY_CONTAINER_ID, KEY_OID, KEY_REFERENCE_DESCRIPTION, KEY_REFERENCE_FILTER, KEY_REFERENCE_OBJECT, KEY_REFERENCE_OID, KEY_REFERENCE_REFERENTIAL_INTEGRITY, KEY_REFERENCE_RELATION, KEY_REFERENCE_RESOLUTION_TIME, KEY_REFERENCE_TARGET_NAME, KEY_REFERENCE_TYPE, KEY_VERSION, maxOccurs, parent, typeQName
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description MapXNodeImpl()
MapXNodeImpl(PrismNamespaceContext localNsContext)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.prism.impl.xnode.XNodeImpl
cloneTransformKeys, copyCommonAttributesFrom, copyCommonTo, dumpSuffix, getComment, getElementName, getLineNumber, getMaxOccurs, getOriginDescription, getOriginFile, getParent, getParserData, getTypeQName, isExplicitTypeDeclaration, isHeterogeneousList, isSingleEntryMap, namespaceContext, setComment, setElementName, setExplicitTypeDeclaration, setLineNumber, setMaxOccurs, setOriginDescription, setOriginFile, setParent, setParserData, setTypeQName, toRootXNode
-
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, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
-
Methods inherited from interface com.evolveum.midpoint.prism.xnode.MetadataAware
addMetadataNode
-
Methods inherited from interface com.evolveum.midpoint.prism.xnode.XNode
frozen, getMaxOccurs, getTypeQName, hasMetadata, isExplicitTypeDeclaration, namespaceContext, toRootXNode
-
-
-
-
Constructor Detail
-
MapXNodeImpl
public MapXNodeImpl()
-
MapXNodeImpl
public MapXNodeImpl(PrismNamespaceContext localNsContext)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(QName key)
- Specified by:
containsKey
in interfaceMapXNode
-
getSingleSubEntry
public Map.Entry<QName,XNodeImpl> getSingleSubEntry(String errorContext) throws SchemaException
- Specified by:
getSingleSubEntry
in interfaceMapXNode
- Throws:
SchemaException
-
getSingleSubEntryAsRoot
public RootXNode getSingleSubEntryAsRoot(String errorContext) throws SchemaException
- Specified by:
getSingleSubEntryAsRoot
in interfaceMapXNode
- Throws:
SchemaException
-
getSingleEntryThatDoesNotMatch
public Map.Entry<QName,XNodeImpl> getSingleEntryThatDoesNotMatch(QName... excludedKeys) throws SchemaException
- Throws:
SchemaException
-
getPrimitive
public <T> PrimitiveXNodeImpl<T> getPrimitive(QName key) throws SchemaException
- Throws:
SchemaException
-
getParsedPrimitiveValue
public <T> T getParsedPrimitiveValue(QName key, QName typeName) throws SchemaException
- Throws:
SchemaException
-
merge
public void merge(@NotNull @NotNull MapXNodeImpl other)
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
getEntryAsRoot
public RootXNodeImpl getEntryAsRoot(@NotNull @NotNull QName key)
- Specified by:
getEntryAsRoot
in interfaceMapXNode
-
clone
@NotNull public @NotNull MapXNodeImpl clone()
-
performFreeze
public void performFreeze()
- Overrides:
performFreeze
in classAbstractFreezable
-
getMetadataNodes
@NotNull public @NotNull List<MapXNode> getMetadataNodes()
- Specified by:
getMetadataNodes
in interfaceMetadataAware
-
setMetadataNodes
public void setMetadataNodes(@NotNull @NotNull List<MapXNode> metadataNodes)
- Specified by:
setMetadataNodes
in interfaceMetadataAware
-
-