Revision 23007
trunk/libraries/libGeocoding/src/org/gvsig/geocoding/patterns/Source.java | ||
---|---|---|
1 |
/* |
|
2 |
* This class was automatically generated with |
|
3 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML |
|
4 |
* Schema. |
|
5 |
* $Id$ |
|
6 |
*/ |
|
7 |
|
|
8 |
package org.gvsig.geocoding.patterns; |
|
9 |
|
|
10 |
import org.gvsig.tools.storage.IStorable; |
|
11 |
import org.gvsig.tools.storage.IStorage; |
|
12 |
|
|
13 |
// ---------------------------------/ |
|
14 |
// - Imported classes and packages -/ |
|
15 |
// ---------------------------------/ |
|
16 |
|
|
17 |
|
|
18 |
/** |
|
19 |
* Class Source. |
|
20 |
* |
|
21 |
* @version $Revision$ $Date$ |
|
22 |
*/ |
|
23 |
public class Source implements IStorable { |
|
24 |
|
|
25 |
// --------------------------/ |
|
26 |
// - Class/Member Variables -/ |
|
27 |
// --------------------------/ |
|
28 |
|
|
29 |
/** |
|
30 |
* Field _addressstyle |
|
31 |
*/ |
|
32 |
private org.gvsig.geocoding.patterns.Addressstyle _addressstyle; |
|
33 |
|
|
34 |
/** |
|
35 |
* Field _layersource |
|
36 |
*/ |
|
37 |
private org.gvsig.geocoding.patterns.Layersource _layersource; |
|
38 |
|
|
39 |
// ----------------/ |
|
40 |
// - Constructors -/ |
|
41 |
// ----------------/ |
|
42 |
|
|
43 |
public Source() { |
|
44 |
super(); |
|
45 |
} |
|
46 |
|
|
47 |
// -----------/ |
|
48 |
// - Methods -/ |
|
49 |
// -----------/ |
|
50 |
|
|
51 |
/** |
|
52 |
* Returns the value of field 'addressstyle'. |
|
53 |
* |
|
54 |
* @return the value of field 'addressstyle'. |
|
55 |
*/ |
|
56 |
public org.gvsig.geocoding.patterns..Addressstyle getAddressstyle() { |
|
57 |
return this._addressstyle; |
|
58 |
} |
|
59 |
|
|
60 |
/** |
|
61 |
* Returns the value of field 'layersource'. |
|
62 |
* |
|
63 |
* @return the value of field 'layersource'. |
|
64 |
*/ |
|
65 |
public org.gvsig.geocoding.patterns.Layersource getLayersource() { |
|
66 |
return this._layersource; |
|
67 |
} |
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
/** |
|
72 |
* Sets the value of field 'addressstyle'. |
|
73 |
* |
|
74 |
* @param addressstyle |
|
75 |
* the value of field 'addressstyle'. |
|
76 |
*/ |
|
77 |
public void setAddressstyle( |
|
78 |
org.gvsig.geocoding.patterns.Addressstyle addressstyle) { |
|
79 |
this._addressstyle = addressstyle; |
|
80 |
} |
|
81 |
/** |
|
82 |
* Sets the value of field 'layersource'. |
|
83 |
* |
|
84 |
* @param layersource |
|
85 |
* the value of field 'layersource'. |
|
86 |
*/ |
|
87 |
public void setLayersource( |
|
88 |
org.gvsig.geocoding.patterns.Layersource layersource) { |
|
89 |
this._layersource = layersource; |
|
90 |
} |
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
public void getstate(IStorage state) { |
|
95 |
state.setName("source"); |
|
96 |
state.setTheClass(this); |
|
97 |
state.put("addressstyle", this._addressstyle); |
|
98 |
state.put("layersource", this._layersource); |
|
99 |
|
|
100 |
} |
|
101 |
|
|
102 |
public void setstate(IStorage state) { |
|
103 |
try { |
|
104 |
this._addressstyle = (Addressstyle)state.getObject("addressstyle"); |
|
105 |
this._layersource = (Layersource)state.getObject("layersource"); |
|
106 |
} catch (InstantiationException e) { |
|
107 |
// TODO Auto-generated catch block |
|
108 |
e.printStackTrace(); |
|
109 |
} catch (IllegalAccessException e) { |
|
110 |
// TODO Auto-generated catch block |
|
111 |
e.printStackTrace(); |
|
112 |
} |
|
113 |
|
|
114 |
} |
|
115 |
|
|
116 |
} |
trunk/libraries/libGeocoding/src/org/gvsig/geocoding/patterns/Jdbc.java | ||
---|---|---|
1 |
/* |
|
2 |
* This class was automatically generated with |
|
3 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML |
|
4 |
* Schema. |
|
5 |
* $Id$ |
|
6 |
*/ |
|
7 |
|
|
8 |
package org.gvsig.geocoding.patterns; |
|
9 |
|
|
10 |
//---------------------------------/ |
|
11 |
//- Imported classes and packages -/ |
|
12 |
//---------------------------------/ |
|
13 |
|
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import org.exolab.castor.xml.MarshalException; |
|
19 |
import org.exolab.castor.xml.Marshaller; |
|
20 |
import org.exolab.castor.xml.Unmarshaller; |
|
21 |
import org.exolab.castor.xml.ValidationException; |
|
22 |
import org.gvsig.tools.storage.IStorable; |
|
23 |
import org.gvsig.tools.storage.IStorage; |
|
24 |
import org.xml.sax.ContentHandler; |
|
25 |
|
|
26 |
/** |
|
27 |
* Class Jdbc. |
|
28 |
* |
|
29 |
* @version $Revision$ $Date$ |
|
30 |
*/ |
|
31 |
public class Jdbc implements IStorable { |
|
32 |
|
|
33 |
|
|
34 |
//--------------------------/ |
|
35 |
//- Class/Member Variables -/ |
|
36 |
//--------------------------/ |
|
37 |
|
|
38 |
/** |
|
39 |
* Field _server |
|
40 |
*/ |
|
41 |
private String _server; |
|
42 |
|
|
43 |
/** |
|
44 |
* Field _database |
|
45 |
*/ |
|
46 |
private String _database; |
|
47 |
|
|
48 |
/** |
|
49 |
* Field _table |
|
50 |
*/ |
|
51 |
private String _table; |
|
52 |
|
|
53 |
/** |
|
54 |
* Field _user |
|
55 |
*/ |
|
56 |
private String _user; |
|
57 |
|
|
58 |
|
|
59 |
//----------------/ |
|
60 |
//- Constructors -/ |
|
61 |
//----------------/ |
|
62 |
|
|
63 |
public Jdbc() { |
|
64 |
super(); |
|
65 |
} |
|
66 |
|
|
67 |
|
|
68 |
//-----------/ |
|
69 |
//- Methods -/ |
|
70 |
//-----------/ |
|
71 |
|
|
72 |
/** |
|
73 |
* Returns the value of field 'database'. |
|
74 |
* |
|
75 |
* @return the value of field 'database'. |
|
76 |
*/ |
|
77 |
public String getDatabase() |
|
78 |
{ |
|
79 |
return this._database; |
|
80 |
} |
|
81 |
|
|
82 |
/** |
|
83 |
* Returns the value of field 'server'. |
|
84 |
* |
|
85 |
* @return the value of field 'server'. |
|
86 |
*/ |
|
87 |
public String getServer() |
|
88 |
{ |
|
89 |
return this._server; |
|
90 |
} |
|
91 |
|
|
92 |
/** |
|
93 |
* Returns the value of field 'table'. |
|
94 |
* |
|
95 |
* @return the value of field 'table'. |
|
96 |
*/ |
|
97 |
public String getTable() |
|
98 |
{ |
|
99 |
return this._table; |
|
100 |
} |
|
101 |
|
|
102 |
/** |
|
103 |
* Returns the value of field 'user'. |
|
104 |
* |
|
105 |
* @return the value of field 'user'. |
|
106 |
*/ |
|
107 |
public String getUser() |
|
108 |
{ |
|
109 |
return this._user; |
|
110 |
} |
|
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
/** |
|
117 |
* Sets the value of field 'database'. |
|
118 |
* |
|
119 |
* @param database the value of field 'database'. |
|
120 |
*/ |
|
121 |
public void setDatabase(String database) |
|
122 |
{ |
|
123 |
this._database = database; |
|
124 |
} |
|
125 |
|
|
126 |
/** |
|
127 |
* Sets the value of field 'server'. |
|
128 |
* |
|
129 |
* @param server the value of field 'server'. |
|
130 |
*/ |
|
131 |
public void setServer(String server) |
|
132 |
{ |
|
133 |
this._server = server; |
|
134 |
} |
|
135 |
|
|
136 |
/** |
|
137 |
* Sets the value of field 'table'. |
|
138 |
* |
|
139 |
* @param table the value of field 'table'. |
|
140 |
*/ |
|
141 |
public void setTable(String table) |
|
142 |
{ |
|
143 |
this._table = table; |
|
144 |
} |
|
145 |
|
|
146 |
/** |
|
147 |
* Sets the value of field 'user'. |
|
148 |
* |
|
149 |
* @param user the value of field 'user'. |
|
150 |
*/ |
|
151 |
public void setUser(String user) |
|
152 |
{ |
|
153 |
this._user = user; |
|
154 |
} |
|
155 |
|
|
156 |
|
|
157 |
public void getstate(IStorage arg0) { |
|
158 |
// TODO Auto-generated method stub |
|
159 |
|
|
160 |
} |
|
161 |
|
|
162 |
|
|
163 |
public void setstate(IStorage arg0) { |
|
164 |
// TODO Auto-generated method stub |
|
165 |
|
|
166 |
} |
|
167 |
|
|
168 |
} |
trunk/libraries/libGeocoding/src/org/gvsig/geocoding/patterns/Field.java | ||
---|---|---|
1 |
/* |
|
2 |
* This class was automatically generated with |
|
3 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML |
|
4 |
* Schema. |
|
5 |
* $Id$ |
|
6 |
*/ |
|
7 |
|
|
8 |
package org.gvsig.geocoding.patterns; |
|
9 |
|
|
10 |
// ---------------------------------/ |
|
11 |
// - Imported classes and packages -/ |
|
12 |
// ---------------------------------/ |
|
13 |
|
|
14 |
import org.gvsig.tools.storage.IStorable; |
|
15 |
import org.gvsig.tools.storage.IStorage; |
|
16 |
|
|
17 |
/** |
|
18 |
* Class Field. |
|
19 |
* |
|
20 |
* @version $Revision$ $Date$ |
|
21 |
*/ |
|
22 |
public class Field implements IStorable { |
|
23 |
|
|
24 |
// --------------------------/ |
|
25 |
// - Class/Member Variables -/ |
|
26 |
// --------------------------/ |
|
27 |
|
|
28 |
/** |
|
29 |
* Field _name |
|
30 |
*/ |
|
31 |
private String _name; |
|
32 |
|
|
33 |
/** |
|
34 |
* Field _addresselement |
|
35 |
*/ |
|
36 |
private String _addresselement; |
|
37 |
|
|
38 |
// ----------------/ |
|
39 |
// - Constructors -/ |
|
40 |
// ----------------/ |
|
41 |
|
|
42 |
public Field() { |
|
43 |
super(); |
|
44 |
} |
|
45 |
|
|
46 |
// -----------/ |
|
47 |
// - Methods -/ |
|
48 |
// -----------/ |
|
49 |
|
|
50 |
/** |
|
51 |
* Returns the value of field 'addresselement'. |
|
52 |
* |
|
53 |
* @return the value of field 'addresselement'. |
|
54 |
*/ |
|
55 |
public String getAddresselement() { |
|
56 |
return this._addresselement; |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* Returns the value of field 'name'. |
|
61 |
* |
|
62 |
* @return the value of field 'name'. |
|
63 |
*/ |
|
64 |
public java.lang.String getName() { |
|
65 |
return this._name; |
|
66 |
} |
|
67 |
|
|
68 |
/** |
|
69 |
* Sets the value of field 'addresselement'. |
|
70 |
* |
|
71 |
* @param addresselement |
|
72 |
* the value of field 'addresselement'. |
|
73 |
*/ |
|
74 |
public void setAddresselement(String addresselement) { |
|
75 |
this._addresselement = addresselement; |
|
76 |
} |
|
77 |
|
|
78 |
/** |
|
79 |
* Sets the value of field 'name'. |
|
80 |
* |
|
81 |
* @param name |
|
82 |
* the value of field 'name'. |
|
83 |
*/ |
|
84 |
public void setName(String name) { |
|
85 |
this._name = name; |
|
86 |
} |
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
public void getstate(IStorage arg0) { |
|
91 |
// TODO Auto-generated method stub |
|
92 |
|
|
93 |
} |
|
94 |
|
|
95 |
public void setstate(IStorage arg0) { |
|
96 |
// TODO Auto-generated method stub |
|
97 |
|
|
98 |
} |
|
99 |
|
|
100 |
} |
trunk/libraries/libGeocoding/src/org/gvsig/geocoding/patterns/Addressstyle.java | ||
---|---|---|
1 |
/* |
|
2 |
* This class was automatically generated with |
|
3 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML |
|
4 |
* Schema. |
|
5 |
* $Id$ |
|
6 |
*/ |
|
7 |
|
|
8 |
package org.gvsig.geocoding.patterns; |
|
9 |
|
|
10 |
// ---------------------------------/ |
|
11 |
// - Imported classes and packages -/ |
|
12 |
// ---------------------------------/ |
|
13 |
|
|
14 |
import java.util.ArrayList; |
|
15 |
import java.util.List; |
|
16 |
import java.util.Vector; |
|
17 |
|
|
18 |
import org.gvsig.tools.storage.IStorable; |
|
19 |
import org.gvsig.tools.storage.IStorage; |
|
20 |
|
|
21 |
/** |
|
22 |
* Class Addressstyle. |
|
23 |
* |
|
24 |
* @version $Revision$ $Date$ |
|
25 |
*/ |
|
26 |
public class Addressstyle implements IStorable { |
|
27 |
|
|
28 |
// --------------------------/ |
|
29 |
// - Class/Member Variables -/ |
|
30 |
// --------------------------/ |
|
31 |
|
|
32 |
/** |
|
33 |
* Field _fieldList |
|
34 |
*/ |
|
35 |
private List _fieldList; |
|
36 |
|
|
37 |
// ----------------/ |
|
38 |
// - Constructors -/ |
|
39 |
// ----------------/ |
|
40 |
|
|
41 |
public Addressstyle() { |
|
42 |
super(); |
|
43 |
_fieldList = new ArrayList(); |
|
44 |
} |
|
45 |
|
|
46 |
// -----------/ |
|
47 |
// - Methods -/ |
|
48 |
// -----------/ |
|
49 |
|
|
50 |
/** |
|
51 |
* Method addField |
|
52 |
* |
|
53 |
* @param vField |
|
54 |
*/ |
|
55 |
public void addField(Field vField) |
|
56 |
throws IndexOutOfBoundsException { |
|
57 |
_fieldList.add(vField); |
|
58 |
} |
|
59 |
/** |
|
60 |
* Method addField |
|
61 |
* |
|
62 |
* @param index |
|
63 |
* @param vField |
|
64 |
*/ |
|
65 |
public void addField(int index, |
|
66 |
Field vField) |
|
67 |
throws IndexOutOfBoundsException { |
|
68 |
_fieldList.add(index, vField); |
|
69 |
} |
|
70 |
|
|
71 |
/** |
|
72 |
* Method getField |
|
73 |
* |
|
74 |
* @param index |
|
75 |
*/ |
|
76 |
public Field getField(int index) |
|
77 |
throws IndexOutOfBoundsException { |
|
78 |
// -- check bounds for index |
|
79 |
if ((index < 0) || (index > _fieldList.size())) { |
|
80 |
throw new IndexOutOfBoundsException(); |
|
81 |
} |
|
82 |
|
|
83 |
return (Field) _fieldList |
|
84 |
.get(index); |
|
85 |
} |
|
86 |
|
|
87 |
/** |
|
88 |
* Method getField |
|
89 |
*/ |
|
90 |
public Field[] getFields() { |
|
91 |
int size = _fieldList.size(); |
|
92 |
org.gvsig.geocoding.patterns.Field[] mArray = new org.gvsig.geocoding.patterns.Field[size]; |
|
93 |
for (int index = 0; index < size; index++) { |
|
94 |
mArray[index] = (org.gvsig.geocoding.patterns.Field) _fieldList |
|
95 |
.get(index); |
|
96 |
} |
|
97 |
return mArray; |
|
98 |
} |
|
99 |
|
|
100 |
/** |
|
101 |
* Method getFieldCount |
|
102 |
*/ |
|
103 |
public int getFieldCount() { |
|
104 |
return _fieldList.size(); |
|
105 |
} |
|
106 |
|
|
107 |
/** |
|
108 |
* Method removeAllField |
|
109 |
*/ |
|
110 |
public void removeAllField() { |
|
111 |
_fieldList.clear(); |
|
112 |
} |
|
113 |
|
|
114 |
/** |
|
115 |
* Method removeField |
|
116 |
* |
|
117 |
* @param index |
|
118 |
*/ |
|
119 |
public void removeField(int index) { |
|
120 |
_fieldList.remove(index); |
|
121 |
|
|
122 |
} |
|
123 |
|
|
124 |
/** |
|
125 |
* Method setField |
|
126 |
* |
|
127 |
* @param index |
|
128 |
* @param vField |
|
129 |
*/ |
|
130 |
public void setField(int index, Field vField) |
|
131 |
throws IndexOutOfBoundsException { |
|
132 |
// -- check bounds for index |
|
133 |
if ((index < 0) || (index > _fieldList.size())) { |
|
134 |
throw new IndexOutOfBoundsException(); |
|
135 |
} |
|
136 |
_fieldList.setElementAt(vField, index); |
|
137 |
} // -- void setField(int, org.gvsig.geocoding.patterns.geocoding.Field) |
|
138 |
|
|
139 |
/** |
|
140 |
* Method setField |
|
141 |
* |
|
142 |
* @param fieldArray |
|
143 |
*/ |
|
144 |
public void setField( |
|
145 |
Field[] fieldArray) { |
|
146 |
// -- copy array |
|
147 |
_fieldList.removeAllElements(); |
|
148 |
for (int i = 0; i < fieldArray.length; i++) { |
|
149 |
_fieldList.addElement(fieldArray[i]); |
|
150 |
} |
|
151 |
} // -- void setField(org.gvsig.geocoding.patterns.geocoding.Field) |
|
152 |
|
|
153 |
|
|
154 |
public void getstate(IStorage arg0) { |
|
155 |
// TODO Auto-generated method stub |
|
156 |
|
|
157 |
} |
|
158 |
|
|
159 |
public void setstate(IStorage arg0) { |
|
160 |
// TODO Auto-generated method stub |
|
161 |
|
|
162 |
} |
|
163 |
|
|
164 |
} |
trunk/libraries/libGeocoding/src/org/gvsig/geocoding/patterns/Shpfile.java | ||
---|---|---|
1 |
/* |
|
2 |
* This class was automatically generated with |
|
3 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML |
|
4 |
* Schema. |
|
5 |
* $Id$ |
|
6 |
*/ |
|
7 |
|
|
8 |
package org.gvsig.geocoding.patterns; |
|
9 |
|
|
10 |
// ---------------------------------/ |
|
11 |
// - Imported classes and packages -/ |
|
12 |
// ---------------------------------/ |
|
13 |
|
|
14 |
import org.gvsig.tools.storage.IStorable; |
|
15 |
import org.gvsig.tools.storage.IStorage; |
|
16 |
|
|
17 |
/** |
|
18 |
* Class Shpfile. |
|
19 |
* |
|
20 |
* @version $Revision$ $Date$ |
|
21 |
*/ |
|
22 |
public class Shpfile implements IStorable { |
|
23 |
|
|
24 |
// --------------------------/ |
|
25 |
// - Class/Member Variables -/ |
|
26 |
// --------------------------/ |
|
27 |
|
|
28 |
/** |
|
29 |
* Field _fileurl |
|
30 |
*/ |
|
31 |
private String _fileurl; |
|
32 |
|
|
33 |
// ----------------/ |
|
34 |
// - Constructors -/ |
|
35 |
// ----------------/ |
|
36 |
|
|
37 |
public Shpfile() { |
|
38 |
super(); |
|
39 |
} |
|
40 |
|
|
41 |
// -----------/ |
|
42 |
// - Methods -/ |
|
43 |
// -----------/ |
|
44 |
|
|
45 |
/** |
|
46 |
* Returns the value of field 'fileurl'. |
|
47 |
* |
|
48 |
* @return the value of field 'fileurl'. |
|
49 |
*/ |
|
50 |
public String getFileurl() { |
|
51 |
return this._fileurl; |
|
52 |
} |
|
53 |
|
|
54 |
/** |
|
55 |
* Sets the value of field 'fileurl'. |
|
56 |
* |
|
57 |
* @param fileurl |
|
58 |
* the value of field 'fileurl'. |
|
59 |
*/ |
|
60 |
public void setFileurl(String fileurl) { |
|
61 |
this._fileurl = fileurl; |
|
62 |
} |
|
63 |
|
|
64 |
public void getstate(IStorage arg0) { |
|
65 |
// TODO Auto-generated method stub |
|
66 |
|
|
67 |
} |
|
68 |
|
|
69 |
public void setstate(IStorage arg0) { |
|
70 |
// TODO Auto-generated method stub |
|
71 |
|
|
72 |
} |
|
73 |
|
|
74 |
} |
trunk/libraries/libGeocoding/src/org/gvsig/geocoding/patterns/Patterngeocoding.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 Prodevelop S.L. main development |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.geocoding.patterns; |
|
29 |
|
|
30 |
import org.gvsig.tools.storage.IStorable; |
|
31 |
import org.gvsig.tools.storage.IStorage; |
|
32 |
|
|
33 |
/** |
|
34 |
* |
|
35 |
* @author <a href="mailto:jsanz@prodevelop.es"> Jorge Gaspar Sanz Salinas</a> |
|
36 |
* @author <a href="mailto:vsanjaime@prodevelop.es"> Vicente Sanjaime Calvet</a> |
|
37 |
* |
|
38 |
*/ |
|
39 |
|
|
40 |
/** |
|
41 |
* Class Patterngeocoding. |
|
42 |
* |
|
43 |
* @version $Revision$ $Date$ |
|
44 |
*/ |
|
45 |
public class Patterngeocoding implements IStorable { |
|
46 |
|
|
47 |
// --------------------------/ |
|
48 |
// - Class/Member Variables -/ |
|
49 |
// --------------------------/ |
|
50 |
|
|
51 |
/** |
|
52 |
* Field _patternname |
|
53 |
*/ |
|
54 |
private String _patternname; |
|
55 |
|
|
56 |
/** |
|
57 |
* Field _patternurl |
|
58 |
*/ |
|
59 |
private String _patternurl; |
|
60 |
|
|
61 |
/** |
|
62 |
* Field _maxresults |
|
63 |
*/ |
|
64 |
private int _maxresults; |
|
65 |
|
|
66 |
/** |
|
67 |
* Field _accuracy |
|
68 |
*/ |
|
69 |
private int _accuracy; |
|
70 |
|
|
71 |
/** |
|
72 |
* Field _quality |
|
73 |
*/ |
|
74 |
private int _quality; |
|
75 |
|
|
76 |
/** |
|
77 |
* Field _source |
|
78 |
*/ |
|
79 |
private org.gvsig.geocoding.patterns.Source _source; |
|
80 |
|
|
81 |
// ----------------/ |
|
82 |
// - Constructors -/ |
|
83 |
// ----------------/ |
|
84 |
|
|
85 |
public Patterngeocoding() { |
|
86 |
super(); |
|
87 |
} |
|
88 |
|
|
89 |
// -----------/ |
|
90 |
// - Methods -/ |
|
91 |
// -----------/ |
|
92 |
|
|
93 |
/** |
|
94 |
* Returns the value of field 'accuracy'. |
|
95 |
* |
|
96 |
* @return the value of field 'accuracy'. |
|
97 |
*/ |
|
98 |
public int getAccuracy() { |
|
99 |
return this._accuracy; |
|
100 |
} |
|
101 |
|
|
102 |
/** |
|
103 |
* Returns the value of field 'maxresults'. |
|
104 |
* |
|
105 |
* @return the value of field 'maxresults'. |
|
106 |
*/ |
|
107 |
public int getMaxresults() { |
|
108 |
return this._maxresults; |
|
109 |
} |
|
110 |
|
|
111 |
/** |
|
112 |
* Returns the value of field 'patternname'. |
|
113 |
* |
|
114 |
* @return the value of field 'patternname'. |
|
115 |
*/ |
|
116 |
public String getPatternname() { |
|
117 |
return this._patternname; |
|
118 |
} |
|
119 |
|
|
120 |
/** |
|
121 |
* Returns the value of field 'patternurl'. |
|
122 |
* |
|
123 |
* @return the value of field 'patternurl'. |
|
124 |
*/ |
|
125 |
public String getPatternurl() { |
|
126 |
return this._patternurl; |
|
127 |
} |
|
128 |
|
|
129 |
/** |
|
130 |
* Returns the value of field 'quality'. |
|
131 |
* |
|
132 |
* @return the value of field 'quality'. |
|
133 |
*/ |
|
134 |
public int getQuality() { |
|
135 |
return this._quality; |
|
136 |
} |
|
137 |
|
|
138 |
/** |
|
139 |
* Returns the value of field 'source'. |
|
140 |
* |
|
141 |
* @return the value of field 'source'. |
|
142 |
*/ |
|
143 |
public org.gvsig.geocoding.patterns.Source getSource() { |
|
144 |
return this._source; |
|
145 |
} |
|
146 |
|
|
147 |
/** |
|
148 |
* Sets the value of field 'accuracy'. |
|
149 |
* |
|
150 |
* @param accuracy |
|
151 |
* the value of field 'accuracy'. |
|
152 |
*/ |
|
153 |
public void setAccuracy(int accuracy) { |
|
154 |
this._accuracy = accuracy; |
|
155 |
} |
|
156 |
|
|
157 |
/** |
|
158 |
* Sets the value of field 'maxresults'. |
|
159 |
* |
|
160 |
* @param maxresults |
|
161 |
* the value of field 'maxresults'. |
|
162 |
*/ |
|
163 |
public void setMaxresults(int maxresults) { |
|
164 |
this._maxresults = maxresults; |
|
165 |
} |
|
166 |
|
|
167 |
/** |
|
168 |
* Sets the value of field 'patternname'. |
|
169 |
* |
|
170 |
* @param patternname |
|
171 |
* the value of field 'patternname'. |
|
172 |
*/ |
|
173 |
public void setPatternname(String patternname) { |
|
174 |
this._patternname = patternname; |
|
175 |
} |
|
176 |
|
|
177 |
/** |
|
178 |
* Sets the value of field 'patternurl'. |
|
179 |
* |
|
180 |
* @param patternurl |
|
181 |
* the value of field 'patternurl'. |
|
182 |
*/ |
|
183 |
public void setPatternurl(String patternurl) { |
|
184 |
this._patternurl = patternurl; |
|
185 |
} |
|
186 |
|
|
187 |
/** |
|
188 |
* Sets the value of field 'quality'. |
|
189 |
* |
|
190 |
* @param quality |
|
191 |
* the value of field 'quality'. |
|
192 |
*/ |
|
193 |
public void setQuality(int quality) { |
|
194 |
this._quality = quality; |
|
195 |
} |
|
196 |
|
|
197 |
/** |
|
198 |
* Sets the value of field 'source'. |
|
199 |
* |
|
200 |
* @param source |
|
201 |
* the value of field 'source'. |
|
202 |
*/ |
|
203 |
public void setSource(org.gvsig.geocoding.patterns.Source source) { |
|
204 |
this._source = source; |
|
205 |
} |
|
206 |
|
|
207 |
public void getstate(IStorage state) { |
|
208 |
state.setName("patternnormalization"); |
|
209 |
state.setTheClass(this); |
|
210 |
state.put("patternname", this._patternname); |
|
211 |
state.put("patternurl", this._patternurl); |
|
212 |
state.put("maxresults", this._maxresults); |
|
213 |
state.put("accuracy", this._accuracy); |
|
214 |
state.put("quality", this._quality); |
|
215 |
state.put("source", this._source); |
|
216 |
|
|
217 |
} |
|
218 |
|
|
219 |
public void setstate(IStorage state) { |
|
220 |
this._patternname = ((String) state.get("patternname")).trim(); |
|
221 |
this._patternurl = ((String) state.get("patternurl")).trim(); |
|
222 |
this._maxresults = state.getInt("maxresults"); |
|
223 |
this._accuracy = state.getInt("accuracy"); |
|
224 |
this._maxresults = state.getInt("maxresults"); |
|
225 |
try { |
|
226 |
this._source = (Source)state.getObject("source"); |
|
227 |
} catch (InstantiationException e) { |
|
228 |
// TODO Auto-generated catch block |
|
229 |
e.printStackTrace(); |
|
230 |
} catch (IllegalAccessException e) { |
|
231 |
// TODO Auto-generated catch block |
|
232 |
e.printStackTrace(); |
|
233 |
} |
|
234 |
|
|
235 |
} |
|
236 |
|
|
237 |
} |
trunk/libraries/libGeocoding/src/org/gvsig/geocoding/patterns/Layersource.java | ||
---|---|---|
1 |
/* |
|
2 |
* This class was automatically generated with |
|
3 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML |
|
4 |
* Schema. |
|
5 |
* $Id$ |
|
6 |
*/ |
|
7 |
|
|
8 |
package org.gvsig.geocoding.patterns; |
|
9 |
|
|
10 |
// ---------------------------------/ |
|
11 |
// - Imported classes and packages -/ |
|
12 |
// ---------------------------------/ |
|
13 |
|
|
14 |
import org.gvsig.tools.storage.IStorable; |
|
15 |
import org.gvsig.tools.storage.IStorage; |
|
16 |
|
|
17 |
/** |
|
18 |
* Class Layersource. |
|
19 |
* |
|
20 |
* @version $Revision$ $Date$ |
|
21 |
*/ |
|
22 |
public class Layersource implements IStorable { |
|
23 |
|
|
24 |
// --------------------------/ |
|
25 |
// - Class/Member Variables -/ |
|
26 |
// --------------------------/ |
|
27 |
|
|
28 |
/** |
|
29 |
* Field _shpfile |
|
30 |
*/ |
|
31 |
private org.gvsig.geocoding.patterns.Shpfile _shpfile; |
|
32 |
|
|
33 |
/** |
|
34 |
* Field _jdbc |
|
35 |
*/ |
|
36 |
private org.gvsig.geocoding.patterns.Jdbc _jdbc; |
|
37 |
|
|
38 |
// ----------------/ |
|
39 |
// - Constructors -/ |
|
40 |
// ----------------/ |
|
41 |
|
|
42 |
public Layersource() { |
|
43 |
super(); |
|
44 |
} |
|
45 |
|
|
46 |
// -----------/ |
|
47 |
// - Methods -/ |
|
48 |
// -----------/ |
|
49 |
|
|
50 |
/** |
|
51 |
* Returns the value of field 'jdbc'. |
|
52 |
* |
|
53 |
* @return the value of field 'jdbc'. |
|
54 |
*/ |
|
55 |
public Jdbc getJdbc() { |
|
56 |
return this._jdbc; |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* Returns the value of field 'shpfile'. |
|
61 |
* |
|
62 |
* @return the value of field 'shpfile'. |
|
63 |
*/ |
|
64 |
public Shpfile getShpfile() { |
|
65 |
return this._shpfile; |
|
66 |
} |
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
/** |
|
71 |
* Sets the value of field 'jdbc'. |
|
72 |
* |
|
73 |
* @param jdbc |
|
74 |
* the value of field 'jdbc'. |
|
75 |
*/ |
|
76 |
public void setJdbc(Jdbc jdbc) { |
|
77 |
this._jdbc = jdbc; |
|
78 |
} |
|
79 |
|
|
80 |
/** |
|
81 |
* Sets the value of field 'shpfile'. |
|
82 |
* |
|
83 |
* @param shpfile |
|
84 |
* the value of field 'shpfile'. |
|
85 |
*/ |
|
86 |
public void setShpfile( |
|
87 |
Shpfile shpfile) { |
|
88 |
this._shpfile = shpfile; |
|
89 |
} |
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
public void getstate(IStorage arg0) { |
|
94 |
// TODO Auto-generated method stub |
|
95 |
|
|
96 |
} |
|
97 |
|
|
98 |
public void setstate(IStorage arg0) { |
|
99 |
// TODO Auto-generated method stub |
|
100 |
|
|
101 |
} |
|
102 |
|
|
103 |
} |
Also available in: Unified diff