/** * 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() { return new StringBuffer( 500 ).append( '{' ). append( this.internalString( this ) ). append( ", name=" ).append( this.name ). append( ", bound=" ).append( this.bound ). append( ", implementation=" ). append( this.implementation == null ? "null" : this.implementation.getIdentifier() + "@" + this.implementation.getVersion() ). append( ", specification=" ). append( this.specification == null ? "null" : this.specification.getIdentifier() + "@" + this.specification.getVersion() ). append( ", properties=" ).append( this.properties ). append( '}' ).toString(); }