public class StateManager
extends java.lang.Object
| Constructor and Description |
|---|
StateManager(PTrailer trailer)
Creates a new instance of the state manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChange(PObject pObject)
Add a new PObject containing changed data to the cache.
|
boolean |
contains(Reference reference)
Checks the state manager to see if an instance of the specified reference
already exists in the cache.
|
java.lang.Object |
getChange(Reference reference)
Returns an instance of the specified reference
|
int |
getChangedSize()
Gets the number of change object in the state manager.
|
Reference |
getNewReferencNumber()
Gets the next available reference number from the trailer.
|
PTrailer |
getTrailer() |
boolean |
isChanged() |
java.util.Iterator<PObject> |
iteratorSortedByObjectNumber() |
void |
removeChange(PObject pObject)
Remove a PObject from the cache.
|
public StateManager(PTrailer trailer)
trailer - document trailerpublic Reference getNewReferencNumber()
public void addChange(PObject pObject)
pObject - object to add to cache.public boolean contains(Reference reference)
reference - reference to look for an existing usage.public java.lang.Object getChange(Reference reference)
reference - reference to look for an existing usagepublic void removeChange(PObject pObject)
pObject - pObject to removed from the cache.public boolean isChanged()
public int getChangedSize()
public java.util.Iterator<PObject> iteratorSortedByObjectNumber()
public PTrailer getTrailer()