java.lang.Object
javax.ide.extension.ElementVisitor
javax.ide.extension.I18NStringVisitor
- public abstract class I18NStringVisitor
- extends ElementVisitor
An element visitor that processes xml elements of type i18n_string. If
the element has an rskey attribute and an ancestor extension element defined
a bundle using the rsbundle attribute, this implementation will use
ResourceBundle.getBundle() to load a string resource from the bundle class.
If no rskey attribute is present, the text of the element will be used
instead. In either case, string( ElementContext, String ) 55 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_RSKEY
protected static final java.lang.String KEY_RSKEY
- See Also:
- Constant Field Values
I18NStringVisitor
public I18NStringVisitor()
start
public void start(ElementStartContext start)
- Description copied from class:
ElementVisitor
- Visit the start tag of an xml element.
This implementation does nothing.
- Overrides:
start in class ElementVisitor
end
public void end(ElementEndContext end)
- Description copied from class:
ElementVisitor
- Visit the end tag of an xml element.
This implementation does nothing.
- Overrides:
end in class ElementVisitor
lookupResource
private java.lang.String lookupResource(ElementContext context,
java.lang.String bundleClass,
java.lang.String key)
string
protected abstract void string(ElementContext context,
java.lang.String string)
- Called when the visitor has processed a translatable string.