2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.controller.sal.binding.yang.types;
\r
10 import org.opendaylight.controller.sal.binding.generator.spi.TypeProvider;
\r
11 import org.opendaylight.controller.sal.binding.model.api.Type;
\r
12 import org.opendaylight.controller.yang.model.api.TypeDefinition;
\r
14 public class TypeProviderImpl implements TypeProvider {
\r
19 * @see org.opendaylight.controller.yang.model.type.provider.TypeProvider#
\r
20 * javaTypeForYangType(java.lang.String)
\r
23 public Type javaTypeForYangType(String type) {
\r
24 Type t = BaseYangTypes.BASE_YANG_TYPES_PROVIDER
\r
25 .javaTypeForYangType(type);
\r
26 // TODO: this needs to be implemented in better way
\r
28 // t = BaseYangTypes.IETF_INET_TYPES_PROVIDER.javaTypeForYangType(type);
\r
34 public Type javaTypeForSchemaDefinitionType(final TypeDefinition<?> type) {
\r
36 Type t = BaseYangTypes.BASE_YANG_TYPES_PROVIDER
\r
37 .javaTypeForSchemaDefinitionType(type);
\r