added japanese translation of java external object.
[scilab.git] / scilab / modules / external_objects_java / help / ja_JP / jgetfield.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="jgetfield">
18     
19     <refnamediv>
20         
21         <refname>jgetfield</refname>
22         
23         <refpurpose>Javaオブジェクトのフィールドの値を取得</refpurpose>
24         
25     </refnamediv>
26     
27     <refsynopsisdiv>
28         
29         <title>呼び出し手順</title>
30         
31         <synopsis>
32             
33             jgetfield(object, fieldName [, unwrap])
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>_JObj または _JClass型のmlistまたはScilab変数</para>
52                     
53                 </listitem>
54                 
55             </varlistentry>
56             
57             <varlistentry>
58                 
59                 <term>fieldName</term>
60                 
61                 <listitem>
62                     
63                     <para>フィールド名を指定する文字列</para>
64                     
65                 </listitem>
66                 
67             </varlistentry>
68             
69             <varlistentry>
70                 
71                 <term>unwrap</term>
72                 
73                 <listitem>
74                     
75                     <para>論理値</para>
76                     
77                 </listitem>
78                 
79             </varlistentry>
80             
81         </variablelist>
82         
83     </refsection>
84     
85     <refsection>
86         
87         <title>説明</title>
88         
89         <para>
90             
91             fieldNameという名前のフィールドの値を取得します.
92             
93             オプションの第三引数がtrueの場合,
94             
95             値は自動的にアンラップされます.
96             
97         </para>
98         
99         <para>
100             
101             この関数は公開javaフィールドにマップされない
102             
103             beansプロパティについても動作します.
104             
105         </para>
106         
107     </refsection>
108     
109     <refsection>
110         
111         <title>例</title>
112         
113         <programlisting role="example"><![CDATA[
114                c = jcompile("Test", ["public class Test {";
115                                      "public int field;";
116                                      "public Test(int n) {";
117                                      "field = n;";
118                                      "}";
119                                      "}";]);
120                t = c.new(128);
121                v = jgetfield(t, "field")
122
123                // or easier
124                t.field
125
126                jremove c t v;
127       ]]></programlisting>
128         
129         <programlisting role="example"><![CDATA[
130 jimport java.util.Date;
131
132 d = Date.new();
133 d.minutes, // d.getMinutes()をコールします
134 jgetfield(d, "minutes"), // これも d.getMinutes()をコールします
135
136 jremove Date d;
137       ]]></programlisting>
138         
139     </refsection>
140     
141     <refsection role="see also">
142         
143         <title>参照</title>
144         
145         <simplelist type="inline">
146             
147             <member>
148                 
149                 <link linkend="jsetfield">jsetfield</link>
150                 
151             </member>
152             
153         </simplelist>
154         
155     </refsection>
156     
157     <refsection>
158         
159         <title>履歴</title>
160         
161         <revhistory>
162             
163             <revision>
164                 
165                 <revnumber>5.5.0</revnumber>
166                 
167                 <revremark>
168                     
169                     関数が導入されました. 'JIMS'モジュールに基づきます.
170                     
171                     JIMSモジュールとの動作上の主な違いは,
172                     
173                     <link linkend="jautoUnwrap">jautoUnwrap</link>がデフォルトで
174                     
175                     有効になっていることです.
176                     
177                 </revremark>
178                 
179             </revision>
180             
181         </revhistory>
182         
183     </refsection>
184     
185 </refentry>
186
187
188