Package org.opendaylight.yangtools.plugin.generator.api
API exposed by generator plugins, i.e. pluggable pieces of code which want to create code (and other) files from an
EffectiveModelContext
.
The primary entry point is FileGeneratorFactory
, which needs
to be implemented for bootstrapping a particular generator. Such implementations are discovered using normal
discovery methods, for example they should always be published as ServiceLoader
services.
-
Interface Summary Interface Description FileGenerator Interface implemented by plugins which can generate files from aEffectiveModelContext
.FileGeneratorFactory AServiceLoader
factory for instantiatingFileGenerator
instances.GeneratedFile The contents of a generated file and itsGeneratedFileLifecycle
.ModuleResourceResolver An SPI-level interface to find the schema source for a particular YANG module, as packaged in the final artifact. -
Class Summary Class Description AbstractFileGeneratorFactory Abstract base class forFileGeneratorFactory
implementations.AbstractGeneratedFile Abstract base class forGeneratedFile
s.AbstractGeneratedTextFile The contents of a generated file and itsGeneratedFileLifecycle
.GeneratedFilePath A relative path to a generated file.GeneratedFileType Type of generated file. -
Enum Summary Enum Description FileGenerator.ImportResolutionMode EffectiveModelContext
can be assembled in multiple ways, we hold known modes here.GeneratedFileLifecycle Lifecycle policy of a generated file. -
Exception Summary Exception Description FileGeneratorException An exception reporting a problem with file generation.