org.jboss.dna.graph.session
Class GraphSession.StructureSnapshot<PropertyPayload>

java.lang.Object
  extended by org.jboss.dna.graph.session.GraphSession.StructureSnapshot<PropertyPayload>
Type Parameters:
PropertyPayload - the property payload
All Implemented Interfaces:
Iterable<org.jboss.dna.graph.session.GraphSession.Snapshot<PropertyPayload>>
Enclosing class:
GraphSession<Payload,PropertyPayload>

@Immutable
public static final class GraphSession.StructureSnapshot<PropertyPayload>
extends Object
implements Iterable<org.jboss.dna.graph.session.GraphSession.Snapshot<PropertyPayload>>

A read-only visitor that walks the cache to obtain a snapshot of the cache structure. The resulting snapshot contains the location of each node in the tree, including unloaded nodes.


Method Summary
 List<org.jboss.dna.graph.session.GraphSession.Snapshot<PropertyPayload>> getSnapshotsInPreOrder()
          Get the Location for every node in this cache
 Iterator<org.jboss.dna.graph.session.GraphSession.Snapshot<PropertyPayload>> iterator()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

iterator

public Iterator<org.jboss.dna.graph.session.GraphSession.Snapshot<PropertyPayload>> iterator()

Specified by:
iterator in interface Iterable<org.jboss.dna.graph.session.GraphSession.Snapshot<PropertyPayload>>
See Also:
Iterable.iterator()

getSnapshotsInPreOrder

public List<org.jboss.dna.graph.session.GraphSession.Snapshot<PropertyPayload>> getSnapshotsInPreOrder()
Get the Location for every node in this cache

Returns:
the node locations (in pre-order)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.