Package org.xlsx4j.sml
Class CTSheetProtection
java.lang.Object
org.xlsx4j.sml.CTSheetProtection
- All Implemented Interfaces:
Child
Java class for CT_SheetProtection complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_SheetProtection">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="password" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
<attribute name="algorithmName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
<attribute name="hashValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
<attribute name="saltValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
<attribute name="spinCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
<attribute name="sheet" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="objects" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="scenarios" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="formatCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="formatColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="formatRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="insertColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="insertRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="insertHyperlinks" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="deleteColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="deleteRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="selectLockedCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="sort" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="autoFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="pivotTables" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="selectUnlockedCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected byte[]protected Booleanprotected Booleanprotected Booleanprotected Booleanprotected byte[]protected Booleanprotected byte[]protected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Long -
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 value of the algorithmName property.byte[]Gets the value of the hashValue property.Gets the parent object in the object tree representing the unmarshalled xml document.byte[]Gets the value of the password property.byte[]Gets the value of the saltValue property.Gets the value of the spinCount property.booleanGets the value of the autoFilter property.booleanGets the value of the deleteColumns property.booleanGets the value of the deleteRows property.booleanGets the value of the formatCells property.booleanGets the value of the formatColumns property.booleanGets the value of the formatRows property.booleanGets the value of the insertColumns property.booleanGets the value of the insertHyperlinks property.booleanGets the value of the insertRows property.booleanGets the value of the objects property.booleanGets the value of the pivotTables property.booleanGets the value of the scenarios property.booleanGets the value of the selectLockedCells property.booleanGets the value of the selectUnlockedCells property.booleanisSheet()Gets the value of the sheet property.booleanisSort()Gets the value of the sort property.voidsetAlgorithmName(String value) Sets the value of the algorithmName property.voidsetAutoFilter(Boolean value) Sets the value of the autoFilter property.voidsetDeleteColumns(Boolean value) Sets the value of the deleteColumns property.voidsetDeleteRows(Boolean value) Sets the value of the deleteRows property.voidsetFormatCells(Boolean value) Sets the value of the formatCells property.voidsetFormatColumns(Boolean value) Sets the value of the formatColumns property.voidsetFormatRows(Boolean value) Sets the value of the formatRows property.voidsetHashValue(byte[] value) Sets the value of the hashValue property.voidsetInsertColumns(Boolean value) Sets the value of the insertColumns property.voidsetInsertHyperlinks(Boolean value) Sets the value of the insertHyperlinks property.voidsetInsertRows(Boolean value) Sets the value of the insertRows property.voidsetObjects(Boolean value) Sets the value of the objects property.voidvoidsetPassword(byte[] value) Sets the value of the password property.voidsetPivotTables(Boolean value) Sets the value of the pivotTables property.voidsetSaltValue(byte[] value) Sets the value of the saltValue property.voidsetScenarios(Boolean value) Sets the value of the scenarios property.voidsetSelectLockedCells(Boolean value) Sets the value of the selectLockedCells property.voidsetSelectUnlockedCells(Boolean value) Sets the value of the selectUnlockedCells property.voidSets the value of the sheet property.voidSets the value of the sort property.voidsetSpinCount(Long value) Sets the value of the spinCount property.
-
Field Details
-
password
protected byte[] password -
algorithmName
-
hashValue
protected byte[] hashValue -
saltValue
protected byte[] saltValue -
spinCount
-
sheet
-
objects
-
scenarios
-
formatCells
-
formatColumns
-
formatRows
-
insertColumns
-
insertRows
-
insertHyperlinks
-
deleteColumns
-
deleteRows
-
selectLockedCells
-
sort
-
autoFilter
-
pivotTables
-
selectUnlockedCells
-
-
Constructor Details
-
CTSheetProtection
public CTSheetProtection()
-
-
Method Details
-
getPassword
public byte[] getPassword()Gets the value of the password property.- Returns:
- possible object is
String
-
setPassword
public void setPassword(byte[] value) Sets the value of the password property.- Parameters:
value- allowed object isString
-
getAlgorithmName
Gets the value of the algorithmName property.- Returns:
- possible object is
String
-
setAlgorithmName
Sets the value of the algorithmName property.- Parameters:
value- allowed object isString
-
getHashValue
public byte[] getHashValue()Gets the value of the hashValue property.- Returns:
- possible object is byte[]
-
setHashValue
public void setHashValue(byte[] value) Sets the value of the hashValue property.- Parameters:
value- allowed object is byte[]
-
getSaltValue
public byte[] getSaltValue()Gets the value of the saltValue property.- Returns:
- possible object is byte[]
-
setSaltValue
public void setSaltValue(byte[] value) Sets the value of the saltValue property.- Parameters:
value- allowed object is byte[]
-
getSpinCount
Gets the value of the spinCount property.- Returns:
- possible object is
Long
-
setSpinCount
Sets the value of the spinCount property.- Parameters:
value- allowed object isLong
-
isSheet
public boolean isSheet()Gets the value of the sheet property.- Returns:
- possible object is
Boolean
-
setSheet
Sets the value of the sheet property.- Parameters:
value- allowed object isBoolean
-
isObjects
public boolean isObjects()Gets the value of the objects property.- Returns:
- possible object is
Boolean
-
setObjects
Sets the value of the objects property.- Parameters:
value- allowed object isBoolean
-
isScenarios
public boolean isScenarios()Gets the value of the scenarios property.- Returns:
- possible object is
Boolean
-
setScenarios
Sets the value of the scenarios property.- Parameters:
value- allowed object isBoolean
-
isFormatCells
public boolean isFormatCells()Gets the value of the formatCells property.- Returns:
- possible object is
Boolean
-
setFormatCells
Sets the value of the formatCells property.- Parameters:
value- allowed object isBoolean
-
isFormatColumns
public boolean isFormatColumns()Gets the value of the formatColumns property.- Returns:
- possible object is
Boolean
-
setFormatColumns
Sets the value of the formatColumns property.- Parameters:
value- allowed object isBoolean
-
isFormatRows
public boolean isFormatRows()Gets the value of the formatRows property.- Returns:
- possible object is
Boolean
-
setFormatRows
Sets the value of the formatRows property.- Parameters:
value- allowed object isBoolean
-
isInsertColumns
public boolean isInsertColumns()Gets the value of the insertColumns property.- Returns:
- possible object is
Boolean
-
setInsertColumns
Sets the value of the insertColumns property.- Parameters:
value- allowed object isBoolean
-
isInsertRows
public boolean isInsertRows()Gets the value of the insertRows property.- Returns:
- possible object is
Boolean
-
setInsertRows
Sets the value of the insertRows property.- Parameters:
value- allowed object isBoolean
-
isInsertHyperlinks
public boolean isInsertHyperlinks()Gets the value of the insertHyperlinks property.- Returns:
- possible object is
Boolean
-
setInsertHyperlinks
Sets the value of the insertHyperlinks property.- Parameters:
value- allowed object isBoolean
-
isDeleteColumns
public boolean isDeleteColumns()Gets the value of the deleteColumns property.- Returns:
- possible object is
Boolean
-
setDeleteColumns
Sets the value of the deleteColumns property.- Parameters:
value- allowed object isBoolean
-
isDeleteRows
public boolean isDeleteRows()Gets the value of the deleteRows property.- Returns:
- possible object is
Boolean
-
setDeleteRows
Sets the value of the deleteRows property.- Parameters:
value- allowed object isBoolean
-
isSelectLockedCells
public boolean isSelectLockedCells()Gets the value of the selectLockedCells property.- Returns:
- possible object is
Boolean
-
setSelectLockedCells
Sets the value of the selectLockedCells property.- Parameters:
value- allowed object isBoolean
-
isSort
public boolean isSort()Gets the value of the sort property.- Returns:
- possible object is
Boolean
-
setSort
Sets the value of the sort property.- Parameters:
value- allowed object isBoolean
-
isAutoFilter
public boolean isAutoFilter()Gets the value of the autoFilter property.- Returns:
- possible object is
Boolean
-
setAutoFilter
Sets the value of the autoFilter property.- Parameters:
value- allowed object isBoolean
-
isPivotTables
public boolean isPivotTables()Gets the value of the pivotTables property.- Returns:
- possible object is
Boolean
-
setPivotTables
Sets the value of the pivotTables property.- Parameters:
value- allowed object isBoolean
-
isSelectUnlockedCells
public boolean isSelectUnlockedCells()Gets the value of the selectUnlockedCells property.- Returns:
- possible object is
Boolean
-
setSelectUnlockedCells
Sets the value of the selectUnlockedCells property.- Parameters:
value- allowed object isBoolean
-
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.
-