首页>
外国专利>
Dynamic generation of language localized and self-verified Java classes using XML descriptions and static initializers
Dynamic generation of language localized and self-verified Java classes using XML descriptions and static initializers
展开▼
机译:使用XML描述和静态初始化程序动态生成语言本地化和自我验证的Java类
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method and a system for selecting a desired language for text displays in a Java-type language is provided. A localization class in the loadable Java program defines the text portions of the displays. At start of the application (200), the Java virtual machine (150) loads this class and a determination is made, by user input or otherwise, of which of a group of languages available should be used for the text. Based on the determination, the static initializer of Java-type code is invoked, and it loads (13) the appropriate language text from a markup language document, preferably an XML document. The appropriate text segments from the markup language document are then used to initialize the variables (17). The application then can proceed to run as usual (25). Preferably, after the static initialization, the fields of the localization class are checked to confirm that all fields contain text.
展开▼