Interface MessageCatalogFormat
-
- All Known Implementing Classes:
PropertiesFormat
public interface MessageCatalogFormat
Interface for writing various message catalog formats.
WARNING: this API is expected to change as we develop additional message catalog formats. In particular, this interface will be extended to support reading message catalogs and further changes may be required.
Implementations of this interface are executed at compile time and therefore must not contain any JSNI code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getExtension()
Returns the extension to use for this file type, including the dot.void
write(TreeLogger logger, java.lang.String locale, com.google.gwt.i18n.rebind.AbstractResource.ResourceList resourceList, java.io.PrintWriter out, JClassType messageInterface)
Write a message catalog file.
-
-
-
Method Detail
-
write
void write(TreeLogger logger, java.lang.String locale, com.google.gwt.i18n.rebind.AbstractResource.ResourceList resourceList, java.io.PrintWriter out, JClassType messageInterface) throws UnableToCompleteException
Write a message catalog file.- Parameters:
logger
- TreeLogger for logging errors/etclocale
- locale of this output fileresourceList
- the contents to writeout
- the PrintWriter to generate output onmessageInterface
- the interface to create (so additional annotations may be accessed)- Throws:
UnableToCompleteException
- if a fatal error prevents generating the output file. In this case, the implementation must have already logged an appropriate ERROR message to the logger.
-
getExtension
java.lang.String getExtension()
Returns the extension to use for this file type, including the dot.
-
-