2 * Copyright (c) 2014 Cisco Systems, 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.yangtools.sal.binding.generator.util;
10 import java.util.List;
12 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
13 import org.opendaylight.yangtools.yang.model.api.type.UnionTypeDefinition;
15 public final class XtendHelper {
16 private XtendHelper() {
17 throw new UnsupportedOperationException("Utility class should not be instantiated");
20 @SuppressWarnings({"rawtypes","unchecked"})
21 public static Iterable<TypeDefinition> getTypes(final UnionTypeDefinition definition) {
22 return (List) definition.getTypes();