diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2002-03-08 16:19:13 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2002-03-08 16:19:13 +0000 |
commit | 9b69a7399578e92fba1c8b635af2a42851becb21 (patch) | |
tree | cfa6517878c62770e72443442c863a08ac037a50 /udkapi/com/sun/star/reflection/XIdlField2.idl | |
parent | 42ee02b0328d473d87970219cde0196f5e24c7c8 (diff) |
#96711# reviewed reflection API documentation
Diffstat (limited to 'udkapi/com/sun/star/reflection/XIdlField2.idl')
-rw-r--r-- | udkapi/com/sun/star/reflection/XIdlField2.idl | 157 |
1 files changed, 56 insertions, 101 deletions
diff --git a/udkapi/com/sun/star/reflection/XIdlField2.idl b/udkapi/com/sun/star/reflection/XIdlField2.idl index 4c2a93b32..584e000ad 100644 --- a/udkapi/com/sun/star/reflection/XIdlField2.idl +++ b/udkapi/com/sun/star/reflection/XIdlField2.idl @@ -2,9 +2,9 @@ * * $RCSfile: XIdlField2.idl,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: mi $ $Date: 2001-11-16 15:02:57 $ + * last change: $Author: dbo $ $Date: 2002-03-08 17:19:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -88,111 +88,63 @@ //============================================================================= -// DocMerge from xml: interface com::sun::star::reflection::XIdlField2 -/** has the same functionallity as <type scope="com::sun::star::reflection">XIdlField</type>. - <p> - XIdlField2 correct a specification error of the - <method>com::sun::star::reflection::XIdlField::set</method> method. - The first parameter the object itself must be specified as an [inout] parameter. - </p> - <p> - This new interface must be implemented in all places where - <type scope="com::sun::star::reflection">XIdlField</type> is implemented. For a correct - working <method>XIdlField2::set</method> method in all use cases a queryInterface to - XIdlField2 is necessary. - </p> - */ +/** Reflects an IDL interface attribute, enum or compound type + (i.e. struct/exception) member. +*/ interface XIdlField2: com::sun::star::reflection::XIdlMember { - //------------------------------------------------------------------------- - - // DocMerge from idl: method com::sun::star::reflection::XIdlField2::getType - /** @returns - an <type>XIdlClass</type> object that identifies the declared - type for the field represented by this <type>XIdlField</type>. - */ + /** Returns the type of the field. + + @return + type of the field + */ com::sun::star::reflection::XIdlClass getType(); - - //------------------------------------------------------------------------- - - // DocMerge from idl: method com::sun::star::reflection::XIdlField2::getAccessMode - /** @returns - an enumeration value which denotes whether the field is - "const", "readonly", "writeonly", or "readwrite". - */ - com::sun::star::reflection::FieldAccessMode getAccessMode(); - - //------------------------------------------------------------------------- - - // DocMerge from idl: method com::sun::star::reflection::XIdlField2::get - /** @returns - the value of the field represented by this field on the specified object. - - <p>The underlying field's value is obtained as follows: - - <ul> - <li>If the underlying field is a constant, the - object argument is ignored; it may be NULL. - - <li>Otherwise, the underlying field is an instance - field. If the specified object argument is - NULL, the method throws an - "IllegalArgumentException". If the specified - object is not an instance of the class, - interface, struct, union, or enum declaring - the underlying field, the method throws an - "IllegalArgumentException". - - <li>Otherwise, the value is retrieved from the - underlying instance or constant. - </ul> - - @throws IllegalArgumentException - if the specified object is <NULL/> and if the - specified object is not an instance of the class or - interface declaring the underlying field. - */ - any get( [in] any obj ) - raises( com::sun::star::lang::IllegalArgumentException ); - - //------------------------------------------------------------------------- - - // DocMerge from xml: method com::sun::star::reflection::XIdlField2::set - /** sets the field represented by this <type>XIdlField2</type> on the - specified object argument to the specified new value. - - <p>The operation proceeds as follows: - - </p> - <ul> - <li>If the specified object argument is NULL, the method - throws an <type scope="com::sun::star::lang">IllegalArgumentException</type>. If - the specified object argument is not an instance of - the class or interface declaring the underlying field, - then the method throws an - <type scope="com::sun::star::lang">IllegalArgumentException</type>. - - </li> - <li>If the underlying field is constant, the method throws an - <type scope="com::sun::star::lang">IllegalAccessException</type>. + + /** Returns the access mode of the field, i.e. read-write, read-only or + write-only (access mode "const" is deprecated). - <p>If the new value cannot be converted to the type - of underlying field by an identity or widening - conversion, the method throws an - <type scope="com::sun::star::lang">IllegalArgumentException</type>. - </p> - </li> - </ul> + @return + access mode of the field + */ + com::sun::star::reflection::FieldAccessMode getAccessMode(); + + /** 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. - <p>The field is set to the possibly widened new value. + @param obj + object instance having member of reflected type + @return + value of field + + @throws IllegalAccessException + An <type scope="com::sun::star::lang>IllegalAccessException</type> + is thrown if the given object is no interface, enum or compound type; + or the given object does not have the reflected field. + */ + any get( + [in] any obj ) + raises( com::sun::star::lang::IllegalArgumentException ); + + /** Sets the value of the reflected field of the given object, + i.e. an interface or compound type (struct/exception). - </p> - */ - void set( [inout] any obj, - [in] any value ) - raises( com::sun::star::lang::IllegalArgumentException, - com::sun::star::lang::IllegalAccessException ); - + @param obj + object instance having member of reflected type + @param value + value to be set + + @throws IllegalAccessException + An <type scope="com::sun::star::lang>IllegalAccessException</type> + is thrown if the given object is no interface or compound type; + or the given object does not have the reflected field. + */ + void set( + [inout] any obj, + [in] any value ) + raises( com::sun::star::lang::IllegalArgumentException, + com::sun::star::lang::IllegalAccessException ); }; //============================================================================= @@ -202,6 +154,9 @@ interface XIdlField2: com::sun::star::reflection::XIdlMember /*============================================================================= $Log: not supported by cvs2svn $ + Revision 1.2 2001/11/16 15:02:57 mi + proofing by Richard Holt + Revision 1.1 2001/05/03 13:58:08 jsc new |