1782da2835df6be2f13c0c5d9b76dfc4ea357aa2
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / md / sal / dom / store / impl / tree / data / NoopDataTreeCandidate.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 package org.opendaylight.controller.md.sal.dom.store.impl.tree.data;
9
10 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
11
12 final class NoopDataTreeCandidate extends AbstractDataTreeCandidate {
13         protected NoopDataTreeCandidate(final InstanceIdentifier rootPath, final NodeModification modificationRoot) {
14                 super(rootPath, modificationRoot);
15         }
16
17         @Override
18         public void close() {
19                 // NO-OP
20         }
21
22         @Override
23         public StoreMetadataNode getBeforeRoot() {
24                 return null;
25         }
26
27         @Override
28         public StoreMetadataNode getAfterRoot() {
29                 return null;
30         }
31 }