|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.observe.NetChangeObserver.NetChange
@Immutable public static final class NetChangeObserver.NetChange
A notification of changes to a node.
Constructor Summary | |
---|---|
NetChangeObserver.NetChange(String workspaceName,
Location location,
EnumSet<NetChangeObserver.ChangeType> eventTypes,
Set<Property> addedProperties,
Set<Property> modifiedProperties,
Set<Name> removedProperties,
Location movedFrom,
Location movedBefore,
boolean isReorder)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Set<Property> |
getAddedOrModifiedProperties()
Get the combination of added and modified properties. |
Set<Property> |
getAddedProperties()
|
Location |
getLocation()
|
Set<Property> |
getModifiedProperties()
|
Location |
getMovedBefore()
Get the location before which the node was moved, or null if this node was not moved before a particular node |
Location |
getOriginalLocation()
Get the original location for this node, or null if this node was not moved |
Path |
getPath()
|
Set<Name> |
getRemovedProperties()
|
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 |
includesOnly(NetChangeObserver.ChangeType... jcrEventTypes)
Determine whether this net change includes only 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 |
isReorder()
True if this is a simple re-ordering of sibling nodes. |
boolean |
isSameNode(NetChangeObserver.NetChange that)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NetChangeObserver.NetChange(String workspaceName, Location location, EnumSet<NetChangeObserver.ChangeType> eventTypes, Set<Property> addedProperties, Set<Property> modifiedProperties, Set<Name> removedProperties, Location movedFrom, Location movedBefore, boolean isReorder)
Method Detail |
---|
public Location getLocation()
public Location getOriginalLocation()
public Location getMovedBefore()
public boolean isReorder()
public Path getPath()
public String getRepositoryWorkspaceName()
public Set<Property> getAddedProperties()
public Set<Property> getModifiedProperties()
public Set<Property> getAddedOrModifiedProperties()
added
and modified
properties.
public Set<Name> getRemovedProperties()
public int hashCode()
hashCode
in class Object
public boolean includesAllOf(NetChangeObserver.ChangeType... jcrEventTypes)
jcrEventTypes
- the types to check for
public boolean includes(NetChangeObserver.ChangeType... jcrEventTypes)
jcrEventTypes
- the types to check for
public boolean includesOnly(NetChangeObserver.ChangeType... jcrEventTypes)
jcrEventTypes
- the types to check for
public boolean isSameNode(NetChangeObserver.NetChange that)
public boolean isPropertyModified(String property)
property
- the name of the property
public boolean isPropertyRemoved(String property)
property
- the name of the property
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |