/** * 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( 500 ).append( '{' ). append( this.internalString( this ) ). append( ", index=" ).append( this.index ). append( ", name=" ).append( this.name ). append( ", type=" ); if ( this.type == TYPE_NUMBER ) { buf.append( "number" ); } else if ( this.type == TYPE_DATE ) { buf.append( "date" ); } else if ( this.type == TYPE_TIME ) { buf.append( "time" ); } else if ( this.type == TYPE_TEXT ) { buf.append( "text" ); } return buf.append( '}' ).toString(); }