Class I18nMessageHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.ametys.plugins.workflow.support.I18nMessageHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
This class is intended to be use as a simple helper to construct Map for i18n
message from SAX events.
Each pair key/value will be put (as Strings) in the constructed Map
Each pair key/value will be put (as Strings) in the constructed Map
-
Constructor Summary
ConstructorDescriptionI18nMessageHandler
(Map<I18nizableText, String> i18nMessages, String catalog) Construct a I18nMessageHandler -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String uri, String localName, String qName) void
startElement
(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
I18nMessageHandler
Construct a I18nMessageHandler- Parameters:
i18nMessages
- The map representing each pair of key/value for i18n messagecatalog
- The catalog of the messages
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-