public class YangToolManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_JAR_RES_PATH |
static String |
SERIALIZED_FILE_EXTENSION |
static String |
YANG_META_DATA |
| Constructor and Description |
|---|
YangToolManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
compileYangFiles(Set<YangFileInfo> yangFiles,
List<YangNode> dependentSchema,
YangPluginConfig config,
CallablePlugin plugin)
Compile te YANG files and generate the corresponding Java files.
|
Set<YangFileInfo> |
createYangFileInfoSet(List<String> yangFileList)
Creates a YANG file info set.
|
void |
createYangNodeSet()
Creates YANG nodes set.
|
void |
parseYangFileInfoSet()
Parses all the provided YANG files and generates YANG data model tree.
|
void |
resolveDependenciesUsingLinker()
Links all the provided schema in the YANG file info set.
|
void |
translateToJava(YangPluginConfig pluginConfig)
Translates to java code corresponding to the YANG schema.
|
public static final String DEFAULT_JAR_RES_PATH
public static final String YANG_META_DATA
public static final String SERIALIZED_FILE_EXTENSION
public Set<YangFileInfo> createYangFileInfoSet(List<String> yangFileList)
yangFileList - YANG files listpublic void compileYangFiles(Set<YangFileInfo> yangFiles, List<YangNode> dependentSchema, YangPluginConfig config, CallablePlugin plugin) throws IOException
yangFiles - Application YANG filesdependentSchema - inter jar linked schema nodesconfig - tool configurationplugin - invoking pluginIOException - when fails to do IO operationspublic void resolveDependenciesUsingLinker()
YangToolException - failed to link schemapublic void createYangNodeSet()
public void parseYangFileInfoSet()
throws IOException
IOException - a violation in IOpublic void translateToJava(YangPluginConfig pluginConfig) throws IOException
pluginConfig - YANG plugin configIOException - when fails to generate java code file the current nodeCopyright © 2016. All rights reserved.