2 * Copyright © 2018 Orange, Inc. and others. All rights reserved.
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
8 package org.opendaylight.transportpce.servicehandler.mappers;
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;
13 public final class PathDescriptionConverter {
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();
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();
35 private PathDescriptionConverter() {