net.spy.util
Class ObjectDump

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.util.ObjectDump

public class ObjectDump
extends SpyObject

Dump an object and all of its contents.


Constructor Summary
ObjectDump()
          Get an instance of ObjectDump.
 
Method Summary
 void dumpObject(java.lang.Object o)
          Dump the given object.
protected  void reportDuplicate(java.lang.String path, java.lang.String prevPath, java.lang.Object o)
          Report a duplicate object at the given path.
protected  void reportExamining(java.lang.String path, java.lang.Object o)
          Report that the given object is being examined.
protected  void reportException(java.lang.String path, java.lang.Object o, java.lang.Exception e)
          Report an exception traversing an object.
protected  void reportNull(java.lang.String path)
          Report a path's value is null.
protected  void reportPrimitive(java.lang.String path, java.lang.Object v)
          Report a primitive was found.
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectDump

public ObjectDump()
Get an instance of ObjectDump.

Method Detail

reportExamining

protected void reportExamining(java.lang.String path,
                               java.lang.Object o)
Report that the given object is being examined.

Parameters:
path - the path to the object
o - the object

reportPrimitive

protected void reportPrimitive(java.lang.String path,
                               java.lang.Object v)
Report a primitive was found.

Parameters:
path - the path to the primitive
v - the value of the primitive

reportNull

protected void reportNull(java.lang.String path)
Report a path's value is null.

Parameters:
path - the path

reportDuplicate

protected void reportDuplicate(java.lang.String path,
                               java.lang.String prevPath,
                               java.lang.Object o)
Report a duplicate object at the given path.

Parameters:
path - the path of the duplicate
prevPath - the first seen path of this object
o - the object itself

reportException

protected void reportException(java.lang.String path,
                               java.lang.Object o,
                               java.lang.Exception e)
Report an exception traversing an object.

Parameters:
path - the path of the object
o - the object
e - the exception that occurred

dumpObject

public void dumpObject(java.lang.Object o)
Dump the given object.



Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.