public class PrintConfiguration extends Object
| Constructor and Description |
|---|
PrintConfiguration(boolean printingAsComment,
boolean usingVariables,
ModelDefaults modelDefaults,
List<String> optionAnnotations,
int columnGap)
Creates a printing configuration.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnGap()
Gets the minimum number of spaces between columns in attribute section.
|
ModelDefaults |
getModelDefaults()
Gets the model defaults.
|
List<String> |
getOptionAnnotations()
Gets the annotations that should be printed as attribute options.
|
boolean |
isOptionAnnotation(String annotation)
Returns whether given annotation should be printed as an attribute option.
|
boolean |
isPrintingAsComment()
Returns whether generated output is a comment block.
|
boolean |
isUsingVariables()
Returns whether variables should be used.
|
public PrintConfiguration(boolean printingAsComment,
boolean usingVariables,
ModelDefaults modelDefaults,
List<String> optionAnnotations,
int columnGap)
printingAsComment - create a comment blockusingVariables - use variables for tablename, classid and mappingmodelDefaults - the model defaults, null if noneoptionAnnotations - annotations that should be printed as attribute optionscolumnGap - minimum number of spaces between columns in attribute sectionpublic boolean isPrintingAsComment()
public boolean isUsingVariables()
public ModelDefaults getModelDefaults()
public List<String> getOptionAnnotations()
public int getColumnGap()
public boolean isOptionAnnotation(String annotation)
annotation - the annotation stringTentackle - a domain driven enterprise framework