public class I18nTransformer extends I18nTransformer
I18nTransformer.CatalogueInfo
Modifier and Type | Field and Description |
---|---|
private Configuration |
_conf |
private long |
_lastConfigureTime
The time the configure method was lastly called on this instance
|
protected ServiceManager |
_manager
the avalon service manager
|
private static long |
_needsReloadTime |
private SkinsManager |
_skinsManager |
_context
CURRENCY_LOCALE_ATTRIBUTE, factory, I18N_ATTR_ATTRIBUTE, I18N_CATALOGUE_ATTRIBUTE, I18N_CHOOSE_ELEMENT, I18N_CURRENCY_ELEMENT, I18N_CURRENCY_NO_UNIT_ELEMENT, I18N_DATE_ELEMENT, I18N_DATE_TIME_ELEMENT, I18N_DEFAULT_CATALOGUE_ID, I18N_EXPR_ATTRIBUTE, I18N_FRACTION_DIGITS_ATTRIBUTE, I18N_IF_ELEMENT, I18N_INT_CURRENCY_ELEMENT, I18N_INT_CURRENCY_NO_UNIT_ELEMENT, I18N_KEY_ATTRIBUTE, I18N_LOCALE, I18N_LOCALE_ATTRIBUTE, I18N_NAMESPACE_URI, I18N_NUMBER_ELEMENT, I18N_OLD_NAMESPACE_URI, I18N_OTHERWISE_ELEMENT, I18N_PARAM_ELEMENT, I18N_PARAM_NAME_ATTRIBUTE, I18N_PATTERN_ATTRIBUTE, I18N_PERCENT_ELEMENT, I18N_PRELOAD, I18N_SRC_LOCALE_ATTRIBUTE, I18N_SRC_PATTERN_ATTRIBUTE, I18N_TEXT_ELEMENT, I18N_TIME_ELEMENT, I18N_TRANSLATE_ELEMENT, I18N_TYPE_ATTRIBUTE, I18N_UNTRANSLATED, I18N_VALUE_ATTRIBUTE, I18N_WHEN_ELEMENT, locale, manager, objectModel
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
ROLE
Constructor and Description |
---|
I18nTransformer() |
Modifier and Type | Method and Description |
---|---|
private void |
_configure() |
private void |
_configureCatalogue(DefaultConfiguration catalogues,
String dirName,
String catalogName) |
private ParamSaxBuffer |
_getExternalMessage(String externalLocation,
String key) |
void |
configure(Configuration conf) |
protected ParamSaxBuffer |
getMessage(String catalogueID,
String key) |
static void |
needsReload()
Call this method when you change the list of i18n catalogues
by adding a new skin for example. |
void |
service(ServiceManager smanager) |
void |
setup(SourceResolver resolver,
Map objModel,
String source,
Parameters parameters) |
contextualize, getUntranslatedMessage
characters, dispose, endElement, endPrefixMapping, getKey, getLocale, getValidity, recycle, startElement, startPrefixMapping
comment, endCDATA, endDocument, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
setConsumer
private static long _needsReloadTime
protected ServiceManager _manager
private Configuration _conf
private long _lastConfigureTime
private SkinsManager _skinsManager
public I18nTransformer()
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
configure
in class I18nTransformer
ConfigurationException
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class I18nTransformer
ServiceException
private void _configure() throws ConfigurationException
ConfigurationException
private void _configureCatalogue(DefaultConfiguration catalogues, String dirName, String catalogName)
protected ParamSaxBuffer getMessage(String catalogueID, String key)
getMessage
in class I18nTransformer
private ParamSaxBuffer _getExternalMessage(String externalLocation, String key)
public static void needsReload()
public void setup(SourceResolver resolver, Map objModel, String source, Parameters parameters) throws ProcessingException, SAXException, IOException
setup
in interface SitemapModelComponent
setup
in class I18nTransformer
ProcessingException
SAXException
IOException