public class FieldMDPOptionSpec extends Object implements Serializable
The fields locked can be any form fields and not necessarily signature fields.
An object of this type consists of two sub parts:
FieldMDPAction
,
which specifies the type of action.INCLUDE
or EXCLUDE
.Constructor and Description |
---|
FieldMDPOptionSpec()
The default constructor that is equivalent to applying No FieldMDP options.
|
FieldMDPOptionSpec(FieldMDPAction action,
String[] fields)
A constructor that takes a
FieldMDPAction object and a list of fully qualified names of form fields
on which the action is applied. |
Modifier and Type | Method and Description |
---|---|
FieldMDPAction |
getAction()
Returns the
FieldMDPAction object that is associated with this object. |
String[] |
getFields()
Returns the PDF document fields associated with this object.
|
void |
setAction(FieldMDPAction action)
Sets the
FieldMDPAction object associated with this object. |
void |
setFields(String[] fields)
Sets the PDF document fields associated with this object.
|
String |
toString()
Returns a string representation of this class.
|
public FieldMDPOptionSpec()
public FieldMDPOptionSpec(FieldMDPAction action, String[] fields)
FieldMDPAction
object and a list of fully qualified names of form fields
on which the action is applied.action
- The applicable FieldMDPAction
object. If
this value is null, fields are not locked.fields
- The list of fully qualified names of other form fields on
which the specified action is applied.
The list can be null only if the action is
FieldMDPAction
.ALL. If it contains names of fields that do not exist, they are ignored.
If action is FieldMDPAction
.INCLUDE or
FieldMDPAction
.EXCLUDE and either the list is null or
evaluates to null after removing the invalid entries, fields are not locked.public FieldMDPAction getAction()
FieldMDPAction
object that is associated with this object.FieldMDPAction
object that is associated with this object.public String[] getFields()
public String toString()
toString
in class Object
Object.toString()
public void setAction(FieldMDPAction action)
FieldMDPAction
object associated with this object.action
- The FieldMDPAction
object associated with this object.public void setFields(String[] fields)
fields
- A string array that represents a list of the fully qualified names of the fields located in the PDF document.Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.