public class KurentoModuleCreator extends Object
| Constructor and Description |
|---|
KurentoModuleCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependencyKmdFile(Path dependencyKmdFile) |
void |
addDependencyKmdFileToGen(Path kmdFile) |
void |
addKmdFileToGen(Path kmdFile) |
Result |
generateCode()
Genarates the code.
|
ModuleManager |
getDepModuleManager() |
String |
getInternalTemplates() |
ModuleManager |
getModuleManager() |
boolean |
hasToGenerateCode() |
static com.google.gson.JsonObject |
loadConfigFile(Path configFile) |
void |
loadModulesFromKmdFiles() |
void |
printSimpleKmd() |
void |
printValues(String[] keys) |
void |
setCodeGenDir(Path codegenDir) |
void |
setConfig(com.google.gson.JsonObject config) |
void |
setDeleteGenDir(boolean deleteGenDir) |
void |
setDependencyKmdFiles(List<Path> dependencyKmdFiles) |
void |
setDependencyKmdFilesToGen(List<Path> dependencyFilesToGen) |
void |
setGenerateMavenPom(boolean hasOption) |
void |
setGenerateNpmPackage(boolean hasOption) |
void |
setInternalTemplates(String internalTemplates) |
void |
setKmdFilesToGen(List<Path> kmdFiles) |
void |
setListGeneratedFiles(boolean listGeneratedFiles) |
void |
setOutputFile(Path outputModuleFile) |
void |
setOverwrite(boolean overwrite) |
void |
setTemplatesDir(Path templatesDir) |
void |
setVerbose(boolean verbose) |
public ModuleManager getModuleManager()
public ModuleManager getDepModuleManager()
public void setInternalTemplates(String internalTemplates)
public String getInternalTemplates()
public void addKmdFileToGen(Path kmdFile)
public void addDependencyKmdFileToGen(Path kmdFile)
public void setConfig(com.google.gson.JsonObject config)
public void setCodeGenDir(Path codegenDir)
public void setTemplatesDir(Path templatesDir)
public void setVerbose(boolean verbose)
public void setDeleteGenDir(boolean deleteGenDir)
public void addDependencyKmdFile(Path dependencyKmdFile)
public void setListGeneratedFiles(boolean listGeneratedFiles)
public void setOverwrite(boolean overwrite)
public boolean hasToGenerateCode()
public Result generateCode() throws com.google.gson.JsonIOException, IOException
com.google.gson.JsonIOException - if there is an error parsing kmd'sIOException - if there is an error reading kmd'spublic static com.google.gson.JsonObject loadConfigFile(Path configFile) throws com.google.gson.JsonIOException, IOException
com.google.gson.JsonIOExceptionIOExceptionpublic void loadModulesFromKmdFiles()
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionpublic void printValues(String[] keys) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic void printSimpleKmd()
throws FileNotFoundException,
IOException,
NoSuchAlgorithmException
public void setOutputFile(Path outputModuleFile)
public void setGenerateMavenPom(boolean hasOption)
public void setGenerateNpmPackage(boolean hasOption)
Copyright © 2016. All rights reserved.