public enum PasswordSaveOption extends Enum<PasswordSaveOption>
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
CompareOptions compareOptions = new CompareOptions();
compareOptions.setPasswordSaveOption(PasswordSaveOption.SOURCE);
comparer.compare(resultFile, compareOptions);
}
Comparer,
CompareOptions| Enum Constant and Description |
|---|
NONE
Do not save the password.
|
SOURCE
Use password from source document.
|
TARGET
Use password from target document.
|
USER
* Use password provided by user.
|
| Modifier and Type | Method and Description |
|---|---|
static PasswordSaveOption |
fromString(String toStringValue)
Parses string representation of PasswordSaveOption to get the enum constant.
|
String |
toString()
String representation of PasswordSaveOption.
|
static PasswordSaveOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PasswordSaveOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PasswordSaveOption NONE
Do not save the password.
public static final PasswordSaveOption SOURCE
Use password from source document.
public static final PasswordSaveOption TARGET
Use password from target document.
public static final PasswordSaveOption USER
* Use password provided by user.
public static PasswordSaveOption fromString(String toStringValue)
Parses string representation of PasswordSaveOption to get the enum constant.
toStringValue - The string representation of PasswordSaveOptionIllegalArgumentException - if string is not one of PasswordSaveOption valuespublic String toString()
String representation of PasswordSaveOption.
toString in class Enum<PasswordSaveOption>public static PasswordSaveOption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static PasswordSaveOption[] values()
for (PasswordSaveOption c : PasswordSaveOption.values()) System.out.println(c);
Copyright © 2024. All rights reserved.