com.sun.star.uno
Class 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).
Any(Class zInterface, Object object) - as of UDK 2.0
|
Any(Type type, Object object) - Constructs a new any with a given type and value
|
VOID
public static final Any VOID
_object
protected Object _object
_type
protected Type _type
Any
public Any(Class zInterface,
Object object)
as of UDK 2.0
zInterface
- the type of the any.object
- the data of the any.
Any
public Any(Type type,
Object object)
Constructs a new any with a given type and value
type
- the UNO type of the any.object
- the value of the any.
complete
public static final Any complete(Object any)
Complete a UNO ANY
(make sure it is wrapped up as an
Any
instance).
any
- a Java value representing a UNO ANY
value.
- a complete Java value (that is, an
Any
instance)
representing the same UNO ANY
value as the given argument.
equals
public boolean equals(Object obj)
getObject
public Object getObject()
Gets the value within the any.
- gets the value within the any.
getType
public Type getType()
Gets the type of the value within the any.
- the type of the value within the any.
hashCode
public int hashCode()
toString
public String toString()