2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.controller.data.util;
\r
10 import org.opendaylight.controller.yang.common.QName;
\r
11 import org.opendaylight.controller.yang.data.api.CompositeNode;
\r
12 import org.opendaylight.controller.yang.data.api.Node;
\r
14 public abstract class AbstractNode<T> implements Node<T> {
\r
16 private final QName nodeName;
\r
17 private final CompositeNode parent;
\r
19 protected AbstractNode(QName name, CompositeNode parent) {
\r
21 this.parent = parent;
\r
24 public QName getNodeType() {
\r
25 return this.nodeName;
\r
28 public CompositeNode getParent() {
\r