c9607c2921c80d4a377b3d116c8b696b7d1837b3
[groupbasedpolicy.git] / groupbasedpolicy / src / main / java / org / opendaylight / groupbasedpolicy / api / BaseEndpointRendererAugmentation.java
1 /*
2  * Copyright (c) 2016 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
9 package org.opendaylight.groupbasedpolicy.api;
10
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.endpoints.address.endpoints.AddressEndpoint;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.endpoints.containment.endpoints.ContainmentEndpoint;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.register.endpoint.input.AddressEndpointReg;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.register.endpoint.input.ContainmentEndpointReg;
15 import org.opendaylight.yangtools.yang.binding.Augmentation;
16
17 import javax.annotation.Nullable;
18 import java.util.Map;
19
20 public interface BaseEndpointRendererAugmentation {
21
22     /**
23      * Creates pair of AddressEndpoint augmentation, specific for renderer and augmentation type
24      * (class
25      * name).
26      *
27      * @param input input data for AddressEndpoint creation
28      * @return pair of augmentation type and augmentation
29      */
30     @Nullable
31     Map.Entry<Class<? extends Augmentation<AddressEndpoint>>, Augmentation<AddressEndpoint>> buildAddressEndpointAugmentation(
32             AddressEndpointReg input);
33
34     /**
35      * Creates pair of AddressEndpoint augmentation, specific for renderer and augmentation type
36      * (class
37      * name).
38      *
39      * @param input input data for AddressEndpoint creation
40      * @return pair of augmentation type and augmentation
41      */
42     @Nullable
43     Map.Entry<Class<? extends Augmentation<ContainmentEndpoint>>, Augmentation<ContainmentEndpoint>> buildContainmentEndpointAugmentation(
44             ContainmentEndpointReg input);
45 }