ProtectionType
Overview
ProtectionType is an enum in Aspose.Words FOSS for Java.
Protection type for a document.
Edition status of its 10 listed members (a property and its accessor methods are listed separately, overloads once): 9 not yet exercised by a verified example.
This enum declares 4 methods for ProtectionType objects in Java programs.
Available methods include: fromName, getName, getValues, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
ALLOW_ONLY_COMMENTS | User can only modify comments in the document. |
ALLOW_ONLY_FORM_FIELDS | User can only enter data in the form fields in the document. |
ALLOW_ONLY_REVISIONS | User can only add revision marks to the document. |
READ_ONLY | No changes are allowed to the document. |
NO_PROTECTION | The document is not protected. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of ProtectionType values. |
Methods
| Signature | Description |
|---|---|
getName(protectionType: int) → String | Returns JAVA_STYLE string representation of integer ProtectionType value. |
toString(protectionType: int) → String | Returns DotNetStyle string representation of integer ProtectionType value. |
fromName(protectionTypeName: String) → int | Returns integer representation by ProtectionType name. |
getValues() → int[] | Returns array of ProtectionType values. |