/* * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.data.api.schema; import com.google.common.annotations.Beta; import com.google.common.collect.ImmutableMap; import java.util.Map; import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.concepts.Immutable; import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument; /** * RFC7952 metadata counterpart to a {@link NormalizedNode}. 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 with * {@link NormalizedNode#body()}. Children may be inquired through {@link #getChildren()}. * *
* This model of metadata does not have the RFC7952 restriction on metadata attachment to {@code list}s and
* {@code leaf-list}s because NormalizedNode data model has {@link LeafSetNode}, {@link MapNode} and
* {@link UnkeyedListNode} to which metadata can be attached.
*/
@Beta
public interface NormalizedMetadata extends Immutable {
/**
* Return the set of annotations defined in this metadata node. Values are expected to be effectively-immutable
* scalar types, like {@link String}s, {@link Number}s and similar. The map must also be effectively-immutable.
*
* @return The set of annotations attached to the corresponding data node.
*/
// FIXME: use AnnotationName instead of QName once we sort out the XML codec/NETCONF story
@NonNull Map