org.priha.util
Class ChangeStore.Change

java.lang.Object
  extended by org.priha.util.ChangeStore.Change
Enclosing class:
ChangeStore

public static final class ChangeStore.Change
extends java.lang.Object

Stores a single change.


Constructor Summary
ChangeStore.Change(ItemState newState, ItemImpl item)
          Create a new Change for the given ItemState and item.
 
Method Summary
 ItemImpl getItem()
          Returns the Item for this Change.
 Path getPath()
          Returns the Path for this Change.
 ItemState getState()
          Returns the ItemState for this Change.
 ValueContainer getValue()
          Return the ValueContainer for the Change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeStore.Change

public ChangeStore.Change(ItemState newState,
                          ItemImpl item)
Create a new Change for the given ItemState and item. If the Item is a property, also the Value is copied internally.

Parameters:
newState - The new state
item - The item
Method Detail

getItem

public final ItemImpl getItem()
Returns the Item for this Change.

Returns:
The Item.

getState

public final ItemState getState()
Returns the ItemState for this Change.

Returns:
The ItemState.

getPath

public final Path getPath()
Returns the Path for this Change.

Returns:
The Path.

getValue

public final ValueContainer getValue()
Return the ValueContainer for the Change.

Returns:
The ValueContainer, or null, if the Change concerned a Node.