com.sun.star.uno
public class Any extends Object
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 | |
---|---|
static Any | VOID |
protected Object | _object
The data of the any.
|
protected Type | _type
The type of the any.
|
Constructor Summary | |
---|---|
Any(Class zInterface, Object object)
Constructs a new any.
| |
Any(Type type, Object object) Constructs a new any with a given type and value |
Method Summary | |
---|---|
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() |
See Also: Any
See Also: Any
Deprecated: as of UDK 2.0
Constructs a new any.Parameters: zInterface the type of the any. object the data of the any.
Parameters: type the UNO type of the any. object the value of the any.
ANY
(make sure it is wrapped up as an
Any
instance).Parameters: any a Java value representing a UNO ANY
value.
Returns: a complete Java value (that is, an Any
instance)
representing the same UNO ANY
value as the given argument.
Since: UDK 3.2.3
Returns: gets the value within the any.
Returns: the type of the value within the any.