|
UDK 3.2.7 Java API 言及/関連 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.sun.星/主役にする.uno
Class UnoRuntime
java.lang.反対するcom.sun.星/主役にする.uno.UnoRuntime
public class UnoRuntime
- 延長するs 反対する
The central class needed for 器具/実施するing or using UNO 構成要素s in Java.
The methods queryInterface and areSame 委任する/代表
calls to the 器具/実施するing 反対するs and are used instead of casts,
instanceof, ==, and equals.
For historic 推論する/理由s, this class is not final, and has a
public 建設者. These artifacts are considered mistakes,
which might be 訂正するd in a 未来 見解/翻訳/版 of this class, so (弁護士の)依頼人 code
should not rely on them.
- See Also:
IBridge,IEnvironment,IQueryInterface
| Field 要約 | |
|---|---|
static boolean |
DEBUG
Deprecated. As of UDK 3.2.0, do not use this 内部の field. |
| 建設者 要約 | |
|---|---|
UnoRuntime()
Deprecated. As of UDK 3.2.0, do not create instances of this class. It is considered a historic mistake to have a public
建設者 for this class, which only has static members.
Also, this class might be changed to become final in a
未来 見解/翻訳/版. |
|
| Method 要約 | ||
|---|---|---|
static boolean |
areSame(反対する any1,
反対する any2)
実験(する)s two UNO ANY values for equality. |
|
static 反対する |
completeValue(Type type,
反対する value)
完全にする a UNO value (make sure it is no 無効の null
value). |
|
static String |
generateOid(反対する 反対する)
生成するs a world wide unique 反対する identifier (OID) for the given Java 反対する. |
|
static IBridge |
getBridge(IEnvironment from,
IEnvironment to,
反対する[] args)
Deprecated. As of UDK 3.2.0, this method is deprecated, without 申し込む/申し出ing a 交替/補充. |
|
static IBridge |
getBridgeByName(String from,
反対する fromContext,
String to,
反対する toContext,
反対する[] args)
Deprecated. As of UDK 3.2.0, this method is deprecated, without 申し込む/申し出ing a 交替/補充. |
|
static IBridge[] |
getBridges()
Deprecated. As of UDK 3.2.0, this method is deprecated, without 申し込む/申し出ing a 交替/補充. |
|
static XCurrentContext |
getCurrentContext()
Gets the 現在の 状況 of the 現在の thread, or null if
no 状況 has been 始める,決める for the 現在の thread. |
|
static IEnvironment |
getEnvironment(String 指名する,
反対する 状況)
Deprecated. As of UDK 3.2.0, this method is deprecated, without 申し込む/申し出ing a 交替/補充. |
|
static IMapping |
getMapping(IEnvironment from,
IEnvironment to)
Deprecated. As of UDK 3.2.0, this method is deprecated, without 申し込む/申し出ing a 交替/補充. |
|
static IMapping |
getMappingByName(String from,
String to)
Deprecated. As of UDK 3.2.0, this method is deprecated, without 申し込む/申し出ing a 交替/補充. |
|
static String |
getUniqueKey()
生成するs a world wide unique identifier string. |
|
static
|
queryInterface(Class<T> zInterface,
反対する 反対する)
Queries the given UNO 反対する for the given Java class (which must 代表する a UNO interface type). |
|
static 反対する |
queryInterface(Type type,
反対する 反対する)
Queries the given UNO 反対する for the given UNO interface type. |
|
static boolean |
reset()
Deprecated. As of UDK 3.2.0, this method is deprecated, without 申し込む/申し出ing a 交替/補充. |
|
static 無効の |
setCurrentContext(XCurrentContext 状況)
始める,決めるs the 現在の 状況 for the 現在の thread. |
|
| Methods 相続するd from class java.lang.反対する |
|---|
clone, equals, 完結する, getClass, hashCode, 通知する, notifyAll, toString, wait, wait, wait |
| Field 詳細(に述べる) |
|---|
DEBUG
public static final boolean DEBUG
- Deprecated. As of UDK 3.2.0, do not use this 内部の field.
- See Also:
- Constant Field Values
| 建設者 詳細(に述べる) |
|---|
UnoRuntime
public UnoRuntime()
- Deprecated. As of UDK 3.2.0, do not create instances of this class.
It is considered a historic mistake to have a
public建設者 for this class, which only hasstaticmembers. Also, this class might be changed to becomefinalin a 未来 見解/翻訳/版.
| Method 詳細(に述べる) |
|---|
getUniqueKey
public static String getUniqueKey()
- 生成するs a world wide unique identifier string.
It is 保証(人)d that every invocation of this method 生成するs a new ID, which is unique within the VM. The 質 of “world wide unique” will depend on the actual 実施, you should look at the source to 決定する if it 会合,会うs your 必要物/必要条件s.
- Returns:
- a unique
String
generateOid
public static String generateOid(反対する 反対する)
- 生成するs a world wide unique 反対する identifier (OID) for the given
Java 反対する.
It is 保証(人)d that その後の calls to this method with the same Java 反対する will give the same ID.
This method is 一般に of little use for (弁護士の)依頼人 code. It should be considered a mistake that this method is published at all.
- Parameters:
反対する- any 反対する for which a OID shall be 生成するd; must not benull- Returns:
- the 生成するd OID
- See Also:
IQueryInterface.getOid()
queryInterface
public static 反対する queryInterface(Type type, 反対する 反対する)
- Queries the given UNO 反対する for the given UNO interface type.
This method returns
nullin 事例/患者 the given UNO 反対する does not support the given UNO interface type (or is itselfnull). さもなければ, a 言及/関連 to a Java 反対する 器具/実施するing the Java interface type corresponding to the given UNO interface is returned. In the latter 事例/患者, it is 明示していない whether the returned Java 反対する is the same as the given 反対する, or is another facet of that UNO 反対する.- Parameters:
type- the requested UNO interface type; must be aType反対する 代表するing a UNO interface type反対する- a 言及/関連 to any Java 反対する 代表するing (a facet of) a UNO 反対する; may benull- Returns:
- a 言及/関連 to the requested UNO interface type if 利用できる,
さもなければ
null - See Also:
IQueryInterface.queryInterface(com.sun.星/主役にする.uno.Type)
queryInterface
public static <T> T queryInterface(Class<T> zInterface, 反対する 反対する)
- Queries the given UNO 反対する for the given Java class (which must
代表する a UNO interface type).
- Parameters:
ifc- a Java class 代表するing a UNO interface type反対する- a 言及/関連 to any Java 反対する 代表するing (a facet of) a UNO 反対する; may benull- Returns:
- a 言及/関連 to the requested UNO interface type if 利用できる,
さもなければ
null - See Also:
queryInterface(Type, 反対する)
areSame
public static boolean areSame(反対する any1, 反対する any2)
- 実験(する)s two UNO
ANYvalues for equality.Two UNO values are equal if and only if they are of the same UNO type t, and they 会合,会う the に引き続いて 条件, depending on t:
- If t is a 原始の type, then both values must denote the same element of the 始める,決める of values of t.
- If t is a structured type, then both values must recursively 含む/封じ込める corresponding values that are equal.
- If t is an interface type, then the two values must be either both null 言及/関連s, or both 言及/関連s to the same UNO 反対する.
- Parameters:
any1- a Java value 代表するing a UNOANYvalue.any2- a Java value 代表するing a UNOANYvalue.- Returns:
trueif and only if the two arguments 代表する equal UNO values.
completeValue
public static final 反対する completeValue(Type type, 反対する value)
- 完全にする a UNO value (make sure it is no 無効の
nullvalue).This is useful for members of parameterized type of instantiated polymorphic struct types, as
nullis a valid value there (and only there, for all types exceptANYand interface types).- Parameters:
type- a 非,不,無-無効の, 非,不,無-exception UNO type.value- a Java value 代表するing a UNO value of the given UNO type, ornull.- Returns:
- the given value, or the 中立の value of the given type, if the
given value was an 無効の
nullvalue. - Since:
- UDK 3.2.3
getCurrentContext
public static XCurrentContext getCurrentContext()
- Gets the 現在の 状況 of the 現在の thread, or
nullif no 状況 has been 始める,決める for the 現在の thread.The 現在の 状況 is thread 地元の, which means that this method returns the 状況 that was last 始める,決める for this thread.
- Returns:
- the 現在の 状況 of the 現在の thread, or
nullif no 状況 has been 始める,決める for the 現在の thread
setCurrentContext
public static 無効の setCurrentContext(XCurrentContext 状況)
- 始める,決めるs the 現在の 状況 for the 現在の thread.
The 現在の 状況 is thread 地元の. To support a stacking behaviour, every 機能(する)/行事 that 始める,決めるs the 現在の 状況 should reset it to the 初めの value when 出口ing (for example, within a
finally封鎖する).- Parameters:
状況- the 状況 to be 始める,決める; ifnull, any 以前 始める,決める 状況 will be 除去するd
getEnvironment
public static IEnvironment getEnvironment(String 指名する, 反対する 状況) throws Exception
- Deprecated. As of UDK 3.2.0, this method is deprecated, without
申し込む/申し出ing a 交替/補充.
- Retrieves an 環境 of type
指名するwith 状況状況.環境s are held weakly by this class. If the requested 環境 already 存在するs, this methods 簡単に returns it. さもなければ, this method looks for it under
com.sun.星/主役にする.lib.uno.環境s.指名する.指名する_environment.- Parameters:
指名する- the 指名する of the 環境状況- the 状況 of the 環境- Throws:
Exception- See Also:
IEnvironment
- Retrieves an 環境 of type
getBridge
public static IBridge getBridge(IEnvironment from, IEnvironment to, 反対する[] args) throws Exception
- Deprecated. As of UDK 3.2.0, this method is deprecated, without
申し込む/申し出ing a 交替/補充.
- Gets a 橋(渡しをする) from 環境
fromto 環境to.Creates a new 橋(渡しをする), if the requested 橋(渡しをする) does not yet 存在する, and 手渡すs the arguments to the 橋(渡しをする).
If the requested 橋(渡しをする) does not 存在する, it is searched for in 一括
com.sun.星/主役にする.lib.uno.橋(渡しをする)s.from_to;and the root classpath asfrom_to_bridge.- Parameters:
from- the source 環境to- the 的 環境args- the 初期の arguments for the 橋(渡しをする)- Returns:
- the requested 橋(渡しをする)
- Throws:
Exception- See Also:
getBridgeByName(java.lang.String, java.lang.反対する, java.lang.String, java.lang.反対する, java.lang.反対する[]),IBridge,IEnvironment
- Gets a 橋(渡しをする) from 環境
getBridgeByName
public static IBridge getBridgeByName(String from, 反対する fromContext, String to, 反対する toContext, 反対する[] args) throws Exception
- Deprecated. As of UDK 3.2.0, this method is deprecated, without
申し込む/申し出ing a 交替/補充.
- Gets a 橋(渡しをする) from 環境
fromto 環境to.Creates a new 橋(渡しをする), if the requested 橋(渡しをする) does not yet 存在する, and 手渡すs the arguments to the 橋(渡しをする).
If the requested 橋(渡しをする) does not 存在する, it is searched for in 一括
com.sun.星/主役にする.lib.uno.橋(渡しをする)s.from_to;and the root classpath asfrom_to_bridge. The used 環境s are retrieved throughgetEnvironment.- Parameters:
from- the 指名する of the source 環境fromContext- the 状況 for the source 環境to- the 指名する of the 的 環境toContext- the 状況 for the 的 環境args- the 初期の arguments for the 橋(渡しをする)- Returns:
- the requested 橋(渡しをする)
- Throws:
Exception- See Also:
getBridge(com.sun.星/主役にする.uno.IEnvironment, com.sun.星/主役にする.uno.IEnvironment, java.lang.反対する[]),getEnvironment(java.lang.String, java.lang.反対する),IBridge,IEnvironment
- Gets a 橋(渡しをする) from 環境
getBridges
public static IBridge[] getBridges()
- Deprecated. As of UDK 3.2.0, this method is deprecated, without
申し込む/申し出ing a 交替/補充.
- Returns an array of all active 橋(渡しをする)s.
- Returns:
- an array of
IBridge反対するs - See Also:
IBridge
- Returns an array of all active 橋(渡しをする)s.
getMapping
public static IMapping getMapping(IEnvironment from, IEnvironment to) throws Exception
- Deprecated. As of UDK 3.2.0, this method is deprecated, without
申し込む/申し出ing a 交替/補充.
- Gets a mapping from 環境
fromto 環境to.Mappings are like 橋(渡しをする)s, except that with mappings one can only 地図/計画する in one direction. Mappings are here for compatibility with the binary UNO API. Mappings are 器具/実施するd as wrappers around 橋(渡しをする)s.
- Parameters:
from- the source 環境to- the 的 環境- Returns:
- the requested mapping
- Throws:
Exception- See Also:
IEnvironment,IMapping
- Gets a mapping from 環境
getMappingByName
public static IMapping getMappingByName(String from, String to) throws Exception
- Deprecated. As of UDK 3.2.0, this method is deprecated, without
申し込む/申し出ing a 交替/補充.
- Gets a mapping from 環境
fromto 環境to.The used 環境s are retrieved through
getEnvironment.- Parameters:
from- the 指名する of the source 環境to- the 指名する of the 的 環境- Returns:
- the requested mapping
- Throws:
Exception- See Also:
getEnvironment(java.lang.String, java.lang.反対する),getMapping(com.sun.星/主役にする.uno.IEnvironment, com.sun.星/主役にする.uno.IEnvironment),IMapping
- Gets a mapping from 環境
reset
public static boolean reset()
- Deprecated. As of UDK 3.2.0, this method is deprecated, without
申し込む/申し出ing a 交替/補充.
- Resets this
UnoRuntimeto its 初期の 明言する/公表する.解放(する)s all 言及/関連s to 橋(渡しをする)s and 環境s.
- Resets this
|
UDK 3.2.7 Java API 言及/関連 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

com.sun.星/主役にする.uno.UnoRuntime
