public final class CodeGeneratorImpl extends Object implements org.opendaylight.yangtools.yang2sources.spi.BasicCodeGenerator, org.opendaylight.yangtools.yang2sources.spi.BuildContextAware, org.opendaylight.yangtools.yang2sources.spi.MavenProjectAware
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_IGNORE_DUPLICATE_FILES |
static String |
CONFIG_PERSISTENT_SOURCES_DIR |
static String |
DEFAULT_OUTPUT_BASE_DIR_PATH |
Constructor and Description |
---|
CodeGeneratorImpl() |
Modifier and Type | Method and Description |
---|---|
Collection<File> |
generateSources(org.opendaylight.yangtools.yang.model.api.SchemaContext context,
File outputDir,
Set<org.opendaylight.yangtools.yang.model.api.Module> yangModules,
Function<org.opendaylight.yangtools.yang.model.api.Module,Optional<String>> moduleResourcePathResolver) |
void |
setAdditionalConfig(Map<String,String> additionalConfiguration) |
void |
setBuildContext(org.sonatype.plexus.build.incremental.BuildContext buildContext) |
void |
setMavenProject(org.apache.maven.project.MavenProject project) |
void |
setResourceBaseDir(File resourceBaseDir) |
public static final String CONFIG_PERSISTENT_SOURCES_DIR
public static final String CONFIG_IGNORE_DUPLICATE_FILES
public static final String DEFAULT_OUTPUT_BASE_DIR_PATH
public Collection<File> generateSources(org.opendaylight.yangtools.yang.model.api.SchemaContext context, File outputDir, Set<org.opendaylight.yangtools.yang.model.api.Module> yangModules, Function<org.opendaylight.yangtools.yang.model.api.Module,Optional<String>> moduleResourcePathResolver) throws IOException
generateSources
in interface org.opendaylight.yangtools.yang2sources.spi.BasicCodeGenerator
IOException
public void setAdditionalConfig(Map<String,String> additionalConfiguration)
setAdditionalConfig
in interface org.opendaylight.yangtools.yang2sources.spi.BasicCodeGenerator
public void setResourceBaseDir(File resourceBaseDir)
setResourceBaseDir
in interface org.opendaylight.yangtools.yang2sources.spi.BasicCodeGenerator
public void setMavenProject(org.apache.maven.project.MavenProject project)
setMavenProject
in interface org.opendaylight.yangtools.yang2sources.spi.MavenProjectAware
public void setBuildContext(org.sonatype.plexus.build.incremental.BuildContext buildContext)
setBuildContext
in interface org.opendaylight.yangtools.yang2sources.spi.BuildContextAware
Copyright © 2019 OpenDaylight. All rights reserved.