Package org.xlsx4j.sml
Class CTWorkbookProtection
java.lang.Object
org.xlsx4j.sml.CTWorkbookProtection
- All Implemented Interfaces:
Child
public class CTWorkbookProtection extends java.lang.Object implements 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 Modifier and Type Field Description protected java.lang.BooleanlockRevisionprotected java.lang.BooleanlockStructureprotected java.lang.BooleanlockWindowsprotected java.lang.StringrevisionsAlgorithmNameprotected byte[]revisionsHashValueprotected byte[]revisionsPasswordprotected java.lang.StringrevisionsPasswordCharacterSetprotected byte[]revisionsSaltValueprotected java.lang.LongrevisionsSpinCountprotected java.lang.StringworkbookAlgorithmNameprotected byte[]workbookHashValueprotected byte[]workbookPasswordprotected java.lang.StringworkbookPasswordCharacterSetprotected byte[]workbookSaltValueprotected java.lang.LongworkbookSpinCount -
Constructor Summary
Constructors Constructor Description CTWorkbookProtection() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.java.lang.StringgetRevisionsAlgorithmName()Gets the value of the revisionsAlgorithmName property.byte[]getRevisionsHashValue()Gets the value of the revisionsHashValue property.byte[]getRevisionsPassword()Gets the value of the revisionsPassword property.java.lang.StringgetRevisionsPasswordCharacterSet()Gets the value of the revisionsPasswordCharacterSet property.byte[]getRevisionsSaltValue()Gets the value of the revisionsSaltValue property.java.lang.LonggetRevisionsSpinCount()Gets the value of the revisionsSpinCount property.java.lang.StringgetWorkbookAlgorithmName()Gets the value of the workbookAlgorithmName property.byte[]getWorkbookHashValue()Gets the value of the workbookHashValue property.byte[]getWorkbookPassword()Gets the value of the workbookPassword property.java.lang.StringgetWorkbookPasswordCharacterSet()Gets the value of the workbookPasswordCharacterSet property.byte[]getWorkbookSaltValue()Gets the value of the workbookSaltValue property.java.lang.LonggetWorkbookSpinCount()Gets the value of the workbookSpinCount property.booleanisLockRevision()Gets the value of the lockRevision property.booleanisLockStructure()Gets the value of the lockStructure property.booleanisLockWindows()Gets the value of the lockWindows property.voidsetLockRevision(java.lang.Boolean value)Sets the value of the lockRevision property.voidsetLockStructure(java.lang.Boolean value)Sets the value of the lockStructure property.voidsetLockWindows(java.lang.Boolean value)Sets the value of the lockWindows property.voidsetParent(java.lang.Object parent)voidsetRevisionsAlgorithmName(java.lang.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.voidsetRevisionsPasswordCharacterSet(java.lang.String value)Sets the value of the revisionsPasswordCharacterSet property.voidsetRevisionsSaltValue(byte[] value)Sets the value of the revisionsSaltValue property.voidsetRevisionsSpinCount(java.lang.Long value)Sets the value of the revisionsSpinCount property.voidsetWorkbookAlgorithmName(java.lang.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.voidsetWorkbookPasswordCharacterSet(java.lang.String value)Sets the value of the workbookPasswordCharacterSet property.voidsetWorkbookSaltValue(byte[] value)Sets the value of the workbookSaltValue property.voidsetWorkbookSpinCount(java.lang.Long value)Sets the value of the workbookSpinCount property.
-
Field Details
-
workbookPassword
protected byte[] workbookPassword -
workbookPasswordCharacterSet
protected java.lang.String workbookPasswordCharacterSet -
revisionsPassword
protected byte[] revisionsPassword -
revisionsPasswordCharacterSet
protected java.lang.String revisionsPasswordCharacterSet -
lockStructure
protected java.lang.Boolean lockStructure -
lockWindows
protected java.lang.Boolean lockWindows -
lockRevision
protected java.lang.Boolean lockRevision -
revisionsAlgorithmName
protected java.lang.String revisionsAlgorithmName -
revisionsHashValue
protected byte[] revisionsHashValue -
revisionsSaltValue
protected byte[] revisionsSaltValue -
revisionsSpinCount
protected java.lang.Long revisionsSpinCount -
workbookAlgorithmName
protected java.lang.String workbookAlgorithmName -
workbookHashValue
protected byte[] workbookHashValue -
workbookSaltValue
protected byte[] workbookSaltValue -
workbookSpinCount
protected java.lang.Long 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
public java.lang.String getWorkbookPasswordCharacterSet()Gets the value of the workbookPasswordCharacterSet property.- Returns:
- possible object is
String
-
setWorkbookPasswordCharacterSet
public void setWorkbookPasswordCharacterSet(java.lang.String value)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
public java.lang.String getRevisionsPasswordCharacterSet()Gets the value of the revisionsPasswordCharacterSet property.- Returns:
- possible object is
String
-
setRevisionsPasswordCharacterSet
public void setRevisionsPasswordCharacterSet(java.lang.String value)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
public void setLockStructure(java.lang.Boolean value)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
public void setLockWindows(java.lang.Boolean value)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
public void setLockRevision(java.lang.Boolean value)Sets the value of the lockRevision property.- Parameters:
value- allowed object isBoolean
-
getRevisionsAlgorithmName
public java.lang.String getRevisionsAlgorithmName()Gets the value of the revisionsAlgorithmName property.- Returns:
- possible object is
String
-
setRevisionsAlgorithmName
public void setRevisionsAlgorithmName(java.lang.String value)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
public java.lang.Long getRevisionsSpinCount()Gets the value of the revisionsSpinCount property.- Returns:
- possible object is
Long
-
setRevisionsSpinCount
public void setRevisionsSpinCount(java.lang.Long value)Sets the value of the revisionsSpinCount property.- Parameters:
value- allowed object isLong
-
getWorkbookAlgorithmName
public java.lang.String getWorkbookAlgorithmName()Gets the value of the workbookAlgorithmName property.- Returns:
- possible object is
String
-
setWorkbookAlgorithmName
public void setWorkbookAlgorithmName(java.lang.String value)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
public java.lang.Long getWorkbookSpinCount()Gets the value of the workbookSpinCount property.- Returns:
- possible object is
Long
-
setWorkbookSpinCount
public void setWorkbookSpinCount(java.lang.Long value)Sets the value of the workbookSpinCount property.- Parameters:
value- allowed object isLong
-
getParent
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
public void setParent(java.lang.Object parent) -
afterUnmarshal
public void afterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)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.
-