Class COSUpdateState
COSUpdateState instance manages update states for a COSUpdateInfo. Such states are used to create
a COSIncrement for the incremental saving of a COSDocument.- Author:
- Christian Appl
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCOSUpdateState(COSUpdateInfo updateInfo) Creates a newCOSUpdateStatefor the givenCOSUpdateInfo. -
Method Summary
Modifier and TypeMethodDescriptionReturns theoriginDocumentState, that is linked to the managedupdateInfo.booleanReturns the actualupdatedstate of the managedupdateInfo.voidsetOriginDocumentState(COSDocumentState originDocumentState)
-
Constructor Details
-
COSUpdateState
Creates a newCOSUpdateStatefor the givenCOSUpdateInfo.- Parameters:
updateInfo- TheCOSUpdateInfo, that shall be managed by thisCOSUpdateState.
-
-
Method Details
-
setOriginDocumentState
Links the given
COSDocumentStateto theupdatedstate of the managedupdateInfo.
This shall also initialize
updatedaccordingly and will also set the sameCOSDocumentStatefor all possibly contained substructures.Should
originDocumentStatealready have been set, by a prior call to this method, this shall deny to overwrite it.COSDocumentState.isAcceptingUpdates()shall determine, whether updates toupdateInfoare allowed.As long as no
COSDocumentStateis linked to thisCOSUpdateState, it shall not accept updates.- Parameters:
originDocumentState- TheCOSDocumentStatethat shall be linked to thisCOSUpdateState.- See Also:
-
getOriginDocumentState
Returns the
originDocumentState, that is linked to the managedupdateInfo.COSDocumentState.isAcceptingUpdates()shall determine, whether updates toupdateInfoare allowed.As long as no
COSDocumentStateis linked to thisCOSUpdateState, it shall not accept updates.- Returns:
- The
COSDocumentStatelinked to thisCOSUpdateState. - See Also:
-
isUpdated
public boolean isUpdated()Returns the actualupdatedstate of the managedupdateInfo.- Returns:
- The actual
updatedstate of the managedupdateInfo - See Also:
-