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 com.google.common.base.Preconditions;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
15 public class PATCHEntity {
17 private final String operation;
18 private final String editId;
19 private final YangInstanceIdentifier targetNode;
20 private final NormalizedNode<?,?> node;
22 public PATCHEntity(final String editId, final String operation, final YangInstanceIdentifier targetNode, final
23 NormalizedNode<?, ?> node) {
24 this.editId = Preconditions.checkNotNull(editId);
25 this.operation = Preconditions.checkNotNull(operation);
26 this.targetNode = Preconditions.checkNotNull(targetNode);
27 this.node = Preconditions.checkNotNull(node);
30 public String getOperation() {
34 public String getEditId() {
38 public YangInstanceIdentifier getTargetNode() {
42 public NormalizedNode<?, ?> getNode() {