(incubating) | The Free and Open Productivity Suite
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 OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.