Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

javax.ide.extension
Class I18NCharVisitor

java.lang.Object
  extended by javax.ide.extension.ElementVisitor
      extended by javax.ide.extension.I18NCharVisitor

public abstract class I18NCharVisitor
extends ElementVisitor

An element visitor that processes xml elements of type i18n_char. 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, characterValue( ElementContext, char ) is called with the first non-whitespace character of 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.ide.extension.ElementVisitor
ElementVisitor.ResourceBundleProvider
 
Field Summary
 
Fields inherited from class javax.ide.extension.ElementVisitor
KEY_LOCATOR
 
Constructor Summary
I18NCharVisitor()
           
 
Method Summary
protected abstract  void characterValue(ElementContext context, char value)
           
 void end(ElementEndContext context)
          Visit the end tag of an xml element.
 void start(ElementStartContext context)
          Visit the start tag of an xml element.
 
Methods inherited from class javax.ide.extension.ElementVisitor
getAttributeHelper, getClassLoader, getMetaClassLoader, getResourceBundle, getResourceBundleProvider, getTextHelper, log, log, setResourceBundleProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18NCharVisitor

public I18NCharVisitor()
Method Detail

start

public final void start(ElementStartContext context)
Description copied from class: ElementVisitor
Visit the start tag of an xml element.

This implementation does nothing.

Overrides:
start in class ElementVisitor
Parameters:
context - information about the xml start tag.

end

public final void end(ElementEndContext context)
Description copied from class: ElementVisitor
Visit the end tag of an xml element.

This implementation does nothing.

Overrides:
end in class ElementVisitor
Parameters:
context - information about the xml end tag.

characterValue

protected abstract void characterValue(ElementContext context,
                                       char value)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.