/** * Returns a string representation of the object. * * @return a string representation of the object. */ public String toString() { return super.toString() + this.internalString(); }
/** * Creates a string representing the properties of the instance. * * @return a string representing the properties of the instance. */ private String internalString() { final StringBuffer buf = new StringBuffer( 200 ).append( '{' ); buf.append( this.internalString( this ) ); final Property[] props = this.getProperties(); for ( int i = props.length - 1; i >= 0; i-- ) { buf.append( ", [" ).append( i ).append( "]=" ).append( props[i] ); } buf.append( '}' ); return buf.toString(); }