@Mojo(name="yang2java",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE,
requiresProject=true)
public class YangUtilManager
extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
YangUtilManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
createYangFileInfoSet(List<String> yangFileList)
Creates a YANG file info set.
|
void |
execute() |
void |
parseYangFileInfoSet()
Parses all the provided YANG files and generates YANG data model tree.
|
void |
resolveDependenciesUsingLinker()
Links all the provided with the YANG file info set.
|
void |
translateToJava(YangPluginConfig yangPlugin)
Translates to java code corresponding to the YANG schema.
|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic void resolveDependenciesUsingLinker()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - a violation in mojo executionpublic void parseYangFileInfoSet()
throws IOException
IOException - a violation in IOpublic void translateToJava(YangPluginConfig yangPlugin) throws IOException
yangPlugin - YANG plugin configIOException - when fails to generate java code file the current nodeCopyright © 2016. All rights reserved.