Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.12
UNO Java Runtime

com.sun.star.uno
Interface 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.

Since:
UDK1.0
See Also:
UnoRuntime, IQueryInterface, IBridge

Method Summary
 java.lang.String getOid()
          returns the object identifier (oid) of the underlying object.
 boolean isSame(java.lang.Object object)
          Tests if the given object is an interface of the same underlying object.
 java.lang.Object queryInterface(Type type)
          Returns an object implementing the desired interface.
 

Method Detail

queryInterface

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

Parameters:
type - the type of the desired interface.
Returns:
the desired interface if available, otherwise null.
See Also:
UnoRuntime

isSame

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

Parameters:
object - an object representing an interface.
Returns:
true, if the underlying object is the same, otherwise false.

getOid

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

Returns:
the oid of the underlying object.

UNO Java Runtime

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.