public class DiagnosticUtil extends java.lang.Object
|Modifier and Type||Method and Description|
Given an object return instance of the diagnostic object for this class.
Return a diagnostic string associated with an object.
public static Diagnosticable findDiagnostic(java.lang.Object ref)
Given an object this routine will determine the classname of the object
and then try to instantiate a new instance of the diagnostic object
for this class by prepending on "D_" to the last element of theclassname.
If no matching class is found then the same lookup is made on the super-class
of the object, looking all the way up the hierachy until a diagnostic class
This routine will call "init(ref)" on the new instance and then return the new instance.
ref- The object which to build the diagnostic object for.
public static java.lang.String toDiagString(java.lang.Object obj)
A utility interface to use if you just want to print a single string that represents the object in question. In following order this routine will deliver the string to use: 1) find diagnostic help class, and use class.diag() 2) else just use class.toString()
obj- The object to print out.