1 package org.opendaylight.controller.sal.rest.impl;
3 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
5 public final class RestUtil {
7 public final static TypeDefinition<?> resolveBaseTypeFrom(TypeDefinition<?> type) {
8 TypeDefinition<?> superType = type;
9 while (superType.getBaseType() != null) {
10 superType = superType.getBaseType();