Interface NormalizedMetadata
-
- All Superinterfaces:
Identifiable<YangInstanceIdentifier.PathArgument>
,Immutable
,MutationBehaviour<Immutable>
- All Known Implementing Classes:
ImmutableNormalizedMetadata
@Beta public interface NormalizedMetadata extends Identifiable<YangInstanceIdentifier.PathArgument>, Immutable
RFC7952 metadata counterpart to aNormalizedNode
. This interface is meant to be used as a companion to a NormalizedNode instance, hence it does not support iterating over its structure like it is possible withNormalizedNode.getValue()
. Children may be inquired throughgetChildren()
.This model of metadata does not have the RFC7952 restriction on metadata attachment to
list
s andleaf-list
s because NormalizedNode data model hasLeafSetNode
,MapNode
andUnkeyedListNode
to which metadata can be attached.- Author:
- Robert Varga
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @NonNull Map<QName,Object>
getAnnotations()
Return the set of annotations defined in this metadata node.default @NonNull Map<YangInstanceIdentifier.PathArgument,NormalizedMetadata>
getChildren()
Returns child nodes.-
Methods inherited from interface org.opendaylight.yangtools.concepts.Identifiable
getIdentifier
-
-
-
-
Method Detail
-
getAnnotations
@NonNull Map<QName,Object> getAnnotations()
Return the set of annotations defined in this metadata node. Values are expected to be effectively-immutable scalar types, likeString
s,Number
s and similar. The map must also be effectively-immutable.- Returns:
- The set of annotations attached to the corresponding data node.
-
getChildren
default @NonNull Map<YangInstanceIdentifier.PathArgument,NormalizedMetadata> getChildren()
Returns child nodes. Default implementation returns an empty immutable map.- Returns:
- Child metadata nodes.
-
-