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.yang.data.impl;
\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
15 * @author michal.rehak
\r
17 * type of node value
\r
20 public abstract class AbstractNodeTO<T> implements Node<T> {
\r
22 private QName qName;
\r
23 private CompositeNode parent;
\r
31 public AbstractNodeTO(QName qname, CompositeNode parent, T value) {
\r
33 this.parent = parent;
\r
38 public QName getNodeType() {
\r
45 protected QName getQName() {
\r
50 public CompositeNode getParent() {
\r
55 * @param parent the parent to set
\r
57 public void setParent(CompositeNode parent) {
\r
58 this.parent = parent;
\r
62 * @param value the value to set
\r
64 protected void setValue(T value) {
\r
69 public T getValue() {
\r