public class BeanSourceFileProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG |
| Constructor and Description |
|---|
BeanSourceFileProcessor(String generateTargetDirName) |
| Modifier and Type | Method and Description |
|---|---|
protected List<EnumValue> |
createEnumValues(EnumPrototype bean) |
protected List<String> |
createImportList(BeanPrototype bean) |
protected List<MemberVariable> |
createMemberVariables(BeanPrototype bean,
Collection<PropertyPrototype> properties) |
protected VelocityContext |
createVelocityContext(ClassNameAware beanPrototype) |
protected VelocityContext |
decorateVelocityContext(VelocityContext ctx,
BeanPrototype bean) |
protected VelocityContext |
decorateVelocityContext(VelocityContext ctx,
EnumPrototype bean) |
void |
generateBeanSourceFile(ClassNameAware bean,
File velocityTemplateFile) |
protected File |
getFileFromClassName(String className) |
public BeanSourceFileProcessor(String generateTargetDirName)
public void generateBeanSourceFile(ClassNameAware bean, File velocityTemplateFile)
protected VelocityContext createVelocityContext(ClassNameAware beanPrototype)
protected VelocityContext decorateVelocityContext(VelocityContext ctx,
EnumPrototype bean)
protected VelocityContext decorateVelocityContext(VelocityContext ctx,
BeanPrototype bean)
protected List<MemberVariable> createMemberVariables(BeanPrototype bean, Collection<PropertyPrototype> properties)
protected List<EnumValue> createEnumValues(EnumPrototype bean)
protected List<String> createImportList(BeanPrototype bean)
Copyright © 2017 SAP SE. All Rights Reserved.