fix some compilation warnings
[transportpce.git] / servicehandler / src / test / java / org / opendaylight / transportpce / servicehandler / mappers / ServiceZEndConverter.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.service.implementation.request.input.ServiceZEnd;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubrenderer.rev170426.service.implementation.request.input.ServiceZEndBuilder;
12
13 public final class ServiceZEndConverter {
14     public static ServiceZEnd getStub(
15         org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.service.implementation
16         .request.input.ServiceZEnd concrete) {
17         ServiceZEndBuilder stubBuilder = new ServiceZEndBuilder();
18         stubBuilder.setClli(concrete.getClli());
19         stubBuilder.setNodeId(concrete.getNodeId());
20         stubBuilder.setRxDirection(concrete.getRxDirection());
21         stubBuilder.setServiceFormat(concrete.getServiceFormat());
22         stubBuilder.setServiceRate(concrete.getServiceRate());
23         stubBuilder.setTxDirection(concrete.getTxDirection());
24         return stubBuilder.build();
25     }
26
27
28     public static
29         org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.service.implementation
30             .request.input.ServiceZEnd getConcrete(ServiceZEnd stub) {
31         org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.service.implementation
32             .request.input.ServiceZEndBuilder concreteBuilder =
33             new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.service
34             .implementation.request.input.ServiceZEndBuilder();
35         concreteBuilder.setClli(stub.getClli());
36         concreteBuilder.setNodeId(stub.getNodeId());
37         concreteBuilder.setRxDirection(stub.getRxDirection());
38         concreteBuilder.setServiceFormat(stub.getServiceFormat());
39         concreteBuilder.setServiceRate(stub.getServiceRate());
40         concreteBuilder.setTxDirection(stub.getTxDirection());
41         return concreteBuilder.build();
42     }
43
44     private ServiceZEndConverter(){
45     }
46 }