2 * Copyright (c) 2014 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
8 package org.opendaylight.openflowplugin.extension.api;
10 import org.opendaylight.openflowplugin.extension.api.path.AugmentationPath;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.general.rev140714.general.extension.grouping.Extension;
12 import org.opendaylight.yangtools.yang.binding.Augmentation;
13 import org.opendaylight.yangtools.yang.binding.DataContainer;
16 * convert message from OFJava-API model into MD-SAL model
18 * @param <F> input message model - OFJava-API
19 * @param <P> represents possible paths in yang schema for augmentations
21 public interface ConvertorFromOFJava<F extends DataContainer, P extends AugmentationPath> {
25 * @param path in yang schema where a converted value has to be augmented
26 * @return message converted to MD-SAL and its type
28 ExtensionAugment<? extends Augmentation<Extension>> convert(F input, P path);