BUG 2412 - restconf @GET getModule(identifier,uri) method migration
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / modification / AbstractModification.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
9 package org.opendaylight.controller.cluster.datastore.modification;
10
11
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13
14 /**
15  * Base class to be used for all simple modifications that can be applied to a DOMStoreTransaction
16  */
17 public abstract class AbstractModification implements Modification {
18
19     private YangInstanceIdentifier path;
20
21     protected AbstractModification() {
22     }
23
24     protected AbstractModification(YangInstanceIdentifier path) {
25         this.path = path;
26     }
27
28     protected void setPath(YangInstanceIdentifier path) {
29         this.path = path;
30     }
31
32     public YangInstanceIdentifier getPath() {
33         return path;
34     }
35 }