added japanese translation of java external object.
[scilab.git] / scilab / modules / external_objects_java / help / ja_JP / jsetfield.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 *
5 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
6 * Copyright (C) 2010 - 2011 - Calixte DENIZET <calixte@contrib.scilab.org>
7 *
8 * This file must be used under the terms of the CeCILL.
9 * This source file is licensed as described in the file COPYING, which
10 * you should have received as part of this distribution.  The terms
11 * are also available at
12 * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
13 *
14 *
15 -->
16
17 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="jsetfield">
18     
19     <refnamediv>
20         
21         <refname>jsetfield</refname>
22         
23         <refpurpose>Javaオブジェクトのフィールドを設定</refpurpose>
24         
25     </refnamediv>
26     
27     <refsynopsisdiv>
28         
29         <title>呼び出し手順</title>
30         
31         <synopsis>
32             
33             jsetfield(object, fieldName, value)
34             
35         </synopsis>
36         
37     </refsynopsisdiv>
38     
39     <refsection>
40         
41         <title>パラメータ</title>
42         
43         <variablelist>
44             
45             <varlistentry>
46                 
47                 <term>object</term>
48                 
49                 <listitem>
50                     
51                     <para>
52                         
53                         _JObjまたは_JClass型のmlistまたはScilab変数の
54                         
55                     </para>
56                     
57                 </listitem>
58                 
59             </varlistentry>
60             
61             <varlistentry>
62                 
63                 <term>fieldName</term>
64                 
65                 <listitem>
66                     
67                     <para>フィールド名を指定する文字列</para>
68                     
69                 </listitem>
70                 
71             </varlistentry>
72             
73             <varlistentry>
74                 
75                 <term>value</term>
76                 
77                 <listitem>
78                     
79                     <para>
80                         
81                         Scilab変数または_JObj型のmlistで,
82                         
83                         新しいフィールの値
84                         
85                     </para>
86                     
87                 </listitem>
88                 
89             </varlistentry>
90             
91         </variablelist>
92         
93     </refsection>
94     
95     <refsection>
96         
97         <title>説明</title>
98         
99         <para>
100             
101             fieldNameという名前のフィールドに指定した値を設定します.
102             
103         </para>
104         
105         <para>
106             
107             この関数は,公開javaフィールドにマップされない
108             
109             beansプロパティについても動作します.
110             
111         </para>
112         
113     </refsection>
114     
115     <refsection>
116         
117         <title>例</title>
118         
119         <programlisting role="example"><![CDATA[
120                c = jcompile("Test", ["public class Test {";
121                                      "public int field;";
122                                      "public Test(int n) {";
123                                      "field = n;";
124                                      "}";
125                                      "}";]);
126                t = c.new(128);
127                t.field
128                jsetfield(t, "field", 256);
129                t.field
130
131                // But it is easier to use...
132                t.field = 512;
133                t.field
134                jremove c t;
135       ]]></programlisting>
136         
137         <programlisting role="example"><![CDATA[
138 jimport java.util.Date;
139
140 d = Date.new();
141 d.minutes = 3; // will call d.setMinutes(3);
142 jsetfield(d, "minutes", 3); // will call d.setMinutes(3);
143
144 jremove Date d;
145       ]]></programlisting>
146         
147     </refsection>
148     
149     <refsection role="see also">
150         
151         <title>参照</title>
152         
153         <simplelist type="inline">
154             
155             <member>
156                 
157                 <link linkend="jgetfield">jgetfield</link>
158                 
159             </member>
160             
161         </simplelist>
162         
163     </refsection>
164     
165     <refsection>
166         
167         <title>履歴</title>
168         
169         <revhistory>
170             
171             <revision>
172                 
173                 <revnumber>5.5.0</revnumber>
174                 
175                 <revremark>
176                     
177                     関数が導入されました. 'JIMS'モジュールに基づきます.
178                     
179                     JIMSモジュールとの動作上の主な違いは,
180                     
181                     <link linkend="jautoUnwrap">jautoUnwrap</link>がデフォルトで
182                     
183                     有効になっていることです.
184                     
185                 </revremark>
186                 
187             </revision>
188             
189         </revhistory>
190         
191     </refsection>
192     
193 </refentry>
194
195
196