Class RevisionHeaderSet
java.lang.Object
com.independentsoft.office.spreadsheet.revisions.RevisionHeaderSet
The Class RevisionHeaderSet.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new revision header set.RevisionHeaderSet(byte[] buffer, Relationship relationship, String revisionFolder)Instantiates a new revision header set. -
Method Summary
Modifier and TypeMethodDescriptionclone()getGuid()Gets the guid.Gets the headers.Gets the last guid.intGets the preserve history.intGets the revision id.intGets the version.booleanChecks if is disk revisions.booleanChecks if is exclusive mode.booleanChecks if is history.booleanChecks if is keep change history.booleanChecks if is protected.booleanisShared()Checks if is shared.booleanChecks if is track revisions.voidsetDiskRevisions(boolean diskRevisions)Sets the disk revisions.voidsetExclusiveMode(boolean exclusiveMode)Sets the exclusive mode.voidSets the guid.voidsetHistory(boolean history)Sets the history.voidsetKeepChangeHistory(boolean keepChangeHistory)Sets the keep change history.voidsetLastGuid(String lastGuid)Sets the last guid.voidsetPreserveHistory(int preserveHistory)Sets the preserve history.voidsetProtected(boolean isProtected)Sets the protected.voidsetRevisionID(int revisionID)Sets the revision id.voidsetShared(boolean isShared)Sets the shared.voidsetTrackRevisions(boolean trackRevisions)Sets the track revisions.voidsetVersion(int version)Sets the version.toString()
-
Constructor Details
-
RevisionHeaderSet
public RevisionHeaderSet()Instantiates a new revision header set. -
RevisionHeaderSet
public RevisionHeaderSet(byte[] buffer, Relationship relationship, String revisionFolder) throws XMLStreamExceptionInstantiates a new revision header set.- Parameters:
buffer- the bufferrelationship- the relationshiprevisionFolder- the revision folder- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
-
toString
-
getHeaders
Gets the headers.- Returns:
- the headers
-
isDiskRevisions
public boolean isDiskRevisions()Checks if is disk revisions.- Returns:
- true, if is disk revisions
-
setDiskRevisions
public void setDiskRevisions(boolean diskRevisions)Sets the disk revisions.- Parameters:
diskRevisions- the new disk revisions
-
isExclusiveMode
public boolean isExclusiveMode()Checks if is exclusive mode.- Returns:
- true, if is exclusive mode
-
setExclusiveMode
public void setExclusiveMode(boolean exclusiveMode)Sets the exclusive mode.- Parameters:
exclusiveMode- the new exclusive mode
-
getGuid
Gets the guid.- Returns:
- the guid
-
setGuid
Sets the guid.- Parameters:
guid- the new guid
-
isHistory
public boolean isHistory()Checks if is history.- Returns:
- true, if is history
-
setHistory
public void setHistory(boolean history)Sets the history.- Parameters:
history- the new history
-
isKeepChangeHistory
public boolean isKeepChangeHistory()Checks if is keep change history.- Returns:
- true, if is keep change history
-
setKeepChangeHistory
public void setKeepChangeHistory(boolean keepChangeHistory)Sets the keep change history.- Parameters:
keepChangeHistory- the new keep change history
-
getLastGuid
Gets the last guid.- Returns:
- the last guid
-
setLastGuid
Sets the last guid.- Parameters:
lastGuid- the new last guid
-
getPreserveHistory
public int getPreserveHistory()Gets the preserve history.- Returns:
- the preserve history
-
setPreserveHistory
public void setPreserveHistory(int preserveHistory)Sets the preserve history.- Parameters:
preserveHistory- the new preserve history
-
isProtected
public boolean isProtected()Checks if is protected.- Returns:
- true, if is protected
-
setProtected
public void setProtected(boolean isProtected)Sets the protected.- Parameters:
isProtected- the new protected
-
getRevisionID
public int getRevisionID()Gets the revision id.- Returns:
- the revision id
-
setRevisionID
public void setRevisionID(int revisionID)Sets the revision id.- Parameters:
revisionID- the new revision id
-
isTrackRevisions
public boolean isTrackRevisions()Checks if is track revisions.- Returns:
- true, if is track revisions
-
setTrackRevisions
public void setTrackRevisions(boolean trackRevisions)Sets the track revisions.- Parameters:
trackRevisions- the new track revisions
-
getVersion
public int getVersion()Gets the version.- Returns:
- the version
-
setVersion
public void setVersion(int version)Sets the version.- Parameters:
version- the new version
-