public final class SpreadsheetInspectionPackage extends CustomPackage
Contains information about spreadsheet parts that can be considered as metadata in some cases.
Learn more
Modifier and Type | Method and Description |
---|---|
void |
clearComments()
Removes all detected user comments from the spreadsheet.
|
void |
clearDigitalSignatures()
Removes all detected digital signatures from the spreadsheet.
|
void |
clearHiddenSheets()
Removes all detected hidden sheets from the spreadsheet.
|
SpreadsheetComment[] |
getComments()
Gets an array of the user comments.
|
DigitalSignature[] |
getDigitalSignatures()
Gets an array of digital signatures presented in the document.
|
SpreadsheetSheet[] |
getHiddenSheets()
Gets an array of the hidden sheets.
|
int |
removeProperties(Specification specification)
Removes metadata properties satisfying a specification.
|
int |
sanitize()
Removes writable metadata properties from the package.
|
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final SpreadsheetComment[] getComments()
Gets an array of the user comments.
public final SpreadsheetSheet[] getHiddenSheets()
Gets an array of the hidden sheets.
public final DigitalSignature[] getDigitalSignatures()
Gets an array of digital signatures presented in the document.
public int removeProperties(Specification specification)
Removes metadata properties satisfying a specification.
removeProperties
in class MetadataPackage
specification
- A specification to test each metadata property for a condition.public final void clearComments()
Removes all detected user comments from the spreadsheet.
public final void clearHiddenSheets()
Removes all detected hidden sheets from the spreadsheet.
public final void clearDigitalSignatures()
Removes all detected digital signatures from the spreadsheet.
public int sanitize()
Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well.
sanitize
in class MetadataPackage