:: com :: sun :: star :: reflection ::

interface XIdlField2
Base Hierarchy
::com::sun::star::uno::XInterface
 |
 +-XIdlMember
    |
    +-XIdlField2
Description
Reflects an IDL interface attribute, enum or compound type (i.e. struct/exception) member.

Methods' Summary
getType Returns the type of the field.
getAccessMode Returns the access mode of the field, i.e. read-write, read-only or write-only (access mode "const" is deprecated).
get Gets the value of the reflected field from the given object, i.e. an interface, enum or compound type (struct/exception). For enums, the given object is ignored; the returned value reflects the constant enum 32-bit value.
set Sets the value of the reflected field of the given object, i.e. an interface or compound type (struct/exception).
Methods' Details
getType
XIdlClass
getType();
 
 

Description
Returns the type of the field.
Returns
type of the field
getAccessMode
FieldAccessMode
getAccessMode();
 
 

Description
Returns the access mode of the field, i.e. read-write, read-only or write-only (access mode "const" is deprecated).
Returns
access mode of the field
get
any
get(
 
[in] any 

raises(

 
obj ) 
::com::sun::star::lang::IllegalArgumentException );

Description
Gets the value of the reflected field from the given object, i.e. an interface, enum or compound type (struct/exception). For enums, the given object is ignored; the returned value reflects the constant enum 32-bit value.
Parameter obj
object instance having member of reflected type
Returns
value of field
Throws
IllegalAccessException An ::com::sun::star::lang::IllegalAccessException is thrown if the given object is no interface, enum or compound type; or the given object does not have the reflected field.
set
void
set(
 
[inout] any
[in] any 

raises(

 
obj,
value ) 
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::IllegalAccessException );

Description
Sets the value of the reflected field of the given object, i.e. an interface or compound type (struct/exception).
Parameter obj
object instance having member of reflected type
Parameter value
value to be set
Throws
IllegalAccessException An ::com::sun::star::lang::IllegalAccessException is thrown if the given object is no interface or compound type; or the given object does not have the reflected field.
Top of Page