附录 A: OpenOffice.org API 设计规则

From Apache OpenOffice Wiki
< Zh‎ | Documentation
Revision as of 02:56, 18 June 2008 by Jirong (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


以下规则适用于 OpenOffice 的所有外部编程接口规范。API 包含以下构造型或设计元素:

结构

结构用于指定简单组合的数据元素。(结构只包含数据,不包含方法。)

异常

异常用于错误处理。(可以使用any 抛出或传输异常。)

接口

接口用于指定行为的单个方面。(接口只包含方法,不包含数据。)

服务

服务用于指定抽象对象。(服务指定所支持接口的属性和交互性。)

类型定义

类型定义用于定义具有特定用途的基本类型。(应谨慎使用此结构型。)
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages