public final class GeneratorJavaFile extends Object
| Constructor and Description | 
|---|
GeneratorJavaFile(org.sonatype.plexus.build.incremental.BuildContext buildContext,
                 Collection<? extends Type> types)
Creates instance of this class with the set of  
types for
 which the JAVA code is generated. | 
GeneratorJavaFile(Collection<? extends Type> types)
Creates instance of this class with the set of  
types for
 which the JAVA code is generated. | 
| Modifier and Type | Method and Description | 
|---|---|
List<File> | 
generateToFile(File generatedSourcesDirectory)
Generates list of files with JAVA source code. 
 | 
List<File> | 
generateToFile(File generatedSourcesDirectory,
              File persistenSourcesDirectory)  | 
static File | 
packageToDirectory(File parentDirectory,
                  String packageName)
Creates the package directory path as concatenation of
  
parentDirectory and parsed packageName. | 
public GeneratorJavaFile(org.sonatype.plexus.build.incremental.BuildContext buildContext,
                         Collection<? extends Type> types)
types for
 which the JAVA code is generated.
 The instances of concrete JAVA code generator are created.buildContext - build context to use for accessing filestypes - set of types for which JAVA code should be generatedpublic GeneratorJavaFile(Collection<? extends Type> types)
types for
 which the JAVA code is generated. Generator instantiated this way uses
 the default build context, e.g. it will re-generate any and all files.
 The instances of concrete JAVA code generator are created.types - set of types for which JAVA code should be generatedpublic List<File> generateToFile(File generatedSourcesDirectory) throws IOException
generatedSourcesDirectory - directory to which the output source codes should be generatedIOException - if the error during writing to the file occurspublic List<File> generateToFile(File generatedSourcesDirectory, File persistenSourcesDirectory) throws IOException
IOExceptionpublic static File packageToDirectory(File parentDirectory, String packageName)
parentDirectory and parsed packageName. The
 parsing of packageName is realized as replacement of the
 package name dots with the file system separator.parentDirectory - File object with reference to parent directorypackageName - string with the name of the packageFile object which refers to the new directory for
         package packageNameCopyright © 2018 OpenDaylight. All rights reserved.