|
UNO Java Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.star.uno.Any
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).
Field Summary | |
protected java.lang.Object |
_object
The data of the any. |
protected Type |
_type
The type of the any. |
Constructor Summary | |
Any(java.lang.Class zInterface,
java.lang.Object object)
Deprecated. as of UDK 2.0 |
|
Any(Type type,
java.lang.Object object)
Constructs a new any with a given type and value |
Method Summary | |
java.lang.Object |
getObject()
Gets the value within the any. |
Type |
getType()
Gets the type of the value within the any. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Type _type
getType()
protected java.lang.Object _object
getObject()
Constructor Detail |
public Any(java.lang.Class zInterface, java.lang.Object object)
zInterface
- the type of the any.object
- the data of the any.public Any(Type type, java.lang.Object object)
type
- the UNO type of the any.object
- the value of the any.Method Detail |
public Type getType()
public java.lang.Object getObject()
|
UNO Java Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |