A race condition occurs between ARPHandler and HostTracker if the ARP
[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.ModifyAction;
13 import org.opendaylight.controller.yang.data.api.Node;
14
15 public abstract class AbstractNode<T> implements Node<T> {
16
17     private final QName nodeName;
18     private final CompositeNode parent;
19
20     protected AbstractNode(QName name, CompositeNode parent) {
21         nodeName = name;
22         this.parent = parent;
23     }
24
25     public QName getNodeType() {
26         return this.nodeName;
27     }
28
29     public CompositeNode getParent() {
30         return parent;
31     }
32     
33     /* (non-Javadoc)
34      */
35     /**
36      * @see org.opendaylight.controller.yang.data.api.NodeModification#getModificationAction()
37      */
38     public ModifyAction getModificationAction() {
39         // TODO Auto-generated method stub
40         return null;
41     }
42 }