UDK 3.2.0 Java API Reference

com.sun.star.uno
クラス Any

java.lang.Object
  上位を拡張 com.sun.star.uno.Any

public class Any
extends Object

The UNO IDL type any is mapped to java type java.lang.Object.

In special cases it is necessary to have an explicit any to additionally transport an exact type. For instance if you want to pass an object reference via an interprocess connection using an any, you should use this class to add an explicit interface type, so the remote counterpart doesn't need to invoke a queryInterface).


フィールドの概要
protected  Object _object
          The data of the any.
protected  Type _type
          The type of the any.
static Any VOID
           
 
コンストラクタの概要
Any(Class zInterface, Object object)
          推奨されていません。 as of UDK 2.0
Any(Type type, Object object)
          Constructs a new any with a given type and value
 
メソッドの概要
static Any complete(Object any)
          Complete a UNO ANY (make sure it is wrapped up as an Any instance).
 boolean equals(Object obj)
           
 Object getObject()
          Gets the value within the any.
 Type getType()
          Gets the type of the value within the any.
 int hashCode()
           
 String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

_type

protected Type _type
The type of the any.

関連項目:
getType()

_object

protected Object _object
The data of the any.

関連項目:
getObject()

VOID

public static final Any VOID
コンストラクタの詳細

Any

public Any(Class zInterface,
           Object object)
推奨されていません。 as of UDK 2.0

Constructs a new any.

パラメータ:
zInterface - the type of the any.
object - the data of the any.

Any

public Any(Type type,
           Object object)
Constructs a new any with a given type and value

パラメータ:
type - the UNO type of the any.
object - the value of the any.
メソッドの詳細

complete

public static final Any complete(Object any)
Complete a UNO ANY (make sure it is wrapped up as an Any instance).

パラメータ:
any - a Java value representing a UNO ANY value.
戻り値:
a complete Java value (that is, an Any instance) representing the same UNO ANY value as the given argument.
導入されたバージョン:
UDK 3.2.3

getType

public Type getType()
Gets the type of the value within the any.

戻り値:
the type of the value within the any.

getObject

public Object getObject()
Gets the value within the any.

戻り値:
gets the value within the any.

equals

public boolean equals(Object obj)
オーバーライド:
クラス Object 内の equals

hashCode

public int hashCode()
オーバーライド:
クラス Object 内の hashCode

toString

public String toString()
オーバーライド:
クラス Object 内の toString

UDK 3.2.0 Java API Reference