public final class YangPluginConfig extends Object
| Constructor and Description |
|---|
YangPluginConfig()
Creates an object for YANG plugin config.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
compileCode(String dir1)
TODO: delete me, it is not part of config, it needs to be updated for
test scripts
Compiles the generated code for unit tests.
|
String |
getCodeGenDir()
Returns the code generation directory path.
|
String |
getCodeGenerateForSbi()
Returns the string for code generation.
|
String |
getCodeGenPackage() |
YangToJavaNamingConflictUtil |
getConflictResolver()
Returns the object.
|
String |
getFormat() |
String |
getYangFilesDir() |
String |
resourceGenDir() |
void |
resourceGenDir(String resourceGenDir) |
void |
setCodeGenDir(String codeGenDir)
Sets the path of the java code where it has to be generated.
|
void |
setCodeGenerateForSbi(String codeGenerateForSbi)
Sets the string sbi or nbi for code generation.
|
void |
setCodeGenPackage(String codeGenPackage) |
void |
setConflictResolver(YangToJavaNamingConflictUtil conflictResolver)
Sets the object.
|
void |
setFormat(String format) |
void |
setYangFilesDir(String yangFilesDir) |
public YangPluginConfig()
public String getCodeGenerateForSbi()
public void setCodeGenerateForSbi(String codeGenerateForSbi)
codeGenerateForSbi - generation is for sbipublic void setCodeGenDir(String codeGenDir)
codeGenDir - path of the directorypublic String getCodeGenDir()
public void setConflictResolver(YangToJavaNamingConflictUtil conflictResolver)
conflictResolver - object of the classpublic YangToJavaNamingConflictUtil getConflictResolver()
public String getYangFilesDir()
public void setYangFilesDir(String yangFilesDir)
public String resourceGenDir()
public void resourceGenDir(String resourceGenDir)
public String getFormat()
public String getCodeGenPackage()
public void setCodeGenPackage(String codeGenPackage)
public void setFormat(String format)
public static void compileCode(String dir1) throws IOException
dir1 - directory pathIOException - when generated code has compilation errors.Copyright © 2021 airlenet. All rights reserved.