public abstract class I18NStringVisitor extends ElementVisitor
string( ElementContext, String ) is called
with the resulting string.An error is logged if the rskey attribute is present on the element but no rsbundle was defined in an ancestor extension element.
ElementVisitor.ResourceBundleProvider| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
KEY_RSKEY |
KEY_LOCATOR| Constructor and Description |
|---|
I18NStringVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
end(ElementEndContext end)
Visit the end tag of an xml element.
|
void |
start(ElementStartContext start)
Visit the start tag of an xml element.
|
protected abstract void |
string(ElementContext context,
java.lang.String string)
Called when the visitor has processed a translatable string.
|
getAttributeHelper, getClassLoader, getMetaClassLoader, getResourceBundle, getResourceBundleProvider, getTextHelper, log, log, setResourceBundleProviderprotected static final java.lang.String KEY_RSKEY
public void start(ElementStartContext start)
ElementVisitorThis implementation does nothing.
start in class ElementVisitorstart - information about the xml start tag.public void end(ElementEndContext end)
ElementVisitorThis implementation does nothing.
end in class ElementVisitorend - information about the xml end tag.protected abstract void string(ElementContext context, java.lang.String string)
context - the context for parsing.string - the (possibly translated) string.