2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.data.impl;
10 import org.opendaylight.yangtools.yang.common.QName;
11 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
12 import org.opendaylight.yangtools.yang.data.api.ModifyAction;
13 import org.opendaylight.yangtools.yang.data.api.MutableSimpleNode;
14 import org.opendaylight.yangtools.yang.data.api.SimpleNode;
17 * @author michal.rehak
19 * type of simple node value
22 public class MutableSimpleNodeTOImpl<T> extends SimpleNodeTOImpl<T> implements MutableSimpleNode<T> {
24 private SimpleNode<T> original;
32 public MutableSimpleNodeTOImpl(QName qname, CompositeNode parent, T value, ModifyAction modifyAction) {
33 super(qname, parent, value, modifyAction);
37 public void setModifyAction(ModifyAction action) {
38 super.setModificationAction(action);
42 public MutableSimpleNode<T> asMutable() {
47 public SimpleNode<T> getOriginal() {
55 public void setOriginal(SimpleNode<T> original) {
56 this.original = original;