1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XIdlField2.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_reflection_XIdlField2_idl__
31 #define __com_sun_star_reflection_XIdlField2_idl__
33 #ifndef __com_sun_star_reflection_XIdlMember_idl__
34 #include
<com
/sun
/star
/reflection
/XIdlMember.idl
>
37 #ifndef __com_sun_star_reflection_XIdlClass_idl__
38 #include
<com
/sun
/star
/reflection
/XIdlClass.idl
>
41 #ifndef __com_sun_star_reflection_FieldAccessMode_idl__
42 #include
<com
/sun
/star
/reflection
/FieldAccessMode.idl
>
45 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
46 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
49 #ifndef __com_sun_star_lang_IllegalAccessException_idl__
50 #include
<com
/sun
/star
/lang
/IllegalAccessException.idl
>
54 //=============================================================================
56 module com
{ module sun
{ module star
{ module reflection
{
58 //=============================================================================
60 /** Reflects an IDL interface attribute, enum or compound type
61 (i.e. struct/exception) member.
63 published
interface XIdlField2
: com
::sun
::star
::reflection
::XIdlMember
65 /** Returns the type of the field.
70 com
::sun
::star
::reflection
::XIdlClass getType
();
72 /** Returns the access mode of the field, i.e. read-write, read-only or
73 write-only (access mode "const" is deprecated).
76 access mode of the field
78 com
::sun
::star
::reflection
::FieldAccessMode getAccessMode
();
80 /** Gets the value of the reflected field from the given object,
81 i.e. an interface, enum or compound type (struct/exception).
82 For enums, the given object is ignored; the returned value
83 reflects the constant enum 32-bit value.
85 <p>When setting an interface attribute raises a
86 non-<type scope="com::sun::star::uno">RuntimeException</type>, it is
88 scope="com::sun::star::lang">WrappedTargetRuntimeException</type>.</p>
91 object instance having member of reflected type
95 @throws IllegalAccessException
96 An <type scope="com::sun::star::lang">IllegalAccessException</type>
97 is thrown if the given object is no interface, enum or compound type;
98 or the given object does not have the reflected field.
102 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
104 /** Sets the value of the reflected field of the given object,
105 i.e. an interface or compound type (struct/exception).
107 <p>When setting an interface attribute raises a
108 non-<type scope="com::sun::star::uno">RuntimeException</type>, it is
110 scope="com::sun::star::lang">WrappedTargetRuntimeException</type>.</p>
113 object instance having member of reflected type
117 @throws IllegalAccessException
118 An <type scope="com::sun::star::lang">IllegalAccessException</type>
119 is thrown if the given object is no interface or compound type;
120 or the given object does not have the reflected field.
125 raises
( com
::sun
::star
::lang
::IllegalArgumentException
,
126 com
::sun
::star
::lang
::IllegalAccessException
);
129 //=============================================================================
133 /*=============================================================================
135 =============================================================================*/