Package org.xlsx4j.sml
Class CTWorkbookProtection
java.lang.Object
org.xlsx4j.sml.CTWorkbookProtection
- All Implemented Interfaces:
Child
Java class for CT_WorkbookProtection complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_WorkbookProtection">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="workbookPassword" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
<attribute name="workbookPasswordCharacterSet" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="revisionsPassword" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
<attribute name="revisionsPasswordCharacterSet" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="lockStructure" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="lockWindows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="lockRevision" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="revisionsAlgorithmName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
<attribute name="revisionsHashValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
<attribute name="revisionsSaltValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
<attribute name="revisionsSpinCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
<attribute name="workbookAlgorithmName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
<attribute name="workbookHashValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
<attribute name="workbookSaltValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
<attribute name="workbookSpinCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent) This method is invoked by the JAXB implementation on each instance when unmarshalling completes.Gets the parent object in the object tree representing the unmarshalled xml document.Gets the value of the revisionsAlgorithmName property.byte[]Gets the value of the revisionsHashValue property.byte[]Gets the value of the revisionsPassword property.Gets the value of the revisionsPasswordCharacterSet property.byte[]Gets the value of the revisionsSaltValue property.Gets the value of the revisionsSpinCount property.Gets the value of the workbookAlgorithmName property.byte[]Gets the value of the workbookHashValue property.byte[]Gets the value of the workbookPassword property.Gets the value of the workbookPasswordCharacterSet property.byte[]Gets the value of the workbookSaltValue property.Gets the value of the workbookSpinCount property.booleanGets the value of the lockRevision property.booleanGets the value of the lockStructure property.booleanGets the value of the lockWindows property.voidsetLockRevision(Boolean value) Sets the value of the lockRevision property.voidsetLockStructure(Boolean value) Sets the value of the lockStructure property.voidsetLockWindows(Boolean value) Sets the value of the lockWindows property.voidvoidsetRevisionsAlgorithmName(String value) Sets the value of the revisionsAlgorithmName property.voidsetRevisionsHashValue(byte[] value) Sets the value of the revisionsHashValue property.voidsetRevisionsPassword(byte[] value) Sets the value of the revisionsPassword property.voidSets the value of the revisionsPasswordCharacterSet property.voidsetRevisionsSaltValue(byte[] value) Sets the value of the revisionsSaltValue property.voidsetRevisionsSpinCount(Long value) Sets the value of the revisionsSpinCount property.voidsetWorkbookAlgorithmName(String value) Sets the value of the workbookAlgorithmName property.voidsetWorkbookHashValue(byte[] value) Sets the value of the workbookHashValue property.voidsetWorkbookPassword(byte[] value) Sets the value of the workbookPassword property.voidSets the value of the workbookPasswordCharacterSet property.voidsetWorkbookSaltValue(byte[] value) Sets the value of the workbookSaltValue property.voidsetWorkbookSpinCount(Long value) Sets the value of the workbookSpinCount property.
-
Field Details
-
workbookPassword
protected byte[] workbookPassword -
workbookPasswordCharacterSet
-
revisionsPassword
protected byte[] revisionsPassword -
revisionsPasswordCharacterSet
-
lockStructure
-
lockWindows
-
lockRevision
-
revisionsAlgorithmName
-
revisionsHashValue
protected byte[] revisionsHashValue -
revisionsSaltValue
protected byte[] revisionsSaltValue -
revisionsSpinCount
-
workbookAlgorithmName
-
workbookHashValue
protected byte[] workbookHashValue -
workbookSaltValue
protected byte[] workbookSaltValue -
workbookSpinCount
-
-
Constructor Details
-
CTWorkbookProtection
public CTWorkbookProtection()
-
-
Method Details
-
getWorkbookPassword
public byte[] getWorkbookPassword()Gets the value of the workbookPassword property.- Returns:
- possible object is
String
-
setWorkbookPassword
public void setWorkbookPassword(byte[] value) Sets the value of the workbookPassword property.- Parameters:
value- allowed object isString
-
getWorkbookPasswordCharacterSet
Gets the value of the workbookPasswordCharacterSet property.- Returns:
- possible object is
String
-
setWorkbookPasswordCharacterSet
Sets the value of the workbookPasswordCharacterSet property.- Parameters:
value- allowed object isString
-
getRevisionsPassword
public byte[] getRevisionsPassword()Gets the value of the revisionsPassword property.- Returns:
- possible object is
String
-
setRevisionsPassword
public void setRevisionsPassword(byte[] value) Sets the value of the revisionsPassword property.- Parameters:
value- allowed object isString
-
getRevisionsPasswordCharacterSet
Gets the value of the revisionsPasswordCharacterSet property.- Returns:
- possible object is
String
-
setRevisionsPasswordCharacterSet
Sets the value of the revisionsPasswordCharacterSet property.- Parameters:
value- allowed object isString
-
isLockStructure
public boolean isLockStructure()Gets the value of the lockStructure property.- Returns:
- possible object is
Boolean
-
setLockStructure
Sets the value of the lockStructure property.- Parameters:
value- allowed object isBoolean
-
isLockWindows
public boolean isLockWindows()Gets the value of the lockWindows property.- Returns:
- possible object is
Boolean
-
setLockWindows
Sets the value of the lockWindows property.- Parameters:
value- allowed object isBoolean
-
isLockRevision
public boolean isLockRevision()Gets the value of the lockRevision property.- Returns:
- possible object is
Boolean
-
setLockRevision
Sets the value of the lockRevision property.- Parameters:
value- allowed object isBoolean
-
getRevisionsAlgorithmName
Gets the value of the revisionsAlgorithmName property.- Returns:
- possible object is
String
-
setRevisionsAlgorithmName
Sets the value of the revisionsAlgorithmName property.- Parameters:
value- allowed object isString
-
getRevisionsHashValue
public byte[] getRevisionsHashValue()Gets the value of the revisionsHashValue property.- Returns:
- possible object is byte[]
-
setRevisionsHashValue
public void setRevisionsHashValue(byte[] value) Sets the value of the revisionsHashValue property.- Parameters:
value- allowed object is byte[]
-
getRevisionsSaltValue
public byte[] getRevisionsSaltValue()Gets the value of the revisionsSaltValue property.- Returns:
- possible object is byte[]
-
setRevisionsSaltValue
public void setRevisionsSaltValue(byte[] value) Sets the value of the revisionsSaltValue property.- Parameters:
value- allowed object is byte[]
-
getRevisionsSpinCount
Gets the value of the revisionsSpinCount property.- Returns:
- possible object is
Long
-
setRevisionsSpinCount
Sets the value of the revisionsSpinCount property.- Parameters:
value- allowed object isLong
-
getWorkbookAlgorithmName
Gets the value of the workbookAlgorithmName property.- Returns:
- possible object is
String
-
setWorkbookAlgorithmName
Sets the value of the workbookAlgorithmName property.- Parameters:
value- allowed object isString
-
getWorkbookHashValue
public byte[] getWorkbookHashValue()Gets the value of the workbookHashValue property.- Returns:
- possible object is byte[]
-
setWorkbookHashValue
public void setWorkbookHashValue(byte[] value) Sets the value of the workbookHashValue property.- Parameters:
value- allowed object is byte[]
-
getWorkbookSaltValue
public byte[] getWorkbookSaltValue()Gets the value of the workbookSaltValue property.- Returns:
- possible object is byte[]
-
setWorkbookSaltValue
public void setWorkbookSaltValue(byte[] value) Sets the value of the workbookSaltValue property.- Parameters:
value- allowed object is byte[]
-
getWorkbookSpinCount
Gets the value of the workbookSpinCount property.- Returns:
- possible object is
Long
-
setWorkbookSpinCount
Sets the value of the workbookSpinCount property.- Parameters:
value- allowed object isLong
-
getParent
Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
-
afterUnmarshal
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-