67ce361ea38a10afce4eeca1c3c208243500fb30
[yangtools.git] / yang / yang-data-operations / src / main / java / org / opendaylight / yangtools / yang / data / operations / Modification.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.data.operations;
9
10 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
11
12 import com.google.common.base.Optional;
13
14 /**
15  * Strategy interface for data modification.
16  *
17  * @param <S> SchemaNode type
18  * @param <N> LeafNode type
19  *
20  */
21 interface Modification<S, N extends NormalizedNode<?, ?>> {
22
23     Optional<N> modify(S schemaNode, Optional<N> actual, Optional<N> modification, OperationStack operations) throws DataModificationException;
24 }