LibreOffice
LibreOffice 24.2 SDK API Reference
|
Provides information reflecting a UNO type. More...
import"XIdlClass.idl";
Public Member Functions | |
sequence< XIdlClass > | getClasses () |
Deprecated. More... | |
XIdlClass | getClass ([in] string aName) |
Deprecated. More... | |
boolean | equals ([in] XIdlClass Type) |
Tests whether two reflecting objects reflect the same type. More... | |
boolean | isAssignableFrom ([in] XIdlClass xType) |
Tests whether values of this reflected type are assignable from values of a second one (xType ). More... | |
com::sun::star::uno::TypeClass | getTypeClass () |
Returns the com::sun::star::uno::TypeClass of the reflected type. More... | |
string | getName () |
Returns the fully-qualified name of the reflected type. More... | |
com::sun::star::uno::Uik | getUik () |
Deprecated. More... | |
sequence< XIdlClass > | getSuperclasses () |
If the reflected type is an interface, then the returned sequence of XIdlClass reflect the base interfaces. More... | |
sequence< XIdlClass > | getInterfaces () |
Deprecated. More... | |
XIdlClass | getComponentType () |
If the reflected type is an array or sequence, then this method returns a XIdlClass interface reflecting the element. More... | |
XIdlField | getField ([in] string aName) |
If the reflected type is an interface, struct or union, then you get a XIdlField interface reflecting the demanded field (/interface attribute) by name. More... | |
sequence< XIdlField > | getFields () |
If the reflected type is an interface, struct or union, then you get a sequence of XIdlField interfaces reflecting all fields (/interface attributes). More... | |
XIdlMethod | getMethod ([in] string aName) |
If the reflected type is an interface, then you get a XIdlMethod interface reflecting the demanded method by name. More... | |
sequence< XIdlMethod > | getMethods () |
If the reflected type is an interface, then you get a sequence of XIdlMethod interfaces reflecting all methods of the interface. More... | |
XIdlArray | getArray () |
If the reflected type is an array, then you get a XIdlArray interface to modify instances of the array type. More... | |
void | createObject ([out] any obj) |
This method creates instances of the reflected type. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Provides information reflecting a UNO type.
void createObject | ( | [out] any | obj | ) |
This method creates instances of the reflected type.
any
can not be passed using an any
, because anys cannot be nested. So if the reflected type is an any
, then the returned value is empty.obj | pure out parameter to pass the created instance |
boolean equals | ( | [in] XIdlClass | Type | ) |
Tests whether two reflecting objects reflect the same type.
XIdlArray getArray | ( | ) |
If the reflected type is an array, then you get a XIdlArray interface to modify instances of the array type.
If the reflected type is not an array, then a null-reference is returned.
XIdlClass getClass | ( | [in] string | aName | ) |
sequence<XIdlClass> getClasses | ( | ) |
XIdlClass getComponentType | ( | ) |
If the reflected type is an array or sequence, then this method returns a XIdlClass interface reflecting the element.
XIdlField getField | ( | [in] string | aName | ) |
If the reflected type is an interface, struct or union, then you get a XIdlField interface reflecting the demanded field (/interface attribute) by name.
If the reflected type is not an interface, struct or union or the interface, struct or union does not have a field (/interface attribute) with the demanded name, then a null-reference is returned.
aName | name of the demanded field reflection |
sequence<XIdlField> getFields | ( | ) |
If the reflected type is an interface, struct or union, then you get a sequence of XIdlField interfaces reflecting all fields (/interface attributes).
This also includes all inherited fields (/interface attributes) of the interface, struct of union.
If the reflected type is not an interface, struct or union or the interface, struct or union does not have any field (/interface attribute), then an empty sequence is returned.
sequence<XIdlClass> getInterfaces | ( | ) |
XIdlMethod getMethod | ( | [in] string | aName | ) |
If the reflected type is an interface, then you get a XIdlMethod interface reflecting the demanded method by name.
If the reflected type is not an interface or the interface does not have a method with the demanded name (including inherited methods), then a null-reference is returned.
aName | name of demanded method reflection |
sequence<XIdlMethod> getMethods | ( | ) |
If the reflected type is an interface, then you get a sequence of XIdlMethod interfaces reflecting all methods of the interface.
This also includes the inherited methods of the interface.
If the reflected type is not an interface or the interface does not have any methods, then a null-reference is returned.
string getName | ( | ) |
Returns the fully-qualified name of the reflected type.
sequence<XIdlClass> getSuperclasses | ( | ) |
If the reflected type is an interface, then the returned sequence of XIdlClass reflect the base interfaces.
If the reflected type is not an interface or an interface that is not derived from another, then an empty sequence is returned.
com::sun::star::uno::TypeClass getTypeClass | ( | ) |
Returns the com::sun::star::uno::TypeClass of the reflected type.
com::sun::star::uno::Uik getUik | ( | ) |
boolean isAssignableFrom | ( | [in] XIdlClass | xType | ) |
Tests whether values of this reflected type are assignable from values of a second one (xType
).
xType | another reflected type |
xType
.