
**遗产：**
java.lang.Object
```
public class ProtectionType
```

文档的保护类型。
## 字段

| 场地 | 描述 |
| --- | --- |
| [ALLOW_ONLY_COMMENTS](#ALLOW-ONLY-COMMENTS) | 用户只能修改文档中的注释。 |
| [ALLOW_ONLY_FORM_FIELDS](#ALLOW-ONLY-FORM-FIELDS) | 用户只能在文档的表单域中输入数据。 |
| [ALLOW_ONLY_REVISIONS](#ALLOW-ONLY-REVISIONS) | 用户只能向文档添加修订标记。 |
| [NO_PROTECTION](#NO-PROTECTION) | 文档不受保护。 |
| [READ_ONLY](#READ-ONLY) | 不允许对文档进行任何更改。 |
| [length](#length) |  |
## 方法

| 方法 | 描述 |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [fromName(String protectionTypeName)](#fromName-java.lang.String-) |  |
| [getClass()](#getClass--) |  |
| [getName(int protectionType)](#getName-int-) |  |
| [getValues()](#getValues--) |  |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [toString()](#toString--) |  |
| [toString(int protectionType)](#toString-int-) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### ALLOW_ONLY_COMMENTS {#ALLOW-ONLY-COMMENTS}
```
public static int ALLOW_ONLY_COMMENTS
```


用户只能修改文档中的注释。

### ALLOW_ONLY_FORM_FIELDS {#ALLOW-ONLY-FORM-FIELDS}
```
public static int ALLOW_ONLY_FORM_FIELDS
```


用户只能在文档的表单域中输入数据。

### ALLOW_ONLY_REVISIONS {#ALLOW-ONLY-REVISIONS}
```
public static int ALLOW_ONLY_REVISIONS
```


用户只能向文档添加修订标记。

### NO_PROTECTION {#NO-PROTECTION}
```
public static int NO_PROTECTION
```


文档不受保护。

### READ_ONLY {#READ-ONLY}
```
public static int READ_ONLY
```


不允许对文档进行任何更改。自 Microsoft Word 2003 起可用。

### length {#length}
```
public static int length
```


### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**退货：**
布尔值
### fromName(String protectionTypeName) {#fromName-java.lang.String-}
```
public static int fromName(String protectionTypeName)
```




**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| protectionTypeName | java.lang.String |  |

**退货：**
整数
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**退货：**
java.lang.Class<?>
### getName(int protectionType) {#getName-int-}
```
public static String getName(int protectionType)
```




**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| protectionType | int |  |

**退货：**
java.lang.字符串
### getValues() {#getValues--}
```
public static int[] getValues()
```




**退货：**
整数[]
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**退货：**
整数
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### toString() {#toString--}
```
public String toString()
```




**退货：**
java.lang.字符串
### toString(int protectionType) {#toString-int-}
```
public static String toString(int protectionType)
```




**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| protectionType | int |  |

**退货：**
java.lang.字符串
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |
