public class XmlFormatter<T extends XmlFormatter<T>> extends Object
Constructor and Description |
---|
XmlFormatter(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
dateFormat()
The date/time format pattern.
|
T |
dateFormat(String value)
The date/time format pattern.
|
ExceptionOutputType |
exceptionOutputType()
Indicates how the cause of the logged message, if one is available, will
be added to the XML output.
|
T |
exceptionOutputType(ExceptionOutputType value)
Indicates how the cause of the logged message, if one is available, will
be added to the XML output.
|
String |
getKey() |
T |
keyOverride(String key,
Object value)
Allows the names of the keys for the XML properties to be overridden.
|
Map |
keyOverrides()
Allows the names of the keys for the XML properties to be overridden.
|
T |
keyOverrides(Map value)
Allows the names of the keys for the XML properties to be overridden.
|
Map |
metaData()
Sets the meta data to use in the XML format.
|
T |
metaData(Map value)
Sets the meta data to use in the XML format.
|
T |
metaDatum(String key,
Object value)
Sets the meta data to use in the XML format.
|
String |
namespaceUri()
Sets the namespace URI used for each record if print-namespace attribute
is true.
|
T |
namespaceUri(String value)
Sets the namespace URI used for each record if print-namespace attribute
is true.
|
Boolean |
prettyPrint()
Indicates whether or not pretty printing should be used when formatting.
|
T |
prettyPrint(Boolean value)
Indicates whether or not pretty printing should be used when formatting.
|
Boolean |
printDetails()
Sets whether or not details should be printed.
|
T |
printDetails(Boolean value)
Sets whether or not details should be printed.
|
Boolean |
printNamespace()
Turns on or off the printing of the namespace for each
|
T |
printNamespace(Boolean value)
Turns on or off the printing of the namespace for each
|
String |
recordDelimiter()
The value to be used to indicate the end of a record.
|
T |
recordDelimiter(String value)
The value to be used to indicate the end of a record.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
String |
zoneId()
The zone ID for formatting the date and time.
|
T |
zoneId(String value)
The zone ID for formatting the date and time.
|
public XmlFormatter(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public String dateFormat()
public T dateFormat(String value)
public ExceptionOutputType exceptionOutputType()
public T exceptionOutputType(ExceptionOutputType value)
public Map keyOverrides()
public T keyOverrides(Map value)
public T keyOverride(String key, Object value)
public Map metaData()
public T metaData(Map value)
public T metaDatum(String key, Object value)
public String namespaceUri()
public T namespaceUri(String value)
public Boolean prettyPrint()
public T prettyPrint(Boolean value)
public Boolean printDetails()
public T printDetails(Boolean value)
public Boolean printNamespace()
public T printNamespace(Boolean value)
public String recordDelimiter()
public T recordDelimiter(String value)
public String zoneId()
Copyright © 2019 JBoss by Red Hat. All rights reserved.