org.jboss.dna.repository.observation
Class NodeChanges

java.lang.Object
  extended by org.jboss.dna.repository.observation.NodeChanges
All Implemented Interfaces:
Iterable<NodeChange>

public class NodeChanges
extends Object
implements Iterable<NodeChange>

A utility class that builds node changes from a sequence of events.

Author:
Randall Hauch

Nested Class Summary
protected static class NodeChanges.NodeChangeDetails
           
 
Field Summary
protected static Comparator<NodeChange> PRE_ORDER
           
 
Constructor Summary
protected NodeChanges(List<NodeChange> changes)
           
 
Method Summary
static NodeChanges create(String repositoryWorkspaceName, Iterable<javax.jcr.observation.Event> events)
           
 Iterator<NodeChange> getPreOrder()
           
 Iterator<NodeChange> iterator()
          
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRE_ORDER

protected static final Comparator<NodeChange> PRE_ORDER
Constructor Detail

NodeChanges

protected NodeChanges(List<NodeChange> changes)
Method Detail

create

public static NodeChanges create(String repositoryWorkspaceName,
                                 Iterable<javax.jcr.observation.Event> events)
                          throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

iterator

public Iterator<NodeChange> iterator()

Specified by:
iterator in interface Iterable<NodeChange>

getPreOrder

public Iterator<NodeChange> getPreOrder()

size

public int size()


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