/* * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.netconf.sal.restconf.impl; import com.google.common.base.Preconditions; import java.util.List; import org.opendaylight.yangtools.yang.model.api.SchemaNode; public class PATCHContext { private final InstanceIdentifierContext context; private final List data; private final String patchId; public PATCHContext(final InstanceIdentifierContext context, final List data, final String patchId) { this.context = Preconditions.checkNotNull(context); this.data = Preconditions.checkNotNull(data); this.patchId = Preconditions.checkNotNull(patchId); } public InstanceIdentifierContext getInstanceIdentifierContext() { return context; } public List getData() { return data; } public String getPatchId() { return patchId; } }