capitalise
protected String capitalise(String str)
getEncoding
protected String getEncoding()
getFieldsForClass
protected List getFieldsForClass(ModelClass modelClass)
Return the child fields of this class.
modelClass
- current class
- the list of fields of this class
getGeneratedVersion
protected Version getGeneratedVersion()
getModel
protected Model getModel()
getOutputDirectory
public File getOutputDirectory()
getParameter
protected String getParameter(Properties parameters,
String name)
getParameter
protected String getParameter(Properties parameters,
String name,
String defaultValue)
getParameter
protected String getParameter(String name,
Properties parameters)
isClassInModel
protected boolean isClassInModel(String fieldType,
Model model)
isCollection
protected boolean isCollection(String fieldType)
isEmpty
protected boolean isEmpty(String string)
isInnerAssociation
protected boolean isInnerAssociation(ModelField field)
isMap
protected boolean isMap(String fieldType)
isPackageWithVersion
protected boolean isPackageWithVersion()
newJSourceWriter
protected JSourceWriter newJSourceWriter(String packageName,
String className)
throws IOException
Create a new java source file writer, with configured encoding.
packageName
- the package of the source file to createclassName
- the class of the source file to create
- a JSourceWriter with configured encoding
singular
protected String singular(String name)
uncapitalise
public static String uncapitalise(String str)