Package org.docx4j.org.apache.fop.events
Class EventFormatter
java.lang.Object
org.docx4j.org.apache.fop.events.EventFormatter
public final class EventFormatter
extends java.lang.Object
Converts events into human-readable, localized messages.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventFormatter.LookupFieldPartFactoryPartFactory for lookups. -
Method Summary
Modifier and Type Method Description static java.lang.Stringformat(Event event)Formats an event using the default locale.static java.lang.Stringformat(Event event, java.lang.String pattern)Formats the event using a given pattern.static java.lang.Stringformat(Event event, java.util.Locale locale)Formats an event using a given locale.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
format
Formats an event using the default locale.- Parameters:
event- the event- Returns:
- the formatted message
-
format
Formats an event using a given locale.- Parameters:
event- the eventlocale- the locale- Returns:
- the formatted message
-
format
Formats the event using a given pattern. The pattern needs to be compatible withAdvancedMessageFormat.- Parameters:
event- the eventpattern- the pattern (compatible withAdvancedMessageFormat)- Returns:
- the formatted message
-