Coverage details for edu.umn.gis.mapscript.imp.DBFInfo

LineHitsSource
1 // A Java MapScript module for MapServer.
2 // See <http://mapserver.gis.umn.edu> for information on MapServer.
3 //
4 // Copyright (C) 2003 Andrew Collins <andrewrcollins@yahoo.com>
5 //
6 // This library is free software; you can redistribute it
7 // and/or modify it under the terms of the GNU Lesser General
8 // Public License as published by the Free Software Foundation;
9 // either version 2.1 of the License, or (at your option) any
10 // later version.
11 //
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty
14 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 // See the GNU Lesser General Public License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General
18 // Public License along with this library; if not, write to
19 // the Free Software Foundation, Inc., 59 Temple Place,
20 // Suite 330, Boston, MA 02111-1307 USA
21 package edu.umn.gis.mapscript.imp;
22  
23 /**
24  * DOCUMENT ME!
25  *
26  * @author <a href="mailto:ADDRESS">NAME</a>
27  *
28  * @todo CLASS_DESCRIPTION
29  */
30 public class DBFInfo
31 {
32   /**
33    * DOCUMENT ME!
34    *
35    * @todo FIELD_DESCRIPTION
36    */
37   protected boolean swigCMemOwn;
38  
39   /**
40    * DOCUMENT ME!
41    *
42    * @todo FIELD_DESCRIPTION
43    */
44   private long swigCPtr;
45  
46   /**
47    * Creates a new DBFInfo object.
48    */
49   public DBFInfo()
50   {
510    this(MapScriptJNI.new_DBFInfo(), true);
520  }
53  
54   /**
55    * Creates a new DBFInfo object.
56    *
57    * @param cPtr PARAMETER
58    * @param cMemoryOwn PARAMETER
59    */
60   protected DBFInfo(long cPtr, boolean cMemoryOwn)
610  {
620    swigCMemOwn = cMemoryOwn;
630    swigCPtr = cPtr;
640  }
65  
66   /**
67    * DOCUMENT ME!
68    *
69    * @return RETURN
70    *
71    * @todo METHOD_DESCRIPTION
72    */
73   public int getBCurrentRecordModified()
74   {
750    return MapScriptJNI.get_DBFInfo_bCurrentRecordModified(swigCPtr);
76   }
77  
78   /**
79    * DOCUMENT ME!
80    *
81    * @return RETURN
82    *
83    * @todo METHOD_DESCRIPTION
84    */
85   public int getBNoHeader()
86   {
870    return MapScriptJNI.get_DBFInfo_bNoHeader(swigCPtr);
88   }
89  
90   /**
91    * DOCUMENT ME!
92    *
93    * @return RETURN
94    *
95    * @todo METHOD_DESCRIPTION
96    */
97   public int getBUpdated()
98   {
990    return MapScriptJNI.get_DBFInfo_bUpdated(swigCPtr);
100   }
101  
102   /**
103    * DOCUMENT ME!
104    *
105    * @param iField PARAMETER
106    *
107    * @return RETURN
108    *
109    * @todo METHOD_DESCRIPTION
110    */
111   public int getFieldDecimals(int iField)
112   {
1130    return MapScriptJNI.DBFInfo_getFieldDecimals(swigCPtr, iField);
114   }
115  
116   /**
117    * DOCUMENT ME!
118    *
119    * @param iField PARAMETER
120    *
121    * @return RETURN
122    *
123    * @todo METHOD_DESCRIPTION
124    */
125   public String getFieldName(int iField)
126   {
1270    return MapScriptJNI.DBFInfo_getFieldName(swigCPtr, iField);
128   }
129  
130   /**
131    * DOCUMENT ME!
132    *
133    * @param iField PARAMETER
134    *
135    * @return RETURN
136    *
137    * @todo METHOD_DESCRIPTION
138    */
139   public int getFieldType(int iField)
140   {
1410    return MapScriptJNI.DBFInfo_getFieldType(swigCPtr, iField);
142   }
143  
144   /**
145    * DOCUMENT ME!
146    *
147    * @param iField PARAMETER
148    *
149    * @return RETURN
150    *
151    * @todo METHOD_DESCRIPTION
152    */
153   public int getFieldWidth(int iField)
154   {
1550    return MapScriptJNI.DBFInfo_getFieldWidth(swigCPtr, iField);
156   }
157  
158   /**
159    * DOCUMENT ME!
160    *
161    * @return RETURN
162    *
163    * @todo METHOD_DESCRIPTION
164    */
165   public SWIGTYPE_p_FILE getFp()
166   {
1670    return new SWIGTYPE_p_FILE(MapScriptJNI.get_DBFInfo_fp(swigCPtr), false);
168   }
169  
170   /**
171    * DOCUMENT ME!
172    *
173    * @return RETURN
174    *
175    * @todo METHOD_DESCRIPTION
176    */
177   public int getNCurrentRecord()
178   {
1790    return MapScriptJNI.get_DBFInfo_nCurrentRecord(swigCPtr);
180   }
181  
182   /**
183    * DOCUMENT ME!
184    *
185    * @return RETURN
186    *
187    * @todo METHOD_DESCRIPTION
188    */
189   public int getNFields()
190   {
1910    return MapScriptJNI.get_DBFInfo_nFields(swigCPtr);
192   }
193  
194   /**
195    * DOCUMENT ME!
196    *
197    * @return RETURN
198    *
199    * @todo METHOD_DESCRIPTION
200    */
201   public int getNHeaderLength()
202   {
2030    return MapScriptJNI.get_DBFInfo_nHeaderLength(swigCPtr);
204   }
205  
206   /**
207    * DOCUMENT ME!
208    *
209    * @return RETURN
210    *
211    * @todo METHOD_DESCRIPTION
212    */
213   public int getNRecordLength()
214   {
2150    return MapScriptJNI.get_DBFInfo_nRecordLength(swigCPtr);
216   }
217  
218   /**
219    * DOCUMENT ME!
220    *
221    * @return RETURN
222    *
223    * @todo METHOD_DESCRIPTION
224    */
225   public int getNRecords()
226   {
2270    return MapScriptJNI.get_DBFInfo_nRecords(swigCPtr);
228   }
229  
230   /**
231    * DOCUMENT ME!
232    *
233    * @return RETURN
234    *
235    * @todo METHOD_DESCRIPTION
236    */
237   public int getNStringFieldLen()
238   {
2390    return MapScriptJNI.get_DBFInfo_nStringFieldLen(swigCPtr);
240   }
241  
242   /**
243    * DOCUMENT ME!
244    *
245    * @return RETURN
246    *
247    * @todo METHOD_DESCRIPTION
248    */
249   public String getPachFieldType()
250   {
2510    return MapScriptJNI.get_DBFInfo_pachFieldType(swigCPtr);
252   }
253  
254   /**
255    * DOCUMENT ME!
256    *
257    * @return RETURN
258    *
259    * @todo METHOD_DESCRIPTION
260    */
261   public SWIGTYPE_p_int getPanFieldDecimals()
262   {
2630    return new SWIGTYPE_p_int(MapScriptJNI.get_DBFInfo_panFieldDecimals(
264         swigCPtr), false);
265   }
266  
267   /**
268    * DOCUMENT ME!
269    *
270    * @return RETURN
271    *
272    * @todo METHOD_DESCRIPTION
273    */
274   public SWIGTYPE_p_int getPanFieldOffset()
275   {
2760    return new SWIGTYPE_p_int(MapScriptJNI.get_DBFInfo_panFieldOffset(swigCPtr),
277       false);
278   }
279  
280   /**
281    * DOCUMENT ME!
282    *
283    * @return RETURN
284    *
285    * @todo METHOD_DESCRIPTION
286    */
287   public SWIGTYPE_p_int getPanFieldSize()
288   {
2890    return new SWIGTYPE_p_int(MapScriptJNI.get_DBFInfo_panFieldSize(swigCPtr),
290       false);
291   }
292  
293   /**
294    * DOCUMENT ME!
295    *
296    * @return RETURN
297    *
298    * @todo METHOD_DESCRIPTION
299    */
300   public String getPszCurrentRecord()
301   {
3020    return MapScriptJNI.get_DBFInfo_pszCurrentRecord(swigCPtr);
303   }
304  
305   /**
306    * DOCUMENT ME!
307    *
308    * @return RETURN
309    *
310    * @todo METHOD_DESCRIPTION
311    */
312   public String getPszHeader()
313   {
3140    return MapScriptJNI.get_DBFInfo_pszHeader(swigCPtr);
315   }
316  
317   /**
318    * DOCUMENT ME!
319    *
320    * @return RETURN
321    *
322    * @todo METHOD_DESCRIPTION
323    */
324   public String getPszStringField()
325   {
3260    return MapScriptJNI.get_DBFInfo_pszStringField(swigCPtr);
327   }
328  
329   /**
330    * DOCUMENT ME!
331    *
332    * @todo METHOD_DESCRIPTION
333    */
334   public void delete()
335   {
3360    if ((swigCPtr != 0) && swigCMemOwn)
337     {
3380      MapScriptJNI.delete_DBFInfo(swigCPtr);
3390      swigCMemOwn = false;
340     }
341  
3420    swigCPtr = 0;
3430  }
344  
345   /**
346    * DOCUMENT ME!
347    *
348    * @param obj PARAMETER
349    *
350    * @return RETURN
351    *
352    * @todo METHOD_DESCRIPTION
353    */
354   public boolean equals(Object obj)
355   {
3560    boolean equal = false;
357  
3580    if (obj instanceof DBFInfo)
359     {
3600      equal = (((DBFInfo) obj).swigCPtr == this.swigCPtr);
361     }
362  
3630    return equal;
364   }
365  
366   /**
367    * DOCUMENT ME!
368    *
369    * @param obj PARAMETER
370    *
371    * @return RETURN
372    *
373    * @todo METHOD_DESCRIPTION
374    */
375   protected static long getCPtr(DBFInfo obj)
376   {
3770    return obj.swigCPtr;
378   }
379  
380   /**
381    * DOCUMENT ME!
382    *
383    * @todo METHOD_DESCRIPTION
384    */
385   protected void finalize()
386   {
3870    delete();
3880  }
389 }

this report was generated by version 1.0.2 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.