Package org.apache.logging.log4j.message
Enum MapMessage.MapFormat
- All Implemented Interfaces:
Serializable
,Comparable<MapMessage.MapFormat>
- Enclosing class:
- MapMessage<M extends MapMessage<M,
V>, V>
When set as the format specifier causes the Map to be formatted as XML.
-
Enum Constant Summary
Enum ConstantDescriptionThe map should be formatted the same as documented byAbstractMap.toString()
.The map should be formatted the same as documented byAbstractMap.toString()
but without quotes.The map should be formatted as JSON.The map should be formatted as XML. -
Method Summary
Modifier and TypeMethodDescriptionstatic MapMessage.MapFormat
lookupIgnoreCase
(String format) Maps a format name to anMapMessage.MapFormat
while ignoring case.static String[]
names()
AllMapFormat
names.static MapMessage.MapFormat
Returns the enum constant of this type with the specified name.static MapMessage.MapFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
XML
The map should be formatted as XML. -
JSON
The map should be formatted as JSON. -
JAVA
The map should be formatted the same as documented byAbstractMap.toString()
. -
JAVA_UNQUOTED
The map should be formatted the same as documented byAbstractMap.toString()
but without quotes.- Since:
- 2.11.2
-
-
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
-
lookupIgnoreCase
Maps a format name to anMapMessage.MapFormat
while ignoring case.- Parameters:
format
- a MapFormat name- Returns:
- a MapFormat
- Since:
- 2.8
-
names
AllMapFormat
names.- Returns:
- All
MapFormat
names. - Since:
- 2.8
-