- java.lang.Object
-
- org.tentackle.model.print.AttributePrinter
-
public class AttributePrinter extends java.lang.ObjectPretty 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 java.lang.StringprintColumnName()Prints the attribute's column name.java.lang.StringprintComment()Prints the attribute's comment string.java.lang.StringprintJavaName()Prints the attribute's java name.java.lang.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 java.lang.String printType()
Prints the attribute's type.- Returns:
- the type
-
printJavaName
public java.lang.String printJavaName()
Prints the attribute's java name.- Returns:
- the name
-
printColumnName
public java.lang.String printColumnName()
Prints the attribute's column name.- Returns:
- the column
-
printComment
public java.lang.String printComment()
Prints the attribute's comment string.- Returns:
- the comment
-
-