2 * Copyright (c) 2019 PANTHEON.tech s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.rfc8528.data.api;
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.yang.data.api.schema.DataContainerChild;
13 import org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode;
14 import org.opendaylight.yangtools.yang.data.api.schema.MixinNode;
17 * Common NormalizedNode representation of a YANG mount point.
20 * These nodes are not meant to be stored in a DataTree and most NormalizedNode utilities will be confused when
21 * they see them. The purpose of this interface is making data interchange between mount point-aware components more
25 * FIXME: 7.0.0: The above is not quite right. DataTree instances should be able to handle mount points and correctly
26 * handle them, provided they get enough support from MountPointContext.
29 public interface MountPointNode extends DataContainerNode, DataContainerChild, MixinNode {
31 default Class<MountPointNode> contract() {
32 return MountPointNode.class;
36 MountPointIdentifier getIdentifier();
39 * Return the underlying mount point context.
41 * @return Underlying mount point context
43 @NonNull MountPointContext getMountPointContext();
46 * FIXME: consider whether this interface should contain some information based on 'parent-reference':
47 * - List<YangXPathExpression.QualifiedBound> getParentReference()
48 * - the node-set required to maintain referential integrity in the subtree of this node