1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef __com_sun_star_reflection_XIdlField2_idl__
28*cdf0e10cSrcweir#define __com_sun_star_reflection_XIdlField2_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_reflection_XIdlMember_idl__
31*cdf0e10cSrcweir#include <com/sun/star/reflection/XIdlMember.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#ifndef __com_sun_star_reflection_XIdlClass_idl__
35*cdf0e10cSrcweir#include <com/sun/star/reflection/XIdlClass.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#ifndef __com_sun_star_reflection_FieldAccessMode_idl__
39*cdf0e10cSrcweir#include <com/sun/star/reflection/FieldAccessMode.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
43*cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl>
44*cdf0e10cSrcweir#endif
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir#ifndef __com_sun_star_lang_IllegalAccessException_idl__
47*cdf0e10cSrcweir#include <com/sun/star/lang/IllegalAccessException.idl>
48*cdf0e10cSrcweir#endif
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir//=============================================================================
52*cdf0e10cSrcweir
53*cdf0e10cSrcweir module com {  module sun {  module star {  module reflection {
54*cdf0e10cSrcweir
55*cdf0e10cSrcweir//=============================================================================
56*cdf0e10cSrcweir
57*cdf0e10cSrcweir/** Reflects an IDL interface attribute, enum or compound type
58*cdf0e10cSrcweir    (i.e. struct/exception) member.
59*cdf0e10cSrcweir*/
60*cdf0e10cSrcweirpublished interface XIdlField2: com::sun::star::reflection::XIdlMember
61*cdf0e10cSrcweir{
62*cdf0e10cSrcweir	/** Returns the type of the field.
63*cdf0e10cSrcweir
64*cdf0e10cSrcweir        @return
65*cdf0e10cSrcweir                type of the field
66*cdf0e10cSrcweir    */
67*cdf0e10cSrcweir	com::sun::star::reflection::XIdlClass getType();
68*cdf0e10cSrcweir
69*cdf0e10cSrcweir	/** Returns the access mode of the field, i.e. read-write, read-only or
70*cdf0e10cSrcweir        write-only (access mode "const" is deprecated).
71*cdf0e10cSrcweir
72*cdf0e10cSrcweir        @return
73*cdf0e10cSrcweir                access mode of the field
74*cdf0e10cSrcweir    */
75*cdf0e10cSrcweir	com::sun::star::reflection::FieldAccessMode getAccessMode();
76*cdf0e10cSrcweir
77*cdf0e10cSrcweir	/** Gets the value of the reflected field from the given object,
78*cdf0e10cSrcweir        i.e. an interface, enum or compound type (struct/exception).
79*cdf0e10cSrcweir        For enums, the given object is ignored; the returned value
80*cdf0e10cSrcweir        reflects the constant enum 32-bit value.
81*cdf0e10cSrcweir
82*cdf0e10cSrcweir        <p>When setting an interface attribute raises a
83*cdf0e10cSrcweir        non-<type scope="com::sun::star::uno">RuntimeException</type>, it is
84*cdf0e10cSrcweir        wrapped in a <type
85*cdf0e10cSrcweir        scope="com::sun::star::lang">WrappedTargetRuntimeException</type>.</p>
86*cdf0e10cSrcweir
87*cdf0e10cSrcweir        @param obj
88*cdf0e10cSrcweir               object instance having member of reflected type
89*cdf0e10cSrcweir        @return
90*cdf0e10cSrcweir                value of field
91*cdf0e10cSrcweir
92*cdf0e10cSrcweir        @throws IllegalAccessException
93*cdf0e10cSrcweir        An <type scope="com::sun::star::lang">IllegalAccessException</type>
94*cdf0e10cSrcweir        is thrown if the given object is no interface, enum or compound type;
95*cdf0e10cSrcweir        or the given object does not have the reflected field.
96*cdf0e10cSrcweir    */
97*cdf0e10cSrcweir	any get(
98*cdf0e10cSrcweir        [in] any obj )
99*cdf0e10cSrcweir        raises( com::sun::star::lang::IllegalArgumentException );
100*cdf0e10cSrcweir
101*cdf0e10cSrcweir	/** Sets the value of the reflected field of the given object,
102*cdf0e10cSrcweir        i.e. an interface or compound type (struct/exception).
103*cdf0e10cSrcweir
104*cdf0e10cSrcweir        <p>When setting an interface attribute raises a
105*cdf0e10cSrcweir        non-<type scope="com::sun::star::uno">RuntimeException</type>, it is
106*cdf0e10cSrcweir        wrapped in a <type
107*cdf0e10cSrcweir        scope="com::sun::star::lang">WrappedTargetRuntimeException</type>.</p>
108*cdf0e10cSrcweir
109*cdf0e10cSrcweir        @param obj
110*cdf0e10cSrcweir               object instance having member of reflected type
111*cdf0e10cSrcweir        @param value
112*cdf0e10cSrcweir               value to be set
113*cdf0e10cSrcweir
114*cdf0e10cSrcweir        @throws IllegalAccessException
115*cdf0e10cSrcweir        An <type scope="com::sun::star::lang">IllegalAccessException</type>
116*cdf0e10cSrcweir        is thrown if the given object is no interface or compound type;
117*cdf0e10cSrcweir        or the given object does not have the reflected field.
118*cdf0e10cSrcweir    */
119*cdf0e10cSrcweir	void set(
120*cdf0e10cSrcweir        [inout] any obj,
121*cdf0e10cSrcweir        [in] any value )
122*cdf0e10cSrcweir        raises( com::sun::star::lang::IllegalArgumentException,
123*cdf0e10cSrcweir                com::sun::star::lang::IllegalAccessException );
124*cdf0e10cSrcweir};
125*cdf0e10cSrcweir
126*cdf0e10cSrcweir//=============================================================================
127*cdf0e10cSrcweir
128*cdf0e10cSrcweir}; }; }; };
129*cdf0e10cSrcweir
130*cdf0e10cSrcweir/*=============================================================================
131*cdf0e10cSrcweir
132*cdf0e10cSrcweir=============================================================================*/
133*cdf0e10cSrcweir#endif
134