Package net.sf.saxon.trans
Enum RecoveryPolicy
- All Implemented Interfaces:
Serializable
,Comparable<RecoveryPolicy>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConstant indicating that when a recoverable error occurs, the processor should not attempt to take the defined recovery action, but should terminate with an error.Constant indicating that the processor should take the recovery action when a recoverable error occurs, with no warning message.Constant indicating that the processor should produce a warning when a recoverable error occurs, and should then take the recovery action and continue. -
Method Summary
Modifier and TypeMethodDescriptionstatic RecoveryPolicy
fromString
(String s) static RecoveryPolicy
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.
-
Enum Constant Details
-
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. -
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
-