public class BeanWriter extends Object
Constructor and Description |
---|
BeanWriter() |
Modifier and Type | Method and Description |
---|---|
static void |
setGenerateFromEDINR(boolean generateFromEDINR) |
static void |
writeBeans(ClassModel model,
Writer writer)
Iterates through all classes defined in ClassModel and write all the beans to the
supplied writer.
|
static void |
writeBeansToFolder(ClassModel model,
String folder,
String bindingFile)
Iterates through all classes defined in ClassModel.
|
public static void setGenerateFromEDINR(boolean generateFromEDINR)
public static void writeBeansToFolder(ClassModel model, String folder, String bindingFile) throws IOException, IllegalNameException
model
- the ClassModel
.folder
- the output folder for generated classes.bindingFile
- the name of the smooks configuration.IOException
- when error ocurrs while saving the implemented class to filesystem.IllegalNameException
- when class is a keyword in java.public static void writeBeans(ClassModel model, Writer writer) throws IOException, IllegalNameException
model
- The ClassModel
.writer
- The writer.IOException
- when error ocurrs while saving the implemented class to filesystem.IllegalNameException
- when class is a keyword in java.Copyright © 2020. All rights reserved.