com.ibm.xml.xapi
Enum XMessageHandler.MsgType
java.lang.Object
java.lang.Enum<XMessageHandler.MsgType>
com.ibm.xml.xapi.XMessageHandler.MsgType
- All Implemented Interfaces:
- Serializable, Comparable<XMessageHandler.MsgType>
- Enclosing interface:
- XMessageHandler
public static enum XMessageHandler.MsgType
- extends Enum<XMessageHandler.MsgType>
Enumerator of message error levels.
INFO
- Indicates an informational message. These messages are simply
informational and will not affect the result. This is also the message
type that is used for the XSLT xsl:message
instruction
when the terminate attribute evaluates to "no".
WARNING
- Indicates a warning message. The processor will recover from
a warning situation but the output may not be what was expected.
For example if the value of the xsl:sort
data-type
attribute is
unsupported, a warning will be issued and the data-type
attribute
will be ignored.
ERROR
- Indicates an error message. The processor may recover from the
error for the purpose of signalling additional errors but no result
will be produced.
FATAL_ERROR
- Indicates a fatal error message. The processor cannot recover from
these errors and no result is produced. This is also the message
type that is used for the XSLT xsl:message
instruction
when the terminate attribute evaluates to "yes".
TRACE
- Indicates that the message was generated by a call to
the XPath fn:trace
function.
INFO
public static final XMessageHandler.MsgType INFO
WARNING
public static final XMessageHandler.MsgType WARNING
ERROR
public static final XMessageHandler.MsgType ERROR
FATAL_ERROR
public static final XMessageHandler.MsgType FATAL_ERROR
TRACE
public static final XMessageHandler.MsgType TRACE
values
public static XMessageHandler.MsgType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (XMessageHandler.MsgType c : XMessageHandler.MsgType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static XMessageHandler.MsgType valueOf(String name)
- 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 name
NullPointerException
- if the argument is null