Fixed bugs in naming conventions of packages.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-data-util / src / main / java / org / opendaylight / controller / yang / data / util / AbstractNode.java
1 /*
2  * Copyright (c) 2013 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.controller.yang.data.util;
9
10 import org.opendaylight.controller.yang.common.QName;
11 import org.opendaylight.controller.yang.data.api.CompositeNode;
12 import org.opendaylight.controller.yang.data.api.Node;
13
14 public abstract class AbstractNode<T> implements Node<T> {
15
16     private final QName nodeName;
17     private final CompositeNode parent;
18
19     protected AbstractNode(QName name, CompositeNode parent) {
20         nodeName = name;
21         this.parent = parent;
22     }
23
24     public QName getNodeType() {
25         return this.nodeName;
26     }
27
28     public CompositeNode getParent() {
29         return parent;
30     }
31 }