private void toFlatSummary ( final String indent , final StringBuffer buffer ) { buffer . append ( indent ) ; ObjectGraphNode root = ( ObjectGraphNode ) getRoot ( ) ; double pct = 100.0 * getSize ( ) / root . getSize ( ) ; buffer . append ( getSize ( ) ) . append ( " (" ) ; buffer . append ( new DecimalFormat ( "0.0" ) . format ( pct ) ) ; buffer . append ( "%) - " ) . append ( getFieldName ( ) ) . append ( " - " ) ; if ( getRefNode ( ) != null ) { buffer . append ( "ref (" ) . append ( getRefNode ( ) . getValue ( ) . getClass ( ) . getName ( ) ) . append ( ' ' ) ; } else if ( getValue ( ) == null ) { buffer . append ( "null (" ) . append ( getType ( ) ) . append ( ' ' ) ; } else { buffer . append ( getType ( ) ) ; } buffer . append ( ' ' ) ; String newIndent = indent + " " ; for ( int i = 0 ; i < getChildCount ( ) ; i ++ ) { ( ( ObjectGraphNode ) getChildAt ( i ) ) . toFlatSummary ( newIndent , buffer ) ; } }
Generates a flat format summary XML representation of this ObjectGraphNode .