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