BUG-1276: fixed generated union constructor
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / NormalizedNode.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.data.api.schema;
9
10 import org.opendaylight.yangtools.concepts.Identifiable;
11 import org.opendaylight.yangtools.yang.common.QName;
12 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.Node;
14
15 /**
16  *
17  * Node which is normalized according to the YANG schema
18  * is identifiable by {@link InstanceIdentifier}.
19  *
20  * See subinterfaces of this interface for concretization
21  * of node.
22  *
23  * @param <K> Local identifier of node
24  * @param <V> Value of node
25  */
26 public interface NormalizedNode<K extends InstanceIdentifier.PathArgument,V> extends
27     Identifiable<K>, //
28     Node<V> {
29
30     /**
31      *
32      * QName of the node as defined in YANG schema.
33      *
34      */
35     @Override
36     QName getNodeType();
37
38     /**
39      *
40      * Locally unique identifier of nodes
41      *
42      */
43     @Override
44     K getIdentifier();
45
46     /**
47      *
48      * Value of node
49      *
50      */
51     @Override
52     V getValue();
53 }