Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

com :: sun :: star :: beans ::

interface XIntrospectionAccess

Base Interface
com::sun::star::uno::XInterface

Description
gives access to the result of an interface / object introspection done by the inspect-method of XIntrospection.

It supports some of the methods that are also defined in XPropertySet , but not the methods for listener registration, since this would not be appropriate for an introspection result.

The results of the get..() and has..() methods depends on the concepts given in the parameter nConcepts . The minimum supported concepts should be for the MethodConcept :

and for the PropertyConcept : Both groups get combined by an arithmetical or-operation.

The XExactName interface has to be supported in order to implement inaccurate name access for all objects which implement the XNameAccess interface or XPropertySet .

See also
XPropertySet
See also
com::sun::star::beans::XExactName


Methods' Summary

getSuppliedMethodConcepts
getSuppliedPropertyConcepts
getProperty
hasProperty
getProperties
getMethod
hasMethod
getMethods
getSupportedListeners
queryAdapter creates an adapter that implements an interface with the specified type.

Methods' Details

getSuppliedMethodConcepts
 
long
getSuppliedMethodConcepts();
Returns
zero or more constants of the MethodConcept constants group.
getSuppliedPropertyConcepts
 
long
getSuppliedPropertyConcepts();
Returns
zero or more constants of the PropertyConcept constants group.
getProperty
 
com::sun::star::beans::Property
getProperty(
[ in ] string aName,
[ in ] long nPropertyConcepts )
raises ( com::sun::star::container::NoSuchElementException );

Returns
true if the method exists and fits the given MethodConcepts; otherwise false is returned.
Parameter aName
the name of the Property .
Parameter nPropertyConcepts
zero or more constants of the PropertyConcept constants group.
Throws
NoSuchElementException when an element under Name does not exist.
hasProperty
 
boolean
hasProperty(
[ in ] string aName,
[ in ] long nPropertyConcepts );

Returns
true if the method exists and fits the given PropertyConcept s; otherwise false is returned.
Parameter aName
the name of the Property .
Parameter nPropertyConcepts
zero or more constants of the PropertyConcept constants group.
getProperties
 
sequence< com::sun::star::beans::Property >
getProperties(
[ in ] long nPropertyConcepts );

Returns
all properties of the introspected object which accord to the given PropertyConcept s.
getMethod
 
com::sun::star::reflection::XIdlMethod
getMethod(
[ in ] string aName,
[ in ] long nMethodConcepts )
raises ( com::sun::star::lang::NoSuchMethodException );

Returns
the method with the given name if it exists and fits the specified MethodConcept s.
Parameter aName
the name of the method.
Parameter nMethodConcepts
zero or more constants of the MethodConcept group.
Throws
NoSuchElementException if no element with the Name exists.
hasMethod
 
boolean
hasMethod(
[ in ] string aName,
[ in ] long nMethodConcepts );

Returns
true if the method exists and fits the given MethodConcepts s; otherwise false is returned.
Parameter aName
the name of the method.
Parameter nMethodConcepts
zero or more constants of the MethodConcept constants group.
getMethods
 
sequence< com::sun::star::reflection::XIdlMethod >
getMethods(
[ in ] long nMethodConcepts );

Returns
all methods of the introspected object which accord to the given MethodConcept s.
getSupportedListeners
 
sequence< type >
getSupportedListeners();
Returns
a sequence of the types of listener interfaces which are supported by the introspected object.
queryAdapter
 
com::sun::star::uno::XInterface
queryAdapter(
[ in ] type aInterfaceType )
raises ( com::sun::star::beans::IllegalTypeException );

Description
creates an adapter that implements an interface with the specified type.

The supplied concepts (see the methods XIntrospectionAccess::setConcepts() ) and the XIntrospectionAccess::setConcepts() member determine the interfaces returned by this method.

To access properties, query for the XPropertySet interface. If the XPropertySet can be queried, the XFastPropertySet interface must be supported too.

If the introspected object implements a name container, the introspection should return the XNameAccess and XNameContainer interfaces.

If the introspected object implements an index container, the introspection should return the XIndexAccess and XIndexContainer interfaces.

If the introspected object implements an enumeration container, the introspection should return the XEnumerationAccess interface.

If the introspected object implements the XIdlArray interface, the introspection should return this.

To implement inaccurate name access, at all objects, which implement the XNameAccess or XPropertySet interface, the XExactName interface has to be supported.

See also
com::sun::star::beans::XExactName

Top of Page