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)
           
 boolean includesAll(NetChangeObserver.ChangeType... jcrEventTypes)
           
 boolean is(NetChangeObserver.ChangeType jcrEventTypes)
           
 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

includesAll

public boolean includesAll(NetChangeObserver.ChangeType... jcrEventTypes)

includes

public boolean includes(NetChangeObserver.ChangeType... jcrEventTypes)

is

public boolean is(NetChangeObserver.ChangeType jcrEventTypes)

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-Present JBoss a division of Red Hat. All Rights Reserved.