1 package org.opendaylight.controller.sal.binding.codegen.impl;
5 import org.opendaylight.yangtools.yang.binding.BaseIdentity;
6 import org.opendaylight.yangtools.yang.binding.RpcService;
7 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
8 import org.opendaylight.yangtools.yang.model.api.type.UnionTypeDefinition;
10 public class XtendHelper {
12 public static <C extends BaseIdentity> RpcRoutingTableImpl createRoutingTable(
14 return new RpcRoutingTableImpl<>(cls);
17 @SuppressWarnings({"rawtypes","unchecked"})
18 public static Iterable<TypeDefinition> getTypes(UnionTypeDefinition definition) {
19 return (Iterable<TypeDefinition>) (List) definition.getTypes();