public class COSUpdateState extends Object
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
Constructor and Description |
---|
COSUpdateState(COSUpdateInfo updateInfo)
Creates a new
COSUpdateState for the given COSUpdateInfo . |
Modifier and Type | Method and Description |
---|---|
COSDocumentState |
getOriginDocumentState()
Returns the
originDocumentState , that is linked to the managed updateInfo . |
boolean |
isUpdated()
Returns the actual
updated state of the managed updateInfo . |
void |
setOriginDocumentState(COSDocumentState originDocumentState)
|
public COSUpdateState(COSUpdateInfo updateInfo)
COSUpdateState
for the given COSUpdateInfo
.updateInfo
- The COSUpdateInfo
, that shall be managed by this COSUpdateState
.public void setOriginDocumentState(COSDocumentState originDocumentState)
Links the given COSDocumentState
to the updated
state of the managed updateInfo
.
This shall also initialize updated
accordingly and will also set the same COSDocumentState
for
all possibly contained substructures.
Should originDocumentState
already have been set, by a prior call to this method, this shall deny to
overwrite it.
COSDocumentState.isAcceptingUpdates()
shall determine, whether updates to updateInfo
are
allowed.
As long as no COSDocumentState
is linked to this COSUpdateState
, it shall not accept updates.
originDocumentState
- The COSDocumentState
that shall be linked to this COSUpdateState
.originDocumentState
,
updated
public COSDocumentState getOriginDocumentState()
Returns the originDocumentState
, that is linked to the managed updateInfo
.
COSDocumentState.isAcceptingUpdates()
shall determine, whether updates to updateInfo
are
allowed.
As long as no COSDocumentState
is linked to this COSUpdateState
, it shall not accept updates.
COSDocumentState
linked to this COSUpdateState
.setOriginDocumentState(COSDocumentState)
public boolean isUpdated()
updated
state of the managed updateInfo
.updated
state of the managed updateInfo
updated
Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.