Formatter variables

A variable of type Formatter provides additional formatting capability. It has the following variables:

Name Type Description
cla method returning a String scalar, requiring parameter:
String name - the name to format
Returns the specified name formatted as a Java class name.
att method returning a String scalar, requiring parameter:
String name - the name to format
Returns the specified name formatted as a Java attribute name.
tab method returning a String scalar, requiring parameter:
String name - the name to format
Returns the specified name formatted as a database table name.
col method returning a String scalar, requiring parameter:
String name - the name to format
Returns the specified name formatted as a database column name.
des method returning a String scalar, requiring parameter:
String name - the name to format
Returns the specified name formatted as a description.
formatLines method returning a String scalar, requiring parameter:
String string - the string to format
String prefix - the prefix for each line
Number maxLineLength - the maximum length of each formatted line, including the prefix
Returns a string that is the result of formatting the specified string into lines of the specified maximum length, with the specified prefix added to the beginning of each line.

Related concepts

Template data model

Related tasks

Customising a template