COSUpdateState instance manages update states for a COSUpdateInfo. Such states are used to create
a COSIncrement for the incremental saving of a COSDocument.
COSDocumentState, COSUpdateInfo, COSIncrement
| Modifier and Type | Field and Description |
|---|---|
| private COSDocumentState | originDocumentState
The |
| private boolean | updated
The actual update state of |
| private final COSUpdateInfo | updateInfo
The |
| Access | Constructor and Description |
|---|---|
| public | COSUpdateState(COSUpdateInfo
The updateInfo)COSUpdateInfo, that shall be managed by this COSUpdateState.Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | dereferenceChild(COSBase
The child, that has been dereferenced. child)This shall |
| public COSDocumentState | |
| pack-priv boolean | Returns: true, if the linked originDocumentState COSDocumentState#isAcceptingUpdates()
and such a COSDocumentState has been linked to this COSUpdateState.Returns |
| public boolean | |
| public void | setOriginDocumentState(COSDocumentState
The originDocumentState)COSDocumentState that shall be linked to this COSUpdateState.
Links the given |
| private void | setOriginDocumentState(COSDocumentState
The originDocumentState, boolean dereferencing)COSDocumentState that shall be linked to this COSUpdateState.
Links the given |
| pack-priv COSIncrement | |
| pack-priv void | |
| pack-priv void | update(boolean
The state to set for updated)updated.Sets the |
| pack-priv void | update(COSBase
The child that shall also be updated. child)
Shall call |
| pack-priv void | update(COSArray
The children that shall also be updated. children)
Shall call |
| pack-priv void | update(Iterable<COSBase>
The children that shall also be updated. children)
Shall call |
| originDocumentState | back to summary |
|---|---|
| private COSDocumentState originDocumentState The | |
| updated | back to summary |
|---|---|
| private boolean updated The actual update state of
| |
| updateInfo | back to summary |
|---|---|
| private final COSUpdateInfo updateInfo The | |
| COSUpdateState | back to summary |
|---|---|
| public COSUpdateState(COSUpdateInfo updateInfo) Creates a new
| |
| dereferenceChild | back to summary |
|---|---|
| pack-priv void dereferenceChild(COSBase child) This shall
This shall have no effect for a child, that is not an instance of
| |
| getOriginDocumentState | back to summary |
|---|---|
| public COSDocumentState getOriginDocumentState()
Returns the
As long as no
| |
| isAcceptingUpdates | back to summary |
|---|---|
| pack-priv boolean isAcceptingUpdates() Returns
| |
| isUpdated | back to summary |
|---|---|
| public boolean isUpdated() Returns the actual
| |
| setOriginDocumentState | back to summary |
|---|---|
| public void setOriginDocumentState(COSDocumentState originDocumentState)
Links the given
This shall also initialize
Should
As long as no
| |
| setOriginDocumentState | back to summary |
|---|---|
| private void setOriginDocumentState(COSDocumentState originDocumentState, boolean dereferencing)
Links the given
This shall also initialize
Should
As long as no
Additionally to
| |
| toIncrement | back to summary |
|---|---|
| pack-priv COSIncrement toIncrement() Uses the managed
| |
| update | back to summary |
|---|---|
| pack-priv void update() Calls
| |
| update | back to summary |
|---|---|
| pack-priv void update(boolean updated) Sets the
| |
| update | back to summary |
|---|---|
| pack-priv void update(COSBase child)
Shall call
This shall have no effect for a child, that is not an instance of
| |
| update | back to summary |
|---|---|
| pack-priv void update(COSArray children)
Shall call
This shall have no effect for a child, that is not an instance of
| |
| update | back to summary |
|---|---|
| pack-priv void update(Iterable<COSBase> children)
Shall call
This shall have no effect for a child, that is not an instance of
| |