2 * Copyright (c) 2016 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
9 package org.opendaylight.netconf.sal.restconf.impl;
12 * Each YANG patch edit specifies one edit operation on the target data
13 * node. The set of operations is aligned with the NETCONF edit
14 * operations, but also includes some new operations.
17 public enum PatchEditOperation {
19 DELETE(false), // delete
22 MOVE(false), // delete+post
24 REMOVE(false); // delete
26 private final boolean withValue;
28 PatchEditOperation(final boolean withValue) {
29 this.withValue = withValue;
33 * Not all patch operations support value node. Check if operation requires value or not.
35 * @return true if operation requires value, false otherwise
37 public boolean isWithValue() {