org.filteredpush.rdf.reflection
Class DeconstructedObjectGraph

java.lang.Object
  extended by org.filteredpush.rdf.reflection.DeconstructedObjectGraph
All Implemented Interfaces:
java.lang.Iterable<DeconstructedObject>

public class DeconstructedObjectGraph
extends java.lang.Object
implements java.lang.Iterable<DeconstructedObject>

Represents all of the objects associated with a top level class (the entire java object tree from that object on) as a collection of DeconstructedObjects.

Author:
dlowery

Constructor Summary
DeconstructedObjectGraph()
          Constructor initializes the Map object.
 
Method Summary
 void add(java.lang.Object o, ClassMembers members)
          Add an object and its ClassMembers to the object graph.
 java.util.List<DeconstructedObject> getDeconstructedObjects(java.lang.Class<?> clazz)
          Returns the corresponding list of DeconstructedObjects associated with the Class given as an argument.
 java.util.Iterator<DeconstructedObject> iterator()
          Iterator for the DeconstructedObjects.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeconstructedObjectGraph

public DeconstructedObjectGraph()
Constructor initializes the Map object.

Method Detail

getDeconstructedObjects

public java.util.List<DeconstructedObject> getDeconstructedObjects(java.lang.Class<?> clazz)
Returns the corresponding list of DeconstructedObjects associated with the Class given as an argument. Also returns in the list, DeconstructedObjects that are representations of subclasses of that class.

Parameters:
clazz -
Returns:
a list of all the DeconstructedObjects

add

public void add(java.lang.Object o,
                ClassMembers members)
Add an object and its ClassMembers to the object graph.

Parameters:
object -
members -

iterator

public java.util.Iterator<DeconstructedObject> iterator()
Iterator for the DeconstructedObjects.

Specified by:
iterator in interface java.lang.Iterable<DeconstructedObject>