fix some compilation warnings
[transportpce.git] / servicehandler / src / test / java / org / opendaylight / transportpce / servicehandler / mappers / PathDescriptionConverter.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.PathDescription;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubrenderer.rev170426.service.implementation.request.input.PathDescriptionBuilder;
12
13 public final class PathDescriptionConverter {
14
15     public static PathDescription getStub(org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface
16             .servicepath.rev170426.service.implementation.request.input.PathDescription concrete) {
17         PathDescriptionBuilder stubBuilder = new PathDescriptionBuilder();
18         stubBuilder.setAToZDirection(concrete.getAToZDirection());
19         stubBuilder.setZToADirection(concrete.getZToADirection());
20         return stubBuilder.build();
21     }
22
23
24     public static org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.service
25         .implementation.request.input.PathDescription getConcrete(PathDescription stub) {
26         org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.service
27             .implementation.request.input.PathDescriptionBuilder concreteBuilder = new org.opendaylight.yang.gen.v1
28                 .http.org.transportpce.b.c._interface.servicepath.rev170426.service.implementation.request.input
29                     .PathDescriptionBuilder();
30         concreteBuilder.setAToZDirection(stub.getAToZDirection());
31         concreteBuilder.setZToADirection(stub.getZToADirection());
32         return concreteBuilder.build();
33     }
34
35     private PathDescriptionConverter() {
36     }
37 }