String result = "";
final InspectResult r = (InspectResult)o;
final MBeanFeatureInfoStringifierOptions options = new MBeanFeatureInfoStringifierOptions( r.includeDescription, ",");
result = result + "--- " + r.objectInstance.getObjectName().toString() + " ---";
if ( r.summary != null )
{
if ( result.length() != 0 )
{
result = result + "\n";
}
result = result + r.summary;
}
// Do formal terms like "Attributes" need to be I18n? Probabably not as they are part of a specification.
if ( r.attrInfo != null )
{
result = result + "\n\n- Attributes -" +
stringifyArray( r.attrInfo, new MBeanAttributeInfoStringifier(options) );
}
if ( r.operationsInfo != null )
{
result = result + "\n\n- Operations -" +
stringifyArray( r.operationsInfo, new MBeanOperationInfoStringifier(options) );
}
if ( r.constructorsInfo != null )
{
result = result + "\n\n- Constructors -" +
stringifyArray( r.constructorsInfo, new MBeanConstructorInfoStringifier(options) );
}
if ( r.notificationsInfo != null )
{
result = result + "\n\n- Notifications -" +
stringifyArray( r.notificationsInfo, new MBeanNotificationInfoStringifier(options) );
}
return( result );