- java.lang.Object
-
- org.tentackle.model.print.AttributePrinter
-
public class AttributePrinter extends Object
Pretty printer for attribute lines.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description AttributePrinter(Attribute attribute, PrintConfiguration configuration)Creates an attribute printer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringprintColumnName()Prints the attribute's column name.StringprintComment()Prints the attribute's comment string.StringprintJavaName()Prints the attribute's java name.StringprintType()Prints the attribute's type.
-
-
-
Constructor Detail
-
AttributePrinter
public AttributePrinter(Attribute attribute, PrintConfiguration configuration)
Creates an attribute printer.- Parameters:
attribute- the attributeconfiguration- the printing configuration
-
-
Method Detail
-
printType
public String printType()
Prints the attribute's type.- Returns:
- the type
-
printJavaName
public String printJavaName()
Prints the attribute's java name.- Returns:
- the name
-
printColumnName
public String printColumnName()
Prints the attribute's column name.- Returns:
- the column
-
printComment
public String printComment()
Prints the attribute's comment string.- Returns:
- the comment
-
-