dsto.dfc.test
Class Stringifier
java.lang.Object
dsto.dfc.test.Stringifier
public class Stringifier
- extends Object
Used to generate a canonical textual representation of an object graph. The
objects are assumed to be either textual (numbers, strings, URL's, etc) or
composite types such as JavaBean's, Collection's and arrays. The canonical
forms generated by this class can be used to test for logical equivalence
across different object graphs or for browsing of object values.
- Version:
- $Revision$
- Author:
- mpp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stringifier
public Stringifier()
stringify
public String stringify(Object object)
throws IllegalArgumentException
- generate a canonical textual version of an object graph.
- Parameters:
object
- The object to textify.
- Returns:
- The textual version of the object.
- Throws:
IllegalArgumentException
- if an error ocurred while introspecting
the object or a child.
Copyright © 2008 Commonwealth of Australia