9090b97b04cc6bc29ccf20f6189eb5656cc59f9c
[groupbasedpolicy.git] / groupbasedpolicy / src / main / java / org / opendaylight / groupbasedpolicy / api / EpRendererAugmentation.java
1 /*
2  * Copyright (c) 2015 Huawei Technologies 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.groupbasedpolicy.api;
9
10 import java.util.Map;
11
12 import javax.annotation.Nullable;
13
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.RegisterEndpointInput;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.RegisterL3PrefixEndpointInput;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.endpoints.Endpoint;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.endpoints.EndpointL3;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.endpoints.EndpointL3Prefix;
19 import org.opendaylight.yangtools.yang.binding.Augmentation;
20
21 public interface EpRendererAugmentation {
22
23     /**
24      * Creates pair of Endpoint augmentation, specific for renderer and augmentation type (class
25      * name).
26      *
27      * @param input input data for Endpoint creation
28      * @return pair of augmentation type and augmentation
29      */
30     @Nullable Map.Entry<Class<? extends Augmentation<Endpoint>>, Augmentation<Endpoint>> buildEndpointAugmentation(
31             RegisterEndpointInput input);
32
33     /**
34      * Creates pair of EndpointL3 augmentation, specific for renderer and augmentation type (class
35      * name).
36      *
37      * @param input input data for EndpointL3 creation
38      * @return pair of augmentation type and augmentation
39      */
40     @Nullable Map.Entry<Class<? extends Augmentation<EndpointL3>>, Augmentation<EndpointL3>> buildEndpointL3Augmentation(
41             RegisterEndpointInput input);
42
43     /**
44      * Creates pair of EndpointL3Prefix augmentation, specific for renderer and augmentation type (class
45      * name).
46      *
47      * @param input input data for EndpointL3Prefix creation
48      * @return pair of augmentation type and augmentation
49      */
50     @Nullable Map.Entry<Class<? extends Augmentation<EndpointL3Prefix>>, Augmentation<EndpointL3Prefix>> buildL3PrefixEndpointAugmentation(
51             RegisterL3PrefixEndpointInput input);
52 }