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

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 projectionObj
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 projectionObj object.
48    *
49    * @param string PARAMETER
50    */
51   public projectionObj(String string)
52   {
530    this(MapScriptJNI.new_projectionObj(string), true);
540  }
55  
56   /**
57    * Creates a new projectionObj object.
58    *
59    * @param cPtr PARAMETER
60    * @param cMemoryOwn PARAMETER
61    */
62   protected projectionObj(long cPtr, boolean cMemoryOwn)
630  {
640    swigCMemOwn = cMemoryOwn;
650    swigCPtr = cPtr;
660  }
67  
68   /**
69    * Creates a new projectionObj object.
70    */
71   protected projectionObj()
72   {
730    this(0, false);
740  }
75  
76   /**
77    * DOCUMENT ME!
78    *
79    * @param args PARAMETER
80    *
81    * @todo METHOD_DESCRIPTION
82    */
83   public void setArgs(SWIGTYPE_p_p_char args)
84   {
850    MapScriptJNI.set_projectionObj_args(swigCPtr,
86       SWIGTYPE_p_p_char.getCPtr(args));
870  }
88  
89   /**
90    * DOCUMENT ME!
91    *
92    * @return RETURN
93    *
94    * @todo METHOD_DESCRIPTION
95    */
96   public SWIGTYPE_p_p_char getArgs()
97   {
980    return new SWIGTYPE_p_p_char(MapScriptJNI.get_projectionObj_args(swigCPtr),
99       false);
100   }
101  
102   /**
103    * DOCUMENT ME!
104    *
105    * @param numargs PARAMETER
106    *
107    * @todo METHOD_DESCRIPTION
108    */
109   public void setNumargs(int numargs)
110   {
1110    MapScriptJNI.set_projectionObj_numargs(swigCPtr, numargs);
1120  }
113  
114   /**
115    * DOCUMENT ME!
116    *
117    * @return RETURN
118    *
119    * @todo METHOD_DESCRIPTION
120    */
121   public int getNumargs()
122   {
1230    return MapScriptJNI.get_projectionObj_numargs(swigCPtr);
124   }
125  
126   /**
127    * DOCUMENT ME!
128    *
129    * @param proj PARAMETER
130    *
131    * @todo METHOD_DESCRIPTION
132    */
133   public void setProj(SWIGTYPE_p_void proj)
134   {
1350    MapScriptJNI.set_projectionObj_proj(swigCPtr, SWIGTYPE_p_void.getCPtr(proj));
1360  }
137  
138   /**
139    * DOCUMENT ME!
140    *
141    * @return RETURN
142    *
143    * @todo METHOD_DESCRIPTION
144    */
145   public SWIGTYPE_p_void getProj()
146   {
1470    return new SWIGTYPE_p_void(MapScriptJNI.get_projectionObj_proj(swigCPtr),
148       false);
149   }
150  
151   /**
152    * DOCUMENT ME!
153    *
154    * @todo METHOD_DESCRIPTION
155    */
156   public void delete()
157   {
1580    if ((swigCPtr != 0) && swigCMemOwn)
159     {
1600      MapScriptJNI.delete_projectionObj(swigCPtr);
1610      swigCMemOwn = false;
162     }
163  
1640    swigCPtr = 0;
1650  }
166  
167   /**
168    * DOCUMENT ME!
169    *
170    * @param obj PARAMETER
171    *
172    * @return RETURN
173    *
174    * @todo METHOD_DESCRIPTION
175    */
176   public boolean equals(Object obj)
177   {
1780    boolean equal = false;
179  
1800    if (obj instanceof projectionObj)
181     {
1820      equal = (((projectionObj) obj).swigCPtr == this.swigCPtr);
183     }
184  
1850    return equal;
186   }
187  
188   /**
189    * DOCUMENT ME!
190    *
191    * @param obj PARAMETER
192    *
193    * @return RETURN
194    *
195    * @todo METHOD_DESCRIPTION
196    */
197   protected static long getCPtr(projectionObj obj)
198   {
1990    return obj.swigCPtr;
200   }
201  
202   /**
203    * DOCUMENT ME!
204    *
205    * @todo METHOD_DESCRIPTION
206    */
207   protected void finalize()
208   {
2090    delete();
2100  }
211 }

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.