首页> 外国专利> 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.
机译:提供了一种用于为Java类型的语言的文本显示选择期望的语言的方法和系统。可加载的Java程序中的本地化类定义了显示的文本部分。在应用程序(200)开始时,Java虚拟机(150)加载该类,并且通过用户输入或其他方式来确定应当将可用的一组语言中的哪一种用于文本。基于该确定,调用Java类型的代码的静态初始化器,并且其从标记语言文档(优选地,XML文档)加载(13)适当的语言文本。然后,使用标记语言文档中的相应文本段来初始化变量(17)。然后,该应用程序可以照常运行(25)。优选地,在静态初始化之后,检查本地化类的字段以确认所有字段都包含文本。

著录项

  • 公开/公告号EP1333374A1

    专利类型

  • 公开/公告日2003-08-06

    原文格式PDF

  • 申请/专利权人 SAP AKTIENGESELLSCHAFT;

    申请/专利号EP20010114123

  • 发明设计人 KREBS ANDREAS;

    申请日2001-06-11

  • 分类号G06F9/44;

  • 国家 EP

  • 入库时间 2022-08-21 23:49:19

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号