org.milyn.ejc
Class BeanWriter
java.lang.Object
org.milyn.ejc.BeanWriter
public class BeanWriter
- extends Object
BeanWriter writes all classes found in ClassModel to filesystem.
- Author:
- bardl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanWriter
public BeanWriter()
setGenerateFromEDINR
public static void setGenerateFromEDINR(boolean generateFromEDINR)
writeBeansToFolder
public static void writeBeansToFolder(ClassModel model,
String folder,
String bindingFile)
throws IOException,
IllegalNameException
- Iterates through all classes defined in ClassModel. For each class it generates the class
implementation and saves the new class to filesystem.
- Parameters:
model - the ClassModel.folder - the output folder for generated classes.bindingFile - the name of the smooks configuration.
- Throws:
IOException - when error ocurrs while saving the implemented class to filesystem.
IllegalNameException - when class is a keyword in java.
writeBeans
public static void writeBeans(ClassModel model,
Writer writer)
throws IOException,
IllegalNameException
- Iterates through all classes defined in ClassModel and write all the beans to the
supplied writer.
Used mainly for test purposes.
- Parameters:
model - The ClassModel.writer - The writer.
- Throws:
IOException - when error ocurrs while saving the implemented class to filesystem.
IllegalNameException - when class is a keyword in java.
Copyright © 2011. All Rights Reserved.