fix some compilation warnings
[transportpce.git] / servicehandler / src / test / java / org / opendaylight / transportpce / servicehandler / mappers / ServiceImplementationRequestInputConverter.java
1 /*
2  * Copyright © 2018 Orange, 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.transportpce.servicehandler.mappers;
9
10 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubrenderer.rev170426.ServiceImplementationRequestInput;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubrenderer.rev170426.ServiceImplementationRequestInputBuilder;
12
13 public final class ServiceImplementationRequestInputConverter {
14
15     public static ServiceImplementationRequestInput getStub(org.opendaylight.yang.gen.v1.http.org.transportpce
16                 .b.c._interface.servicepath.rev170426.ServiceImplementationRequestInput concrete) {
17         ServiceImplementationRequestInputBuilder stubBuilder = new ServiceImplementationRequestInputBuilder();
18         stubBuilder.setServiceHandlerHeader(concrete.getServiceHandlerHeader());
19         stubBuilder.setPathDescription(PathDescriptionConverter.getStub(concrete.getPathDescription()));
20         stubBuilder.setServiceName(concrete.getServiceName());
21         stubBuilder.setServiceAEnd(ServiceAEndConverter.getStub(concrete.getServiceAEnd()));
22         stubBuilder.setServiceZEnd(ServiceZEndConverter.getStub(concrete.getServiceZEnd()));
23         return stubBuilder.build();
24     }
25
26
27     public static org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426
28         .ServiceImplementationRequestInput getConcrete(ServiceImplementationRequestInput stub) {
29         org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426
30             .ServiceImplementationRequestInputBuilder concreteBuilder = new org.opendaylight.yang.gen.v1.http.org
31                 .transportpce.b.c._interface.servicepath.rev170426.ServiceImplementationRequestInputBuilder();
32         concreteBuilder.setServiceHandlerHeader(stub.getServiceHandlerHeader());
33         concreteBuilder.setPathDescription(PathDescriptionConverter.getConcrete(stub.getPathDescription()));
34         concreteBuilder.setServiceName(stub.getServiceName());
35         concreteBuilder.setServiceAEnd(ServiceAEndConverter.getConcrete(stub.getServiceAEnd()));
36         concreteBuilder.setServiceZEnd(ServiceZEndConverter.getConcrete(stub.getServiceZEnd()));
37         return concreteBuilder.build();
38     }
39
40     private ServiceImplementationRequestInputConverter() {
41     }
42
43 }