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.ServiceAEnd;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubrenderer.rev170426.service.implementation.request.input.ServiceAEndBuilder;
13 public final class ServiceAEndConverter {
15 public static ServiceAEnd getStub(org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath
16 .rev170426.service.implementation.request.input.ServiceAEnd concrete) {
17 ServiceAEndBuilder stubBuilder = new ServiceAEndBuilder();
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();
28 public static org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.service
29 .implementation.request.input.ServiceAEnd getConcrete(ServiceAEnd stub) {
30 org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.service.implementation
31 .request.input.ServiceAEndBuilder concreteBuilder = new org.opendaylight.yang.gen.v1.http.org
32 .transportpce.b.c._interface.servicepath.rev170426.service.implementation.request.input
33 .ServiceAEndBuilder();
34 concreteBuilder.setClli(stub.getClli());
35 concreteBuilder.setNodeId(stub.getNodeId());
36 concreteBuilder.setRxDirection(stub.getRxDirection());
37 concreteBuilder.setServiceFormat(stub.getServiceFormat());
38 concreteBuilder.setServiceRate(stub.getServiceRate());
39 concreteBuilder.setTxDirection(stub.getTxDirection());
40 return concreteBuilder.build();
43 private ServiceAEndConverter() {