protected StringBuilder addToStringAttributes ( String faxJobType ) { //init buffer StringBuilder buffer = new StringBuilder ( 500 ) ; buffer . append ( faxJobType ) ; buffer . append ( ":" ) ; //append values buffer . append ( Logger . SYSTEM_EOL ) ; buffer . append ( "ID: " ) ; buffer . append ( this . getID ( ) ) ; buffer . append ( Logger . SYSTEM_EOL ) ; buffer . append ( "File: " ) ; buffer . append ( this . getFilePath ( ) ) ; buffer . append ( Logger . SYSTEM_EOL ) ; buffer . append ( "Priority: " ) ; buffer . append ( this . getPriority ( ) ) ; buffer . append ( Logger . SYSTEM_EOL ) ; buffer . append ( "Target Address: " ) ; buffer . append ( this . getTargetAddress ( ) ) ; buffer . append ( Logger . SYSTEM_EOL ) ; buffer . append ( "Target Name: " ) ; buffer . append ( this . getTargetName ( ) ) ; buffer . append ( Logger . SYSTEM_EOL ) ; buffer . append ( "Sender Name: " ) ; buffer . append ( this . getSenderName ( ) ) ; buffer . append ( Logger . SYSTEM_EOL ) ; buffer . append ( "Sender Fax Number: " ) ; buffer . append ( this . getSenderFaxNumber ( ) ) ; buffer . append ( Logger . SYSTEM_EOL ) ; buffer . append ( "Sender Email: " ) ; buffer . append ( this . getSenderEmail ( ) ) ; return buffer ; }
This function adds the common attributes for the toString printing .