UDK 3.1.0 Java API Reference

com.sun.star.uno
インタフェース IQueryInterface


public interface IQueryInterface

This is the delegator interface for objects implementing interfaces for an underlying object. Call are delegated through the UnoRuntime to this interface.

Implement this interface, in case you want to customize the behaviour of queryInterface.

導入されたバージョン:
UDK1.0
関連項目:
UnoRuntime, IQueryInterface, IBridge

メソッドの概要
 String getOid()
          returns the object identifier (oid) of the underlying object.
 boolean isSame(Object object)
          Tests if the given object is an interface of the same underlying object.
 Object queryInterface(Type type)
          Returns an object implementing the desired interface.
 

メソッドの詳細

queryInterface

public Object queryInterface(Type type)
Returns an object implementing the desired interface.

パラメータ:
type - the type of the desired interface.
戻り値:
the desired interface if available, otherwise null.
関連項目:
UnoRuntime

isSame

public boolean isSame(Object object)
Tests if the given object is an interface of the same underlying object.

パラメータ:
object - an object representing an interface.
戻り値:
true, if the underlying object is the same, otherwise false.

getOid

public String getOid()
returns the object identifier (oid) of the underlying object.

戻り値:
the oid of the underlying object.

UDK 3.1.0 Java API Reference