Fix eclipse/checkstyle warnings
[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.YangInstanceIdentifier.PathArgument;
13
14 /**
15  * Node which is normalized according to the YANG schema
16  * is identifiable by a {@link org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier}.
17  *
18  * <p>
19  * See subinterfaces of this interface for concretization of node.
20  *
21  * @param <K> Local identifier of node
22  * @param <V> Value of node
23  */
24 public interface NormalizedNode<K extends PathArgument, V> extends Identifiable<K> {
25     /**
26      * QName of the node as defined in YANG schema.
27      *
28      * @return QName of this node, non-null.
29      */
30     QName getNodeType();
31
32     /**
33      * Locally unique identifier of the node.
34      *
35      * @return Node identifier, non-null.
36      */
37     @Override
38     K getIdentifier();
39
40     /**
41      * Value of node.
42      *
43      * @return Value of the node, may be null.
44      */
45     V getValue();
46 }