org.jboss.dna.graph.observe
Class NetChangeObserver.NetChange

java.lang.Object
  extended by org.jboss.dna.graph.observe.NetChangeObserver.NetChange
Enclosing class:
NetChangeObserver

@Immutable
public static class NetChangeObserver.NetChange
extends Object

A notification of changes to a node.


Constructor Summary
NetChangeObserver.NetChange(String sourceName, String workspaceName, Location location, EnumSet<NetChangeObserver.ChangeType> eventTypes, Set<Property> modifiedProperties, Set<Name> removedProperties)
           
 
Method Summary
 boolean equals(Object obj)
          
 Set<Property> getModifiedProperties()
           
 Path getPath()
           
 Set<Name> getRemovedProperties()
           
 String getRepositorySourceName()
           
 String getRepositoryWorkspaceName()
           
 int hashCode()
          
 boolean includes(NetChangeObserver.ChangeType... jcrEventTypes)
          Determine whether this net change includes any of the supplied types.
 boolean includesAllOf(NetChangeObserver.ChangeType... jcrEventTypes)
          Determine whether this net change includes all of the supplied types.
 boolean isPropertyModified(String property)
          Determine whether this node change includes the setting of new value(s) for the supplied property.
 boolean isPropertyRemoved(String property)
          Determine whether this node change includes the removal of the supplied property.
 boolean isSameNode(NetChangeObserver.NetChange that)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetChangeObserver.NetChange

public NetChangeObserver.NetChange(String sourceName,
                                   String workspaceName,
                                   Location location,
                                   EnumSet<NetChangeObserver.ChangeType> eventTypes,
                                   Set<Property> modifiedProperties,
                                   Set<Name> removedProperties)
Method Detail

getPath

public Path getPath()
Returns:
absolutePath

getRepositorySourceName

public String getRepositorySourceName()
Returns:
repositorySourceName

getRepositoryWorkspaceName

public String getRepositoryWorkspaceName()
Returns:
repositoryWorkspaceName

getModifiedProperties

public Set<Property> getModifiedProperties()
Returns:
modifiedProperties

getRemovedProperties

public Set<Name> getRemovedProperties()
Returns:
removedProperties

hashCode

public int hashCode()

Overrides:
hashCode in class Object

includesAllOf

public boolean includesAllOf(NetChangeObserver.ChangeType... jcrEventTypes)
Determine whether this net change includes all of the supplied types.

Parameters:
jcrEventTypes - the types to check for
Returns:
true if all of the supplied events are included in this net change, or false otherwise

includes

public boolean includes(NetChangeObserver.ChangeType... jcrEventTypes)
Determine whether this net change includes any of the supplied types.

Parameters:
jcrEventTypes - the types to check for
Returns:
true if any of the supplied events are included in this net change, or false otherwise

isSameNode

public boolean isSameNode(NetChangeObserver.NetChange that)

isPropertyModified

public boolean isPropertyModified(String property)
Determine whether this node change includes the setting of new value(s) for the supplied property.

Parameters:
property - the name of the property
Returns:
true if the named property has a new value on this node, or false otherwise

isPropertyRemoved

public boolean isPropertyRemoved(String property)
Determine whether this node change includes the removal of the supplied property.

Parameters:
property - the name of the property
Returns:
true if the named property was removed from this node, or false otherwise

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


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