2 * Copyright (c) 2014 Cisco Systems, Inc. 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.yang.data.api.schema;
10 import java.util.Collection;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
14 import org.opendaylight.yangtools.yang.model.api.AugmentationSchema;
19 * Data instance of <code>augment</code> assiociated with parent node.
21 * Augmentation is addition of subtree defined by other external YANG Model and
22 * is schema for subtree is described by instance of {@link AugmentationSchema}
23 * associated with parent node of this node.
25 * Augmentation node MUST NOT be direct child of other augmentation node.
28 public interface AugmentationNode extends //
30 DataContainerNode<AugmentationIdentifier>,
31 DataContainerChild<YangInstanceIdentifier.AugmentationIdentifier, Collection<DataContainerChild<? extends PathArgument, ?>>> {
34 * Gets identifier of augmentation node
36 * Returned identifier of augmentation node contains all possible
37 * direct child QNames.
39 * This is sufficient to identify instance of augmentation,
40 * since RFC6020 states that <code>augment</code> that augment
41 * statement must not add multiple nodes from same namespace
45 * @return Identifier which uniquelly identifies augmentation in particular subtree.
49 public AugmentationIdentifier getIdentifier();