public final class TranslatorUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static TempJavaBeanFragmentFiles |
getBeanFiles(JavaCodeGeneratorInfo info)
Returns bean temp files for JAVA code generator info.
|
static TempJavaBeanFragmentFiles |
getBeanFiles(org.onosproject.yang.compiler.datamodel.YangNode curNode)
Returns bean temp files for YANG node.
|
static String |
getEnumYangName(String name)
Returns enum YANG attribute name for given javaName.
|
static String |
getErrorMsg(TranslatorErrorType errorType,
org.onosproject.yang.compiler.datamodel.YangSchemaNode node)
Returns translator error message string with location information for
YANG schema node.
|
static String |
getErrorMsg(TranslatorErrorType errorType,
org.onosproject.yang.compiler.datamodel.YangSchemaNode node,
String localizedMsg)
Returns translator error message string with location information for
YANG schema node with localized message.
|
static String |
getErrorMsgForCodeGenerator(TranslatorErrorType errorType,
org.onosproject.yang.compiler.datamodel.LocationInfo location)
Returns translator error message string with location information for
JAVA code generator info.
|
static TempJavaTypeFragmentFiles |
getTypeFiles(org.onosproject.yang.compiler.datamodel.YangNode curNode)
Returns type temp files for YANG node.
|
public static String getErrorMsg(TranslatorErrorType errorType, org.onosproject.yang.compiler.datamodel.YangSchemaNode node, String localizedMsg)
errorType - type of translator errornode - YANG schema nodelocalizedMsg - localized messagepublic static String getErrorMsg(TranslatorErrorType errorType, org.onosproject.yang.compiler.datamodel.YangSchemaNode node)
errorType - type of translator errornode - YANG schema nodepublic static String getErrorMsgForCodeGenerator(TranslatorErrorType errorType, org.onosproject.yang.compiler.datamodel.LocationInfo location)
errorType - type of translator errorlocation - node with location infopublic static TempJavaBeanFragmentFiles getBeanFiles(org.onosproject.yang.compiler.datamodel.YangNode curNode)
curNode - current YANG nodepublic static TempJavaBeanFragmentFiles getBeanFiles(JavaCodeGeneratorInfo info)
info - JAVA code generator infopublic static TempJavaTypeFragmentFiles getTypeFiles(org.onosproject.yang.compiler.datamodel.YangNode curNode)
curNode - current YANG nodeCopyright © 2018. All rights reserved.