(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4
UNO Java Runtime

com.sun.star.uno
Class Any

java.lang.Object
  |
  +--com.sun.star.uno.Any

public class Any
extends java.lang.Object

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).

Since:
UDK1.0

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

_type

protected Type _type
The type of the any.

See Also:
getType()

_object

protected java.lang.Object _object
The data of the any.

See Also:
getObject()
Constructor Detail

Any

public Any(java.lang.Class zInterface,
           java.lang.Object object)
Deprecated. as of UDK 2.0

Constructs a new any.

Parameters:
zInterface - the type of the any.
object - the data of the any.

Any

public Any(Type type,
           java.lang.Object object)
Constructs a new any with a given type and value

Parameters:
type - the UNO type of the any.
object - the value of the any.
Method Detail

getType

public Type getType()
Gets the type of the value within the any.

Returns:
the type of the value within the any.

getObject

public java.lang.Object getObject()
Gets the value within the any.

Returns:
gets the value within the any.

UNO Java Runtime

Apache Feather

Copyright & License | Privacy | Contact Us

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.

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.