|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.ide.extension.ElementVisitor
javax.ide.extension.I18NStringVisitor
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 ) 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.
| Field Summary | |
protected static java.lang.String |
KEY_RSKEY
|
| Fields inherited from class javax.ide.extension.ElementVisitor |
KEY_LOCATOR |
| Constructor Summary | |
I18NStringVisitor()
|
|
| Method Summary | |
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. |
| Methods inherited from class javax.ide.extension.ElementVisitor |
log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String KEY_RSKEY
| Constructor Detail |
public I18NStringVisitor()
| Method Detail |
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.
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.