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;
11 import javax.annotation.Nonnull;
15 * Each YANG patch edit specifies one edit operation on the target data
16 * node. The set of operations is aligned with the NETCONF edit
17 * operations, but also includes some new operations.
20 public enum PATCHEditOperation {
30 * Not all patch operations support value node. Check if operation requires value or not.
31 * @param operation Name of the operation to be checked
32 * @return true if operation requires value, false otherwise
34 public static final boolean isPatchOperationWithValue(@Nonnull final String operation) {
35 switch (PATCHEditOperation.valueOf(operation.toUpperCase())) {