public final class BindingGeneratorUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static long | computeDefaultSUID(GeneratedTypeBuilderBase<?> to) | 
| static String | encodeAngleBrackets(String description)Encodes angle brackets in yang statement description | 
| static Restrictions | getRestrictions(org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> type) | 
| static String | moduleNamespaceToPackageName(org.opendaylight.yangtools.yang.model.api.Module module)Deprecated. 
 USe  BindingMapping.getRootPackageName(QNameModule)withModule.getQNameModule(). | 
| static String | packageNameForAugmentedGeneratedType(String basePackageName,
                                    org.opendaylight.yangtools.yang.model.api.SchemaPath schemaPath)Creates package name from specified  basePackageName(package
 name for module) andschemaPathwhich crosses an augmentation. | 
| static String | packageNameForGeneratedType(String basePackageName,
                           org.opendaylight.yangtools.yang.model.api.SchemaPath schemaPath)Creates package name from specified  basePackageName(package
 name for module) andschemaPath. | 
| static String | packageNameForGeneratedType(String basePackageName,
                           org.opendaylight.yangtools.yang.model.api.SchemaPath schemaPath,
                           boolean isUsesAugment)Deprecated. 
 | 
| static String | packageNameForTypeDefinition(String basePackageName,
                            org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> typeDefinition)Deprecated. 
 This method ignores typeDefinition argument and its result is only
              BindingMapping.normalizePackageName(basePackageName).
             Aside from tests, there is not a single user in OpenDaylight codebase,
             hence it can be considered buggy and defunct. It is scheduled for removal
             in Boron release. | 
| static String | parseToClassName(String token)Deprecated. 
 Use  BindingMapping.getClassName(QName)instead. | 
| static String | parseToValidParamName(String token)Deprecated. 
 Use  BindingMapping.getPropertyName(String)instead. | 
| static String | replaceAllIllegalChars(CharSequence stringBuilder) | 
| static String | resolveJavaReservedWordEquivalency(String parameterName)Converts  parameterNameto valid JAVA parameter name. | 
public static String resolveJavaReservedWordEquivalency(String parameterName)
parameterName to valid JAVA parameter name.
 If the parameterName is one of the JAVA reserved words then
 it is prefixed with underscore character.parameterName - string with the parameter name@Deprecated public static String moduleNamespaceToPackageName(org.opendaylight.yangtools.yang.model.api.Module module)
BindingMapping.getRootPackageName(QNameModule) with Module.getQNameModule().module - module which contains data about namespace and revision dateIllegalArgumentException - if the revision date of the module equals
             nullpublic static String packageNameForGeneratedType(String basePackageName, org.opendaylight.yangtools.yang.model.api.SchemaPath schemaPath)
basePackageName (package
 name for module) and schemaPath.
 Resulting package name is concatenation of basePackageName
 and all local names of YANG nodes which are parents of some node for
 which schemaPath is specified.basePackageName - string with package name of the module, MUST be normalized,
            otherwise this method may return an invalid string.schemaPath - list of names of YANG nodes which are parents of some node +
            name of this nodeNullPointerException - if any of the arguments are nullpublic static String packageNameForAugmentedGeneratedType(String basePackageName, org.opendaylight.yangtools.yang.model.api.SchemaPath schemaPath)
basePackageName (package
 name for module) and schemaPath which crosses an augmentation.
 Resulting package name is concatenation of basePackageName
 and all local names of YANG nodes which are parents of some node for
 which schemaPath is specified.basePackageName - string with package name of the module, MUST be normalized,
            otherwise this method may return an invalid string.schemaPath - list of names of YANG nodes which are parents of some node +
            name of this nodeNullPointerException - if any of the arguments are null@Deprecated public static String packageNameForGeneratedType(String basePackageName, org.opendaylight.yangtools.yang.model.api.SchemaPath schemaPath, boolean isUsesAugment)
packageNameForGeneratedType(String, SchemaPath) or
             packageNameForAugmentedGeneratedType(String, SchemaPath) instead.basePackageName (package
 name for module) and schemaPath.
 Resulting package name is concatenation of basePackageName
 and all local names of YANG nodes which are parents of some node for
 which schemaPath is specified.basePackageName - string with package name of the moduleschemaPath - list of names of YANG nodes which are parents of some node +
            name of this nodeisUsesAugment - boolean true if using augment@Deprecated public static String packageNameForTypeDefinition(String basePackageName, org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> typeDefinition)
BindingMapping.normalizePackageName(basePackageName).
             Aside from tests, there is not a single user in OpenDaylight codebase,
             hence it can be considered buggy and defunct. It is scheduled for removal
             in Boron release.typeDefinition and basePackageName.basePackageName - string with the package name of the moduletypeDefinition - type definition for which the package name will be generated *IllegalArgumentException - basePackageName equals nulltypeDefinition equals null@Deprecated public static String parseToClassName(String token)
BindingMapping.getClassName(QName) instead.token to string which is in accordance with best
 practices for JAVA class names.token - string which contains characters which should be converted to
            JAVA class name@Deprecated public static String parseToValidParamName(String token)
BindingMapping.getPropertyName(String) instead.token to string which is in accordance with best
 practices for JAVA parameter names.token - string which contains characters which should be converted to
            JAVA parameter namepublic static long computeDefaultSUID(GeneratedTypeBuilderBase<?> to)
public static Restrictions getRestrictions(org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> type)
public static String encodeAngleBrackets(String description)
description - description of a yang statement which is used to generate javadoc commentspublic static String replaceAllIllegalChars(CharSequence stringBuilder)
Copyright © 2019 OpenDaylight. All rights reserved.