public enum RecoveryPolicy extends java.lang.Enum<RecoveryPolicy>
| Enum Constant and Description |
|---|
DO_NOT_RECOVER
Constant indicating that when a recoverable error occurs, the
processor should not attempt to take the defined recovery action,
but should terminate with an error.
|
RECOVER_SILENTLY
Constant indicating that the processor should take the recovery action
when a recoverable error occurs, with no warning message.
|
RECOVER_WITH_WARNINGS
Constant indicating that the processor should produce a warning
when a recoverable error occurs, and should then take the recovery
action and continue.
|
| Modifier and Type | Method and Description |
|---|---|
static RecoveryPolicy |
fromString(java.lang.String s) |
static RecoveryPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RecoveryPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecoveryPolicy RECOVER_SILENTLY
public static final RecoveryPolicy RECOVER_WITH_WARNINGS
public static final RecoveryPolicy DO_NOT_RECOVER
public static RecoveryPolicy[] values()
for (RecoveryPolicy c : RecoveryPolicy.values()) System.out.println(c);
public static RecoveryPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static RecoveryPolicy fromString(java.lang.String s)
Copyright (c) 2004-2021 Saxonica Limited. All rights reserved.