このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XInterface
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: uno ::

interface XInterface
Description
base interface of all UNO interfaces

It 供給するs lifetime 支配(する)/統制する by 言及/関連 counting and the 可能性 of querying for other interfaces of the same 論理(学)の 反対する.

"論理(学)の 反対する" in this 事例/患者 means that the interfaces 現実に can be supported by 内部の (e.g. aggregated) physical 反対するs.

Deriving from this interface is 義務的な for all UNO interfaces.

Each language binding (Java, C++, StarBasic, Python, ... ) may 供給する a different mapping of this interface, please look into the language 扶養家族 documention.

The UNO 反対する does not 輸出(する) the 明言する/公表する of the 言及/関連 count (acquire() and 解放(する)() do not have return values). In general, also the UNO 反対する itself should not make any 仮定/引き受けること on the 固める/コンクリート value of the 言及/関連 count (except on the 移行 from one to 無 ).

Developers Guide
ProUNO - Lifetime of UNO 反対するs
FirstSteps - Using Services - Using Interfaces
ProUNO - Using UNO Interfaces
WritingUNO - XInterface
WritingUNO - 核心 Interfaces to 器具/実施する

Methods' 要約
queryInterface queries for a new interface to an 存在するing UNO 反対する.  
acquire 増加するs the 言及/関連 反対する by one.  
解放(する) 減少(する)s the 言及/関連 反対する by one.  
Methods' 詳細(に述べる)s
queryInterface
any
queryInterface( [in] type  aType );

Description
queries for a new interface to an 存在するing UNO 反対する.

The queryInterface() method is the 入ること/参加(者) point to 得る other interfaces which are 輸出(する)d by the 反対する. The 報知係 asks the 実施 of the 反対する, if it supports the interface 明示するd by the type argument. The call may either return with a interface 言及/関連 of the requested type or with a 無効の any.

There are 確かな specifications, a queryInterface() 実施 must not 侵害する/違反する.

1) If queryInterface on a 明確な/細部 反対する has once returned a valid interface 言及/関連 for a given type, it must return a valid 言及/関連 for any 連続する queryInterface calls on this 反対する for the same type.

2) If queryInterface on a 明確な/細部 反対する has once returned a null 言及/関連 for a given type, it must always return a null 言及/関連 for the same type.

3) If queryInterface on a 言及/関連 A returns 言及/関連 B, queryInterface on B for Type A must return interface 言及/関連 A or calls made on the returned 言及/関連 must be 同等(の) to calls made on 言及/関連 A.

4) If queryInterface on a 言及/関連 A returns 言及/関連 B, queryInterface on A and B for XInterface must return the same interface 言及/関連 (反対する 身元).

The 推論する/理由 for the strong specification is, that a Uno Runtime 環境 (URE) may choose to (武器などの)隠匿場所 queryInterface() calls.

As について言及するd above, 確かな language bindings may 地図/計画する this 機能(する)/行事 異なって also with different specifications, please visit the language 扶養家族 specification for it. The 現在の C++ binding sticks to the specification 明言する/公表する

The 支配するs について言及するd above are 基本的に 同一の to the 支配するs of QueryInterface in MS COM.

Parameter aType
a UNO interface type, for which an 反対する 言及/関連 shall be 得るd.
Returns
an interface 言及/関連 in 事例/患者 the requested interface is supported by the 反対する, a 無効の any さもなければ.
acquire
[oneway] 無効の
acquire();

Description
増加するs the 言及/関連 反対する by one.

When you have called acquire() on the UNO 反対する, it is often said, that you have a 言及/関連 or a hard 言及/関連 to the 反対する.

It is only 許すd to invoke a method on an UNO 反対する, when you keep a hard 言及/関連 to it.

Every call to acquire must be followed by a corresponding call to 解放(する) some time later, which may 結局 lead to the 破壊 of the 反対する.

解放(する)
[oneway] 無効の
解放(する)();

Description
減少(する)s the 言及/関連 反対する by one.

When the 言及/関連 反対する reaches 0, the 反対する gets 削除するd.

Calling 解放(する)() on the 反対する is often called 解放(する)ing or (疑いを)晴らすing the 言及/関連 to an 反対する.

最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.