public final class JavaCodeGeneratorUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
generateJavaCode(YangNode rootNode,
YangPluginConfig yangPlugin)
Generates Java code files corresponding to the YANG schema.
|
static YangNode |
getCurNode()
Returns current YANG node.
|
static YangNode |
searchYangNode(YangNode parentNode,
YangNodeType nodeType,
String nodeName)
Searches child node in data model tree.
|
static void |
setCurNode(YangNode node)
Sets current YANG node.
|
static void |
translatorErrorHandler(YangNode rootNode,
YangPluginConfig yangPluginConfig)
Delete Java code files corresponding to the YANG schema.
|
public static YangNode getCurNode()
public static void setCurNode(YangNode node)
node - current YANG nodepublic static void generateJavaCode(YangNode rootNode, YangPluginConfig yangPlugin) throws TranslatorException, IOException
rootNode - root node of the data model treeyangPlugin - YANG plugin configTranslatorException - when fails to generate java code file the current nodeIOException - when fails to do IO operationspublic static void translatorErrorHandler(YangNode rootNode, YangPluginConfig yangPluginConfig) throws IOException
rootNode - root node of data-model treeyangPluginConfig - plugin configurationsIOException - when fails to delete java code file the current nodepublic static YangNode searchYangNode(YangNode parentNode, YangNodeType nodeType, String nodeName)
parentNode - parent nodenodeType - node typenodeName - node nameCopyright © 2016. All rights reserved.