Revision 22975
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/TestNormalizeStringsFromFile.java | ||
---|---|---|
35 | 35 |
import junit.framework.TestCase; |
36 | 36 |
|
37 | 37 |
import org.apache.log4j.Logger; |
38 |
import org.gvsig.geocoding.patterns.normalization.Patternnormalization; |
|
38 |
import org.gvsig.patterns.normalization.Patternnormalization; |
|
39 |
import org.gvsig.tools.storage.IStorage; |
|
40 |
import org.gvsig.tools.storage.StorageXML; |
|
39 | 41 |
|
40 | 42 |
import com.hardcode.gdbms.driver.exceptions.CloseDriverException; |
41 | 43 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
... | ... | |
50 | 52 |
public class TestNormalizeStringsFromFile extends TestCase { |
51 | 53 |
|
52 | 54 |
private static final Logger log = PluginServices.getLogger(); |
53 |
Patternnormalization pat = null;
|
|
55 |
Patternnormalization pat = new Patternnormalization();
|
|
54 | 56 |
ArrayList<String> chains = new ArrayList<String>(); |
55 | 57 |
File file; |
56 | 58 |
DBFDriver test = null; |
... | ... | |
60 | 62 |
File f = new File( |
61 | 63 |
"src-test/org/gvsig/normalization/operations/testdata/normFile.xml"); |
62 | 64 |
try { |
65 |
IStorage storage = new StorageXML(); |
|
63 | 66 |
FileReader red = new FileReader(f); |
64 |
pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
67 |
storage.load(red); |
|
68 |
pat.setstate(storage); |
|
69 |
//pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
65 | 70 |
} catch (Exception e) { |
66 | 71 |
log.error("Error parsing the xml pattern", e); |
67 | 72 |
} |
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/TestNormalizeTableJoinTable.java | ||
---|---|---|
34 | 34 |
import junit.framework.TestCase; |
35 | 35 |
|
36 | 36 |
import org.apache.log4j.Logger; |
37 |
import org.gvsig.geocoding.patterns.normalization.Patternnormalization; |
|
37 |
import org.gvsig.patterns.normalization.Patternnormalization; |
|
38 |
import org.gvsig.tools.storage.IStorage; |
|
39 |
import org.gvsig.tools.storage.StorageXML; |
|
38 | 40 |
|
39 | 41 |
import com.hardcode.gdbms.driver.exceptions.CloseDriverException; |
40 | 42 |
import com.hardcode.gdbms.engine.data.file.FileDataSource; |
... | ... | |
54 | 56 |
public class TestNormalizeTableJoinTable extends TestCase { |
55 | 57 |
|
56 | 58 |
private static final Logger log = PluginServices.getLogger(); |
57 |
Patternnormalization pat = null;
|
|
59 |
Patternnormalization pat = new Patternnormalization();
|
|
58 | 60 |
File dbfFile = new File( |
59 | 61 |
"src-test/org/gvsig/normalization/operations/testdata/pro.dbf"); |
60 | 62 |
File patFile = new File( |
... | ... | |
66 | 68 |
|
67 | 69 |
public void setUp() { |
68 | 70 |
try { |
71 |
IStorage storage = new StorageXML(); |
|
69 | 72 |
FileReader red = new FileReader(patFile); |
70 |
pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
73 |
|
|
74 |
|
|
75 |
storage.load(red); |
|
76 |
pat.setstate(storage); |
|
77 |
|
|
78 |
//pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
71 | 79 |
} catch (Exception e) { |
72 | 80 |
log.error("Error parsing the xml pattern", e); |
73 | 81 |
} |
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/TestNormAlgorithm.java | ||
---|---|---|
28 | 28 |
package org.gvsig.normalization.operations; |
29 | 29 |
|
30 | 30 |
import java.io.File; |
31 |
import java.io.FileNotFoundException; |
|
32 | 31 |
import java.io.FileReader; |
33 | 32 |
import java.util.List; |
34 | 33 |
|
35 | 34 |
import junit.framework.TestCase; |
36 | 35 |
|
37 | 36 |
import org.apache.log4j.Logger; |
38 |
import org.exolab.castor.xml.MarshalException;
|
|
39 |
import org.exolab.castor.xml.ValidationException;
|
|
40 |
import org.gvsig.geocoding.patterns.normalization.Patternnormalization;
|
|
37 |
import org.gvsig.patterns.normalization.Patternnormalization;
|
|
38 |
import org.gvsig.tools.storage.IStorage;
|
|
39 |
import org.gvsig.tools.storage.StorageXML;
|
|
41 | 40 |
|
42 | 41 |
public class TestNormAlgorithm extends TestCase { |
43 | 42 |
|
... | ... | |
90 | 89 |
assertEquals("%", (String) r2.get(5)); |
91 | 90 |
|
92 | 91 |
log.info("SubTest 3."); |
93 |
String c3 = "Av;Germanias;15;2;Moncada;Valencia";
|
|
92 |
String c3 = "Av;Germanias;25;3;Moncada;Valencia";
|
|
94 | 93 |
|
95 | 94 |
File f3 = new File( |
96 | 95 |
"src-test/org/gvsig/normalization/operations/testdata/patSplitChain3.xml"); |
... | ... | |
101 | 100 |
|
102 | 101 |
assertEquals("Av", (String) r3.get(0)); |
103 | 102 |
assertEquals("Germanias", (String) r3.get(1)); |
104 |
assertEquals(15, Integer.parseInt((String) r3.get(2)));
|
|
105 |
assertEquals(2, Integer.parseInt((String) r3.get(3)));
|
|
103 |
assertEquals(25, Integer.parseInt((String) r3.get(2)));
|
|
104 |
assertEquals(3, Integer.parseInt((String) r3.get(3)));
|
|
106 | 105 |
assertEquals("Moncada", (String) r3.get(4)); |
107 | 106 |
assertEquals("Valencia", (String) r3.get(5)); |
108 | 107 |
|
... | ... | |
219 | 218 |
log.info("TestNormAlgorithm. Test tokens fixed finished"); |
220 | 219 |
|
221 | 220 |
} |
222 |
|
|
221 |
|
|
223 | 222 |
public void testSplitSeparators() { |
224 |
|
|
223 |
|
|
225 | 224 |
log.info("TestNormAlgorithm. Test tokens with separators"); |
226 |
|
|
225 |
|
|
227 | 226 |
String chain = "esto;/es;;; una_prueba; de un/ split de una cadena_de texto"; |
228 | 227 |
|
229 | 228 |
int parts = 4; |
... | ... | |
241 | 240 |
assertEquals("un/ split de una cadena_de texto", result.get(3)); |
242 | 241 |
|
243 | 242 |
log.info("TestNormAlgorithm. Test tokens with separators finished"); |
244 |
|
|
243 |
|
|
245 | 244 |
} |
246 | 245 |
|
247 | 246 |
private List<String> parser(File f, String chain) { |
248 |
Patternnormalization pat = null; |
|
247 |
Patternnormalization pat = new Patternnormalization(); |
|
248 |
IStorage storage = new StorageXML(); |
|
249 |
|
|
249 | 250 |
try { |
250 |
FileReader red = new FileReader(f); |
|
251 |
pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
252 |
} catch (MarshalException e) { |
|
251 |
FileReader reader = new FileReader(f); |
|
252 |
storage.load(reader); |
|
253 |
pat.setstate(storage); |
|
254 |
} catch (Exception e) { |
|
253 | 255 |
e.printStackTrace(); |
254 |
} catch (ValidationException e) { |
|
255 |
e.printStackTrace(); |
|
256 |
} catch (FileNotFoundException e) { |
|
257 |
e.printStackTrace(); |
|
258 | 256 |
} |
259 | 257 |
NormAlgorithm na = new NormAlgorithm(pat); |
260 | 258 |
|
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/TestMarshall.java | ||
---|---|---|
30 | 30 |
import java.io.File; |
31 | 31 |
import java.io.FileNotFoundException; |
32 | 32 |
import java.io.FileReader; |
33 |
import java.io.StringReader;
|
|
34 |
import java.io.StringWriter;
|
|
33 |
import java.io.FileWriter;
|
|
34 |
import java.io.IOException;
|
|
35 | 35 |
|
36 | 36 |
import junit.framework.TestCase; |
37 | 37 |
|
38 | 38 |
import org.apache.log4j.Logger; |
39 |
import org.exolab.castor.xml.Unmarshaller; |
|
40 |
import org.gvsig.geocoding.patterns.normalization.Addresselement; |
|
41 |
import org.gvsig.geocoding.patterns.normalization.Patternnormalization; |
|
39 |
import org.gvsig.patterns.normalization.Element; |
|
40 |
import org.gvsig.patterns.normalization.Patternnormalization; |
|
41 |
import org.gvsig.tools.storage.IStorage; |
|
42 |
import org.gvsig.tools.storage.StorageXML; |
|
42 | 43 |
|
43 | 44 |
import com.iver.andami.PluginServices; |
44 | 45 |
|
... | ... | |
49 | 50 |
public void testMarshallUnmarshall() { |
50 | 51 |
|
51 | 52 |
log.info("testMarshallUnmarshall. start test"); |
52 |
Patternnormalization pat = null; |
|
53 |
File f = new File( |
|
53 |
Patternnormalization pat = new Patternnormalization(); |
|
54 |
Patternnormalization pat3 = new Patternnormalization(); |
|
55 |
File file = new File( |
|
54 | 56 |
"src-test/org/gvsig/normalization/operations/testdata/patSplitChain.xml"); |
55 | 57 |
|
56 |
FileReader red = null; |
|
58 |
FileReader reader = null; |
|
59 |
IStorage storage = new StorageXML(); |
|
57 | 60 |
|
61 |
Element elem1 = null; |
|
62 |
|
|
63 |
// PARSER |
|
58 | 64 |
try { |
59 |
red = new FileReader(f); |
|
60 |
pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
65 |
reader = new FileReader(file); |
|
66 |
storage.load(reader); |
|
67 |
pat.setstate(storage); |
|
61 | 68 |
|
62 |
Addresselement al = pat.getAddresselements().getAddresselement()[0];
|
|
63 |
Addresselement elem = null;
|
|
69 |
assertEquals(11, pat.getElements().size());
|
|
70 |
assertEquals(0, pat.getNofirstrows());
|
|
64 | 71 |
|
65 |
assertNotNull(al);
|
|
72 |
elem1 = (Element) pat.getElements().get(0);
|
|
66 | 73 |
|
67 |
StringWriter stw = new StringWriter();
|
|
68 |
al.marshal(stw);
|
|
74 |
assertNotNull(elem1);
|
|
75 |
assertEquals("NewField", elem1.getFieldname());
|
|
69 | 76 |
|
70 |
elem = (Addresselement) Addresselement.unmarshal(new StringReader( |
|
71 |
stw.toString())); |
|
77 |
} catch (FileNotFoundException e) { |
|
78 |
log.error("Parsing and serializing the pattern", e); |
|
79 |
} catch (ClassNotFoundException e) { |
|
80 |
log.error("Parsing and serializing the pattern", e); |
|
81 |
} |
|
72 | 82 |
|
73 |
assertNotNull(elem); |
|
74 |
assertEquals(al.getImportfield(), elem.getImportfield()); |
|
75 |
assertEquals(al.getFieldwidth(), elem.getFieldwidth()); |
|
76 |
assertEquals(al.getNewfieldname(), elem.getNewfieldname()); |
|
77 |
assertEquals(al.getInfieldseparators().getDecimalseparator() |
|
78 |
.getValue(), elem.getInfieldseparators() |
|
79 |
.getDecimalseparator().getValue()); |
|
83 |
// SERIALIZER |
|
84 |
IStorage storage2 = new StorageXML(); |
|
85 |
pat.getstate(storage2); |
|
86 |
File ftemp = null; |
|
87 |
try { |
|
88 |
//ftemp = File.createTempFile("tem", "txt"); |
|
89 |
ftemp = new File("C:\\000.txt"); |
|
90 |
FileWriter writer2 = new FileWriter(ftemp); |
|
91 |
storage2.dump(writer2); |
|
92 |
writer2.close(); |
|
93 |
} catch (IOException e) { |
|
94 |
log.error("Parsing and serializing the pattern", e); |
|
95 |
} |
|
80 | 96 |
|
81 |
} catch (Exception e) { |
|
97 |
// PARSER |
|
98 |
IStorage storage3 = new StorageXML(); |
|
99 |
FileReader reader3; |
|
100 |
try { |
|
101 |
assertNotNull(ftemp); |
|
102 |
reader3 = new FileReader(ftemp); |
|
103 |
storage3.load(reader3); |
|
104 |
pat3.setstate(storage3); |
|
105 |
|
|
106 |
Element elem2 = (Element) pat3.getElements().get(0); |
|
107 |
|
|
108 |
assertNotNull(elem2); |
|
109 |
|
|
110 |
assertEquals(elem1.getImportfield(), elem2.getImportfield()); |
|
111 |
assertEquals(elem1.getFieldwidth(), elem2.getFieldwidth()); |
|
112 |
assertEquals(elem1.getFieldname(), elem2.getFieldname()); |
|
113 |
assertEquals(elem1.getInfieldseparators().getDecimalseparator(), |
|
114 |
elem2.getInfieldseparators().getDecimalseparator()); |
|
115 |
|
|
116 |
} catch (FileNotFoundException e) { |
|
82 | 117 |
log.error("Parsing and serializing the pattern", e); |
83 |
e.printStackTrace(); |
|
118 |
} catch (ClassNotFoundException e) { |
|
119 |
log.error("Parsing and serializing the pattern", e); |
|
84 | 120 |
} |
85 |
log.info("testMarshallUnmarshall. test finished"); |
|
86 | 121 |
} |
87 | 122 |
|
88 | 123 |
public void testUnmarshall() { |
... | ... | |
100 | 135 |
} |
101 | 136 |
|
102 | 137 |
// Marshal the person object |
103 |
Patternnormalization pat = null; |
|
138 |
Patternnormalization pat = new Patternnormalization(); |
|
139 |
IStorage storage = new StorageXML(); |
|
104 | 140 |
try { |
105 |
pat = (Patternnormalization) Unmarshaller.unmarshal(
|
|
106 |
Patternnormalization.class, reader);
|
|
141 |
storage.load(reader);
|
|
142 |
pat.setstate(storage);
|
|
107 | 143 |
assertNotNull(pat); |
108 | 144 |
} catch (Exception e) { |
109 | 145 |
log.error("Unmarshall the pattern"); |
... | ... | |
111 | 147 |
} |
112 | 148 |
log.info("pattern loaded"); |
113 | 149 |
// results |
114 |
assertEquals(11, pat.getAddresselements().getAddresselementCount()); |
|
115 |
assertEquals(0, pat.getAddresselements().getAddresselement(3) |
|
116 |
.getFieldwidth()); |
|
117 |
assertEquals(true, pat.getAddresselements().getAddresselement(2) |
|
150 |
assertEquals(11, pat.getElements().size()); |
|
151 |
assertEquals(0, ((Element) pat.getElements().get(3)).getFieldwidth()); |
|
152 |
assertEquals(true, ((Element) pat.getElements().get(2)) |
|
118 | 153 |
.getImportfield()); |
119 |
assertEquals(true, pat.getAddresselements().getAddresselement(4)
|
|
154 |
assertEquals(true, ((Element) pat.getElements().get(4))
|
|
120 | 155 |
.getFieldseparator().getSemicolonsep()); |
121 | 156 |
|
122 | 157 |
log.info("testMarshallUnmarshall. test finished"); |
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/TestAllTypeData.java | ||
---|---|---|
35 | 35 |
import junit.framework.TestCase; |
36 | 36 |
|
37 | 37 |
import org.apache.log4j.Logger; |
38 |
import org.gvsig.geocoding.patterns.normalization.Patternnormalization; |
|
38 |
import org.gvsig.patterns.normalization.Patternnormalization; |
|
39 |
import org.gvsig.tools.storage.IStorage; |
|
40 |
import org.gvsig.tools.storage.StorageXML; |
|
39 | 41 |
|
40 | 42 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
41 | 43 |
import com.iver.andami.PluginServices; |
... | ... | |
50 | 52 |
public class TestAllTypeData extends TestCase { |
51 | 53 |
|
52 | 54 |
private static final Logger log = PluginServices.getLogger(); |
53 |
Patternnormalization pat = null;
|
|
55 |
Patternnormalization pat = new Patternnormalization();
|
|
54 | 56 |
ArrayList<String> chains = new ArrayList<String>(); |
55 | 57 |
File file; |
56 | 58 |
|
57 | 59 |
public void setUp() { |
58 | 60 |
File f = new File( |
59 | 61 |
"src-test/org/gvsig/normalization/operations/testdata/pattotal.xml"); |
62 |
IStorage storage = new StorageXML(); |
|
60 | 63 |
try { |
61 | 64 |
FileReader red = new FileReader(f); |
62 |
pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
65 |
storage.load(red); |
|
66 |
pat.setstate(storage); |
|
63 | 67 |
} catch (Exception e) { |
64 | 68 |
log.error("Error parsing the xml pattern", e); |
65 | 69 |
} |
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/TestNormalizeTableAlterTable.java | ||
---|---|---|
33 | 33 |
import junit.framework.TestCase; |
34 | 34 |
|
35 | 35 |
import org.apache.log4j.Logger; |
36 |
import org.gvsig.geocoding.patterns.normalization.Patternnormalization; |
|
36 |
import org.gvsig.patterns.normalization.Patternnormalization; |
|
37 |
import org.gvsig.tools.storage.IStorage; |
|
38 |
import org.gvsig.tools.storage.StorageXML; |
|
37 | 39 |
|
38 | 40 |
import com.hardcode.gdbms.driver.exceptions.CloseDriverException; |
39 | 41 |
import com.hardcode.gdbms.engine.data.file.FileDataSource; |
... | ... | |
55 | 57 |
public class TestNormalizeTableAlterTable extends TestCase { |
56 | 58 |
|
57 | 59 |
private static final Logger log = PluginServices.getLogger(); |
58 |
Patternnormalization pat = null;
|
|
60 |
Patternnormalization pat = new Patternnormalization();
|
|
59 | 61 |
File dbfFile = new File( |
60 | 62 |
"src-test/org/gvsig/normalization/operations/testdata/pro.dbf"); |
61 | 63 |
File patFile = new File( |
... | ... | |
69 | 71 |
|
70 | 72 |
public void setUp() { |
71 | 73 |
try { |
74 |
IStorage storage = new StorageXML(); |
|
72 | 75 |
FileReader red = new FileReader(patFile); |
73 |
pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
76 |
|
|
77 |
storage.load(red); |
|
78 |
pat.setstate(storage); |
|
79 |
//pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
74 | 80 |
} catch (Exception e) { |
75 | 81 |
log.error("Error parsing the xml pattern", e); |
76 | 82 |
} |
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/testdata/patSplitChain.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<patternnormalization> |
|
3 |
<patternname>patSplitChain.xml</patternname> |
|
4 |
<patternurl>E:\Proyectos\00_ECLIPSE_WS\G0702-gvSIG-Geocodi-1209\extGeocoding\test\org\gvsig\geocoding\normalization\patSplitChain.xml</patternurl> |
|
5 |
<normalizationfirstrows>0</normalizationfirstrows> |
|
6 |
<addresselements> |
|
7 |
<addresselement> |
|
8 |
<newfieldname>NewField</newfieldname> |
|
9 |
<newfieldtype> |
|
10 |
<stringvalue width="50"/> |
|
11 |
</newfieldtype> |
|
12 |
<fieldwidth>0</fieldwidth> |
|
13 |
<fieldseparator tabsep="false" spacesep="false" |
|
14 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
15 |
<infieldseparators> |
|
16 |
<thousandseparator value="."/> |
|
17 |
<decimalseparator value=","/> |
|
18 |
<textseparator value="""/> |
|
19 |
</infieldseparators> |
|
20 |
<importfield>true</importfield> |
|
21 |
</addresselement> |
|
22 |
<addresselement> |
|
23 |
<newfieldname>NewField2</newfieldname> |
|
24 |
<newfieldtype> |
|
25 |
<stringvalue width="50"/> |
|
26 |
</newfieldtype> |
|
27 |
<fieldwidth>0</fieldwidth> |
|
28 |
<fieldseparator tabsep="false" spacesep="false" |
|
29 |
colonsep="true" semicolonsep="false" joinsep="false"/> |
|
30 |
<infieldseparators> |
|
31 |
<thousandseparator value="."/> |
|
32 |
<decimalseparator value=","/> |
|
33 |
<textseparator value="""/> |
|
34 |
</infieldseparators> |
|
35 |
<importfield>true</importfield> |
|
36 |
</addresselement> |
|
37 |
<addresselement> |
|
38 |
<newfieldname>NewField3</newfieldname> |
|
39 |
<newfieldtype> |
|
40 |
<stringvalue width="50"/> |
|
41 |
</newfieldtype> |
|
42 |
<fieldwidth>0</fieldwidth> |
|
43 |
<fieldseparator tabsep="false" spacesep="false" |
|
44 |
colonsep="true" semicolonsep="false" joinsep="false"/> |
|
45 |
<infieldseparators> |
|
46 |
<thousandseparator value="."/> |
|
47 |
<decimalseparator value=","/> |
|
48 |
<textseparator value="""/> |
|
49 |
</infieldseparators> |
|
50 |
<importfield>true</importfield> |
|
51 |
</addresselement> |
|
52 |
<addresselement> |
|
53 |
<newfieldname>NewField4</newfieldname> |
|
54 |
<newfieldtype> |
|
55 |
<stringvalue width="50"/> |
|
56 |
</newfieldtype> |
|
57 |
<fieldwidth>0</fieldwidth> |
|
58 |
<fieldseparator tabsep="false" spacesep="false" |
|
59 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
60 |
<infieldseparators> |
|
61 |
<thousandseparator value="."/> |
|
62 |
<decimalseparator value=","/> |
|
63 |
<textseparator value="""/> |
|
64 |
</infieldseparators> |
|
65 |
<importfield>true</importfield> |
|
66 |
</addresselement> |
|
67 |
<addresselement> |
|
68 |
<newfieldname>NewField5</newfieldname> |
|
69 |
<newfieldtype> |
|
70 |
<stringvalue width="50"/> |
|
71 |
</newfieldtype> |
|
72 |
<fieldwidth>0</fieldwidth> |
|
73 |
<fieldseparator tabsep="false" spacesep="false" |
|
74 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
75 |
<infieldseparators> |
|
76 |
<thousandseparator value="."/> |
|
77 |
<decimalseparator value=","/> |
|
78 |
<textseparator value="""/> |
|
79 |
</infieldseparators> |
|
80 |
<importfield>true</importfield> |
|
81 |
</addresselement> |
|
82 |
<addresselement> |
|
83 |
<newfieldname>NewField6</newfieldname> |
|
84 |
<newfieldtype> |
|
85 |
<stringvalue width="50"/> |
|
86 |
</newfieldtype> |
|
87 |
<fieldwidth>0</fieldwidth> |
|
88 |
<fieldseparator tabsep="false" spacesep="false" |
|
89 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
90 |
<infieldseparators> |
|
91 |
<thousandseparator value="."/> |
|
92 |
<decimalseparator value=","/> |
|
93 |
<textseparator value="""/> |
|
94 |
</infieldseparators> |
|
95 |
<importfield>true</importfield> |
|
96 |
</addresselement> |
|
97 |
<addresselement> |
|
98 |
<newfieldname>NewField7</newfieldname> |
|
99 |
<newfieldtype> |
|
100 |
<stringvalue width="50"/> |
|
101 |
</newfieldtype> |
|
102 |
<fieldwidth>0</fieldwidth> |
|
103 |
<fieldseparator tabsep="false" spacesep="false" |
|
104 |
colonsep="false" semicolonsep="false" othersep="/" joinsep="false"/> |
|
105 |
<infieldseparators> |
|
106 |
<thousandseparator value="."/> |
|
107 |
<decimalseparator value=","/> |
|
108 |
<textseparator value="""/> |
|
109 |
</infieldseparators> |
|
110 |
<importfield>true</importfield> |
|
111 |
</addresselement> |
|
112 |
<addresselement> |
|
113 |
<newfieldname>NewField8</newfieldname> |
|
114 |
<newfieldtype> |
|
115 |
<stringvalue width="50"/> |
|
116 |
</newfieldtype> |
|
117 |
<fieldwidth>0</fieldwidth> |
|
118 |
<fieldseparator tabsep="false" spacesep="false" |
|
119 |
colonsep="false" semicolonsep="false" othersep="@" joinsep="false"/> |
|
120 |
<infieldseparators> |
|
121 |
<thousandseparator value="."/> |
|
122 |
<decimalseparator value=","/> |
|
123 |
<textseparator value="""/> |
|
124 |
</infieldseparators> |
|
125 |
<importfield>true</importfield> |
|
126 |
</addresselement> |
|
127 |
<addresselement> |
|
128 |
<newfieldname>NewField9</newfieldname> |
|
129 |
<newfieldtype> |
|
130 |
<stringvalue width="50"/> |
|
131 |
</newfieldtype> |
|
132 |
<fieldwidth>0</fieldwidth> |
|
133 |
<fieldseparator tabsep="false" spacesep="false" |
|
134 |
colonsep="false" semicolonsep="false" othersep="#" joinsep="false"/> |
|
135 |
<infieldseparators> |
|
136 |
<thousandseparator value="."/> |
|
137 |
<decimalseparator value=","/> |
|
138 |
<textseparator value="""/> |
|
139 |
</infieldseparators> |
|
140 |
<importfield>true</importfield> |
|
141 |
</addresselement> |
|
142 |
<addresselement> |
|
143 |
<newfieldname>NewField10</newfieldname> |
|
144 |
<newfieldtype> |
|
145 |
<stringvalue width="50"/> |
|
146 |
</newfieldtype> |
|
147 |
<fieldwidth>0</fieldwidth> |
|
148 |
<fieldseparator tabsep="false" spacesep="false" |
|
149 |
colonsep="false" semicolonsep="false" othersep="#" joinsep="false"/> |
|
150 |
<infieldseparators> |
|
151 |
<thousandseparator value="."/> |
|
152 |
<decimalseparator value=","/> |
|
153 |
<textseparator value="""/> |
|
154 |
</infieldseparators> |
|
155 |
<importfield>true</importfield> |
|
156 |
</addresselement> |
|
157 |
<addresselement> |
|
158 |
<newfieldname>NewField11</newfieldname> |
|
159 |
<newfieldtype> |
|
160 |
<stringvalue width="50"/> |
|
161 |
</newfieldtype> |
|
162 |
<fieldwidth>0</fieldwidth> |
|
163 |
<fieldseparator tabsep="false" spacesep="false" |
|
164 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
165 |
<infieldseparators> |
|
166 |
<thousandseparator value="."/> |
|
167 |
<decimalseparator value=","/> |
|
168 |
<textseparator value="""/> |
|
169 |
</infieldseparators> |
|
170 |
<importfield>true</importfield> |
|
171 |
</addresselement> |
|
172 |
</addresselements> |
|
2 |
<patternnormalization _type="object" _class="org.gvsig.patterns.normalization.Patternnormalization"> |
|
3 |
<patternname _type="str">patSplitChain.xml</patternname> |
|
4 |
<patternurl _type="str">E:\Proyectos\00_ECLIPSE_WS\G0702-gvSIG-Geocodi-1209\extGeocoding\test\org\gvsig\geocoding\normalization\patSplitChain.xml</patternurl> |
|
5 |
<nofirstrows _type="int">0</nofirstrows> |
|
6 |
<elements _type="list"> |
|
7 |
<element _type="object" |
|
8 |
_class="org.gvsig.patterns.normalization.Element"> |
|
9 |
<fieldname _type="str">NewField</fieldname> |
|
10 |
<fieldtype _type="object" |
|
11 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
12 |
<stringvalue _type="object" |
|
13 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
14 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
15 |
</stringvalue> |
|
16 |
</fieldtype> |
|
17 |
<fieldwidth _type="int">0</fieldwidth> |
|
18 |
<fieldseparator _type="object" |
|
19 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
20 |
<tabsep _type="str">false</tabsep> |
|
21 |
<spacesep _type="str">false</spacesep> |
|
22 |
<colonsep _type="str">false</colonsep> |
|
23 |
<semicolonsep _type="str">true</semicolonsep> |
|
24 |
<othersep _type="null"></othersep> |
|
25 |
<joinsep _type="str">false</joinsep> |
|
26 |
</fieldseparator> |
|
27 |
<infieldseparators _type="object" |
|
28 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
29 |
<thousandseparator _type="str">.</thousandseparator> |
|
30 |
<decimalseparator _type="str">,</decimalseparator> |
|
31 |
<textseparator _type="str">"</textseparator> |
|
32 |
</infieldseparators> |
|
33 |
<importfield _type="str">true</importfield> |
|
34 |
</element> |
|
35 |
<element _type="object" |
|
36 |
_class="org.gvsig.patterns.normalization.Element"> |
|
37 |
<fieldname _type="str">NewField2</fieldname> |
|
38 |
<fieldtype _type="object" |
|
39 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
40 |
<stringvalue _type="object" |
|
41 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
42 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
43 |
</stringvalue> |
|
44 |
</fieldtype> |
|
45 |
<fieldwidth _type="int">0</fieldwidth> |
|
46 |
<fieldseparator _type="object" |
|
47 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
48 |
<tabsep _type="str">false</tabsep> |
|
49 |
<spacesep _type="str">false</spacesep> |
|
50 |
<colonsep _type="str">true</colonsep> |
|
51 |
<semicolonsep _type="str">false</semicolonsep> |
|
52 |
<othersep _type="null"></othersep> |
|
53 |
<joinsep _type="str">false</joinsep> |
|
54 |
</fieldseparator> |
|
55 |
<infieldseparators _type="object" |
|
56 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
57 |
<thousandseparator _type="str">.</thousandseparator> |
|
58 |
<decimalseparator _type="str">,</decimalseparator> |
|
59 |
<textseparator _type="str">"</textseparator> |
|
60 |
</infieldseparators> |
|
61 |
<importfield _type="str">true</importfield> |
|
62 |
</element> |
|
63 |
<element _type="object" |
|
64 |
_class="org.gvsig.patterns.normalization.Element"> |
|
65 |
<fieldname _type="str">NewField3</fieldname> |
|
66 |
<fieldtype _type="object" |
|
67 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
68 |
<stringvalue _type="object" |
|
69 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
70 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
71 |
</stringvalue> |
|
72 |
</fieldtype> |
|
73 |
<fieldwidth _type="int">0</fieldwidth> |
|
74 |
<fieldseparator _type="object" |
|
75 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
76 |
<tabsep _type="str">false</tabsep> |
|
77 |
<spacesep _type="str">false</spacesep> |
|
78 |
<colonsep _type="str">true</colonsep> |
|
79 |
<semicolonsep _type="str">false</semicolonsep> |
|
80 |
<othersep _type="null"></othersep> |
|
81 |
<joinsep _type="str">false</joinsep> |
|
82 |
</fieldseparator> |
|
83 |
<infieldseparators _type="object" |
|
84 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
85 |
<thousandseparator _type="str">.</thousandseparator> |
|
86 |
<decimalseparator _type="str">,</decimalseparator> |
|
87 |
<textseparator _type="str">"</textseparator> |
|
88 |
</infieldseparators> |
|
89 |
<importfield _type="str">true</importfield> |
|
90 |
</element> |
|
91 |
<element _type="object" |
|
92 |
_class="org.gvsig.patterns.normalization.Element"> |
|
93 |
<fieldname _type="str">NewField4</fieldname> |
|
94 |
<fieldtype _type="object" |
|
95 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
96 |
<stringvalue _type="object" |
|
97 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
98 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
99 |
</stringvalue> |
|
100 |
</fieldtype> |
|
101 |
<fieldwidth _type="int">0</fieldwidth> |
|
102 |
<fieldseparator _type="object" |
|
103 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
104 |
<tabsep _type="str">false</tabsep> |
|
105 |
<spacesep _type="str">false</spacesep> |
|
106 |
<colonsep _type="str">false</colonsep> |
|
107 |
<semicolonsep _type="str">true</semicolonsep> |
|
108 |
<othersep _type="null"></othersep> |
|
109 |
<joinsep _type="str">false</joinsep> |
|
110 |
</fieldseparator> |
|
111 |
<infieldseparators _type="object" |
|
112 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
113 |
<thousandseparator _type="str">.</thousandseparator> |
|
114 |
<decimalseparator _type="str">,</decimalseparator> |
|
115 |
<textseparator _type="str">"</textseparator> |
|
116 |
</infieldseparators> |
|
117 |
<importfield _type="str">true</importfield> |
|
118 |
</element> |
|
119 |
<element _type="object" |
|
120 |
_class="org.gvsig.patterns.normalization.Element"> |
|
121 |
<fieldname _type="str">NewField5</fieldname> |
|
122 |
<fieldtype _type="object" |
|
123 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
124 |
<stringvalue _type="object" |
|
125 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
126 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
127 |
</stringvalue> |
|
128 |
</fieldtype> |
|
129 |
<fieldwidth _type="int">0</fieldwidth> |
|
130 |
<fieldseparator _type="object" |
|
131 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
132 |
<tabsep _type="str">false</tabsep> |
|
133 |
<spacesep _type="str">false</spacesep> |
|
134 |
<colonsep _type="str">false</colonsep> |
|
135 |
<semicolonsep _type="str">true</semicolonsep> |
|
136 |
<othersep _type="null"></othersep> |
|
137 |
<joinsep _type="str">false</joinsep> |
|
138 |
</fieldseparator> |
|
139 |
<infieldseparators _type="object" |
|
140 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
141 |
<thousandseparator _type="str">.</thousandseparator> |
|
142 |
<decimalseparator _type="str">,</decimalseparator> |
|
143 |
<textseparator _type="str">"</textseparator> |
|
144 |
</infieldseparators> |
|
145 |
<importfield _type="str">true</importfield> |
|
146 |
</element> |
|
147 |
<element _type="object" |
|
148 |
_class="org.gvsig.patterns.normalization.Element"> |
|
149 |
<fieldname _type="str">NewField6</fieldname> |
|
150 |
<fieldtype _type="object" |
|
151 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
152 |
<stringvalue _type="object" |
|
153 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
154 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
155 |
</stringvalue> |
|
156 |
</fieldtype> |
|
157 |
<fieldwidth _type="int">0</fieldwidth> |
|
158 |
<fieldseparator _type="object" |
|
159 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
160 |
<tabsep _type="str">false</tabsep> |
|
161 |
<spacesep _type="str">false</spacesep> |
|
162 |
<colonsep _type="str">false</colonsep> |
|
163 |
<semicolonsep _type="str">true</semicolonsep> |
|
164 |
<othersep _type="null"></othersep> |
|
165 |
<joinsep _type="str">false</joinsep> |
|
166 |
</fieldseparator> |
|
167 |
<infieldseparators _type="object" |
|
168 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
169 |
<thousandseparator _type="str">.</thousandseparator> |
|
170 |
<decimalseparator _type="str">,</decimalseparator> |
|
171 |
<textseparator _type="str">"</textseparator> |
|
172 |
</infieldseparators> |
|
173 |
<importfield _type="str">true</importfield> |
|
174 |
</element> |
|
175 |
<element _type="object" |
|
176 |
_class="org.gvsig.patterns.normalization.Element"> |
|
177 |
<fieldname _type="str">NewField7</fieldname> |
|
178 |
<fieldtype _type="object" |
|
179 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
180 |
<stringvalue _type="object" |
|
181 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
182 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
183 |
</stringvalue> |
|
184 |
</fieldtype> |
|
185 |
<fieldwidth _type="int">0</fieldwidth> |
|
186 |
<fieldseparator _type="object" |
|
187 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
188 |
<tabsep _type="str">false</tabsep> |
|
189 |
<spacesep _type="str">false</spacesep> |
|
190 |
<colonsep _type="str">false</colonsep> |
|
191 |
<semicolonsep _type="str">false</semicolonsep> |
|
192 |
<othersep _type="str">/</othersep> |
|
193 |
<joinsep _type="str">false</joinsep> |
|
194 |
</fieldseparator> |
|
195 |
<infieldseparators _type="object" |
|
196 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
197 |
<thousandseparator _type="str">.</thousandseparator> |
|
198 |
<decimalseparator _type="str">,</decimalseparator> |
|
199 |
<textseparator _type="str">"</textseparator> |
|
200 |
</infieldseparators> |
|
201 |
<importfield _type="str">true</importfield> |
|
202 |
</element> |
|
203 |
<element _type="object" |
|
204 |
_class="org.gvsig.patterns.normalization.Element"> |
|
205 |
<fieldname _type="str">NewField8</fieldname> |
|
206 |
<fieldtype _type="object" |
|
207 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
208 |
<stringvalue _type="object" |
|
209 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
210 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
211 |
</stringvalue> |
|
212 |
</fieldtype> |
|
213 |
<fieldwidth _type="int">0</fieldwidth> |
|
214 |
<fieldseparator _type="object" |
|
215 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
216 |
<tabsep _type="str">false</tabsep> |
|
217 |
<spacesep _type="str">false</spacesep> |
|
218 |
<colonsep _type="str">false</colonsep> |
|
219 |
<semicolonsep _type="str">false</semicolonsep> |
|
220 |
<othersep _type="str">@</othersep> |
|
221 |
<joinsep _type="str">false</joinsep> |
|
222 |
</fieldseparator> |
|
223 |
<infieldseparators _type="object" |
|
224 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
225 |
<thousandseparator _type="str">.</thousandseparator> |
|
226 |
<decimalseparator _type="str">,</decimalseparator> |
|
227 |
<textseparator _type="str">"</textseparator> |
|
228 |
</infieldseparators> |
|
229 |
<importfield _type="str">true</importfield> |
|
230 |
</element> |
|
231 |
<element _type="object" |
|
232 |
_class="org.gvsig.patterns.normalization.Element"> |
|
233 |
<fieldname _type="str">NewField9</fieldname> |
|
234 |
<fieldtype _type="object" |
|
235 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
236 |
<stringvalue _type="object" |
|
237 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
238 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
239 |
</stringvalue> |
|
240 |
</fieldtype> |
|
241 |
<fieldwidth _type="int">0</fieldwidth> |
|
242 |
<fieldseparator _type="object" |
|
243 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
244 |
<tabsep _type="str">false</tabsep> |
|
245 |
<spacesep _type="str">false</spacesep> |
|
246 |
<colonsep _type="str">false</colonsep> |
|
247 |
<semicolonsep _type="str">false</semicolonsep> |
|
248 |
<othersep _type="str">#</othersep> |
|
249 |
<joinsep _type="str">false</joinsep> |
|
250 |
</fieldseparator> |
|
251 |
<infieldseparators _type="object" |
|
252 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
253 |
<thousandseparator _type="str">.</thousandseparator> |
|
254 |
<decimalseparator _type="str">,</decimalseparator> |
|
255 |
<textseparator _type="str">"</textseparator> |
|
256 |
</infieldseparators> |
|
257 |
<importfield _type="str">true</importfield> |
|
258 |
</element> |
|
259 |
<element _type="object" |
|
260 |
_class="org.gvsig.patterns.normalization.Element"> |
|
261 |
<fieldname _type="str">NewField10</fieldname> |
|
262 |
<fieldtype _type="object" |
|
263 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
264 |
<stringvalue _type="object" |
|
265 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
266 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
267 |
</stringvalue> |
|
268 |
</fieldtype> |
|
269 |
<fieldwidth _type="int">0</fieldwidth> |
|
270 |
<fieldseparator _type="object" |
|
271 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
272 |
<tabsep _type="str">false</tabsep> |
|
273 |
<spacesep _type="str">false</spacesep> |
|
274 |
<colonsep _type="str">false</colonsep> |
|
275 |
<semicolonsep _type="str">false</semicolonsep> |
|
276 |
<othersep _type="str">#</othersep> |
|
277 |
<joinsep _type="str">false</joinsep> |
|
278 |
</fieldseparator> |
|
279 |
<infieldseparators _type="object" |
|
280 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
281 |
<thousandseparator _type="str">.</thousandseparator> |
|
282 |
<decimalseparator _type="str">,</decimalseparator> |
|
283 |
<textseparator _type="str">"</textseparator> |
|
284 |
</infieldseparators> |
|
285 |
<importfield _type="str">true</importfield> |
|
286 |
</element> |
|
287 |
<element _type="object" |
|
288 |
_class="org.gvsig.patterns.normalization.Element"> |
|
289 |
<fieldname _type="str">NewField11</fieldname> |
|
290 |
<fieldtype _type="object" |
|
291 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
292 |
<stringvalue _type="object" |
|
293 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
294 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
295 |
</stringvalue> |
|
296 |
</fieldtype> |
|
297 |
<fieldwidth _type="int">0</fieldwidth> |
|
298 |
<fieldseparator _type="object" |
|
299 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
300 |
<tabsep _type="str">false</tabsep> |
|
301 |
<spacesep _type="str">false</spacesep> |
|
302 |
<colonsep _type="str">false</colonsep> |
|
303 |
<semicolonsep _type="str">true</semicolonsep> |
|
304 |
<othersep _type="null"></othersep> |
|
305 |
<joinsep _type="str">false</joinsep> |
|
306 |
</fieldseparator> |
|
307 |
<infieldseparators _type="object" |
|
308 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
309 |
<thousandseparator _type="str">.</thousandseparator> |
|
310 |
<decimalseparator _type="str">,</decimalseparator> |
|
311 |
<textseparator _type="str">"</textseparator> |
|
312 |
</infieldseparators> |
|
313 |
<importfield _type="str">true</importfield> |
|
314 |
</element> |
|
315 |
</elements> |
|
173 | 316 |
</patternnormalization> |
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/testdata/normAlterTable.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<patternnormalization> |
|
3 |
<patternname>normAlterTable.xml</patternname> |
|
4 |
<patternurl>E:\Proyectos\01_ECLIPSE_33_WS\G0702-gvSIG-Geocodi-1210\extGeocoding\src-test\org\gvsig\geocoding\normalization\normAlterTable.xml</patternurl> |
|
5 |
<normalizationfirstrows>0</normalizationfirstrows> |
|
6 |
<addresselements> |
|
7 |
<addresselement> |
|
8 |
<newfieldname>NewField</newfieldname> |
|
9 |
<newfieldtype> |
|
10 |
<integervalue width="25"/> |
|
11 |
</newfieldtype> |
|
12 |
<fieldwidth>0</fieldwidth> |
|
13 |
<fieldseparator tabsep="false" spacesep="false" |
|
14 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
15 |
<infieldseparators> |
|
16 |
<thousandseparator value="."/> |
|
17 |
<decimalseparator value=","/> |
|
18 |
<textseparator value="""/> |
|
19 |
</infieldseparators> |
|
20 |
<importfield>true</importfield> |
|
21 |
</addresselement> |
|
22 |
<addresselement> |
|
23 |
<newfieldname>NewField2</newfieldname> |
|
24 |
<newfieldtype> |
|
25 |
<stringvalue width="50"/> |
|
26 |
</newfieldtype> |
|
27 |
<fieldwidth>0</fieldwidth> |
|
28 |
<fieldseparator tabsep="false" spacesep="false" |
|
29 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
30 |
<infieldseparators> |
|
31 |
<thousandseparator value="."/> |
|
32 |
<decimalseparator value=","/> |
|
33 |
<textseparator value="""/> |
|
34 |
</infieldseparators> |
|
35 |
<importfield>true</importfield> |
|
36 |
</addresselement> |
|
37 |
<addresselement> |
|
38 |
<newfieldname>NewField3</newfieldname> |
|
39 |
<newfieldtype> |
|
40 |
<stringvalue width="50"/> |
|
41 |
</newfieldtype> |
|
42 |
<fieldwidth>0</fieldwidth> |
|
43 |
<fieldseparator tabsep="false" spacesep="false" |
|
44 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
45 |
<infieldseparators> |
|
46 |
<thousandseparator value="."/> |
|
47 |
<decimalseparator value=","/> |
|
48 |
<textseparator value="""/> |
|
49 |
</infieldseparators> |
|
50 |
<importfield>true</importfield> |
|
51 |
</addresselement> |
|
52 |
<addresselement> |
|
53 |
<newfieldname>NewField4</newfieldname> |
|
54 |
<newfieldtype> |
|
55 |
<stringvalue width="50"/> |
|
56 |
</newfieldtype> |
|
57 |
<fieldwidth>0</fieldwidth> |
|
58 |
<fieldseparator tabsep="false" spacesep="false" |
|
59 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
60 |
<infieldseparators> |
|
61 |
<thousandseparator value="."/> |
|
62 |
<decimalseparator value=","/> |
|
63 |
<textseparator value="""/> |
|
64 |
</infieldseparators> |
|
65 |
<importfield>true</importfield> |
|
66 |
</addresselement> |
|
67 |
<addresselement> |
|
68 |
<newfieldname>NewField5</newfieldname> |
|
69 |
<newfieldtype> |
|
70 |
<stringvalue width="50"/> |
|
71 |
</newfieldtype> |
|
72 |
<fieldwidth>0</fieldwidth> |
|
73 |
<fieldseparator tabsep="false" spacesep="false" |
|
74 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
75 |
<infieldseparators> |
|
76 |
<thousandseparator value="."/> |
|
77 |
<decimalseparator value=","/> |
|
78 |
<textseparator value="""/> |
|
79 |
</infieldseparators> |
|
80 |
<importfield>true</importfield> |
|
81 |
</addresselement> |
|
82 |
</addresselements> |
|
83 |
</patternnormalization> |
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<patternnormalization _type="object" |
|
3 |
_class="org.gvsig.patterns.normalization.Patternnormalization"> |
|
4 |
<patternname _type="str">normAlterTable</patternname> |
|
5 |
<patternurl _type="str"> |
|
6 |
E:\\Proyectos\\01_ECLIPSE_33_WS\\G0702-gvSIG-Geocodi-1210\\extGeocoding\\src-test\\org\\gvsig\\geocoding\\normalization\\normAlterTable.xml |
|
7 |
</patternurl> |
|
8 |
<nofirstrows _type="int">0</nofirstrows> |
|
9 |
<elements _type="list"> |
|
10 |
<element _type="object" |
|
11 |
_class="org.gvsig.patterns.normalization.Element"> |
|
12 |
<fieldname _type="str">NewField</fieldname> |
|
13 |
<fieldtype _type="object" |
|
14 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
15 |
<integervalue _type="object" |
|
16 |
_class="org.gvsig.patterns.normalization.Integervalue"> |
|
17 |
<integervaluewidth _type="int">50</integervaluewidth> |
|
18 |
</integervalue> |
|
19 |
</fieldtype> |
|
20 |
<fieldwidth _type="int">0</fieldwidth> |
|
21 |
<fieldseparator _type="object" |
|
22 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
23 |
<tabsep _type="str">false</tabsep> |
|
24 |
<spacesep _type="str">false</spacesep> |
|
25 |
<colonsep _type="str">true</colonsep> |
|
26 |
<semicolonsep _type="str">true</semicolonsep> |
|
27 |
<othersep _type="null"></othersep> |
|
28 |
<joinsep _type="str">false</joinsep> |
|
29 |
</fieldseparator> |
|
30 |
<infieldseparators _type="object" |
|
31 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
32 |
<thousandseparator _type="str">.</thousandseparator> |
|
33 |
<decimalseparator _type="str">,</decimalseparator> |
|
34 |
<textseparator _type="str">"</textseparator> |
|
35 |
</infieldseparators> |
|
36 |
<importfield _type="str">true</importfield> |
|
37 |
</element> |
|
38 |
<element _type="object" |
|
39 |
_class="org.gvsig.patterns.normalization.Element"> |
|
40 |
<fieldname _type="str">NewField2</fieldname> |
|
41 |
<fieldtype _type="object" |
|
42 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
43 |
<stringvalue _type="object" |
|
44 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
45 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
46 |
</stringvalue> |
|
47 |
</fieldtype> |
|
48 |
<fieldwidth _type="int">0</fieldwidth> |
|
49 |
<fieldseparator _type="object" |
|
50 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
51 |
<tabsep _type="str">false</tabsep> |
|
52 |
<spacesep _type="str">false</spacesep> |
|
53 |
<colonsep _type="str">true</colonsep> |
|
54 |
<semicolonsep _type="str">true</semicolonsep> |
|
55 |
<othersep _type="null"></othersep> |
|
56 |
<joinsep _type="str">false</joinsep> |
|
57 |
</fieldseparator> |
|
58 |
<infieldseparators _type="object" |
|
59 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
60 |
<thousandseparator _type="str">.</thousandseparator> |
|
61 |
<decimalseparator _type="str">,</decimalseparator> |
|
62 |
<textseparator _type="str">"</textseparator> |
|
63 |
</infieldseparators> |
|
64 |
<importfield _type="str">true</importfield> |
|
65 |
</element> |
|
66 |
<element _type="object" |
|
67 |
_class="org.gvsig.patterns.normalization.Element"> |
|
68 |
<fieldname _type="str">NewField3</fieldname> |
|
69 |
<fieldtype _type="object" |
|
70 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
71 |
<stringvalue _type="object" |
|
72 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
73 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
74 |
</stringvalue> |
|
75 |
</fieldtype> |
|
76 |
<fieldwidth _type="int">0</fieldwidth> |
|
77 |
<fieldseparator _type="object" |
|
78 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
79 |
<tabsep _type="str">false</tabsep> |
|
80 |
<spacesep _type="str">false</spacesep> |
|
81 |
<colonsep _type="str">true</colonsep> |
|
82 |
<semicolonsep _type="str">true</semicolonsep> |
|
83 |
<othersep _type="null"></othersep> |
|
84 |
<joinsep _type="str">false</joinsep> |
|
85 |
</fieldseparator> |
|
86 |
<infieldseparators _type="object" |
|
87 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
88 |
<thousandseparator _type="str">.</thousandseparator> |
|
89 |
<decimalseparator _type="str">,</decimalseparator> |
|
90 |
<textseparator _type="str">"</textseparator> |
|
91 |
</infieldseparators> |
|
92 |
<importfield _type="str">true</importfield> |
|
93 |
</element> |
|
94 |
<element _type="object" |
|
95 |
_class="org.gvsig.patterns.normalization.Element"> |
|
96 |
<fieldname _type="str">NewField4</fieldname> |
|
97 |
<fieldtype _type="object" |
|
98 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
99 |
<stringvalue _type="object" |
|
100 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
101 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
102 |
</stringvalue> |
|
103 |
</fieldtype> |
|
104 |
<fieldwidth _type="int">0</fieldwidth> |
|
105 |
<fieldseparator _type="object" |
|
106 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
107 |
<tabsep _type="str">false</tabsep> |
|
108 |
<spacesep _type="str">false</spacesep> |
|
109 |
<colonsep _type="str">true</colonsep> |
|
110 |
<semicolonsep _type="str">true</semicolonsep> |
|
111 |
<othersep _type="null"></othersep> |
|
112 |
<joinsep _type="str">false</joinsep> |
|
113 |
</fieldseparator> |
|
114 |
<infieldseparators _type="object" |
|
115 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
116 |
<thousandseparator _type="str">.</thousandseparator> |
|
117 |
<decimalseparator _type="str">,</decimalseparator> |
|
118 |
<textseparator _type="str">"</textseparator> |
|
119 |
</infieldseparators> |
|
120 |
<importfield _type="str">true</importfield> |
|
121 |
</element> |
|
122 |
<element _type="object" |
|
123 |
_class="org.gvsig.patterns.normalization.Element"> |
|
124 |
<fieldname _type="str">NewField5</fieldname> |
|
125 |
<fieldtype _type="object" |
|
126 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
127 |
<stringvalue _type="object" |
|
128 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
129 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
130 |
</stringvalue> |
|
131 |
</fieldtype> |
|
132 |
<fieldwidth _type="int">0</fieldwidth> |
|
133 |
<fieldseparator _type="object" |
|
134 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
135 |
<tabsep _type="str">false</tabsep> |
|
136 |
<spacesep _type="str">false</spacesep> |
|
137 |
<colonsep _type="str">true</colonsep> |
|
138 |
<semicolonsep _type="str">true</semicolonsep> |
|
139 |
<othersep _type="null"></othersep> |
|
140 |
<joinsep _type="str">false</joinsep> |
|
141 |
</fieldseparator> |
|
142 |
<infieldseparators _type="object" |
|
143 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
144 |
<thousandseparator _type="str">.</thousandseparator> |
|
145 |
<decimalseparator _type="str">,</decimalseparator> |
|
146 |
<textseparator _type="str">"</textseparator> |
|
147 |
</infieldseparators> |
|
148 |
<importfield _type="str">true</importfield> |
|
149 |
</element> |
|
150 |
</elements> |
|
151 |
</patternnormalization> |
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/testdata/normFile.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<patternnormalization> |
|
3 |
<patternname>normFile.xml</patternname> |
|
4 |
<patternurl>E:\Proyectos\01_ECLIPSE_33_WS\G0702-gvSIG-Geocodi-1210\extGeocoding\src-test\org\gvsig\geocoding\normalization\normFile.xml</patternurl> |
|
5 |
<normalizationfirstrows>0</normalizationfirstrows> |
|
6 |
<addresselements> |
|
7 |
<addresselement> |
|
8 |
<newfieldname>campo1</newfieldname> |
|
9 |
<newfieldtype> |
|
10 |
<stringvalue width="50"/> |
|
11 |
</newfieldtype> |
|
12 |
<fieldwidth>0</fieldwidth> |
|
13 |
<fieldseparator tabsep="false" spacesep="false" |
|
14 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
15 |
<infieldseparators> |
|
16 |
<thousandseparator value="."/> |
|
17 |
<decimalseparator value=","/> |
|
18 |
<textseparator value="""/> |
|
19 |
</infieldseparators> |
|
20 |
<importfield>true</importfield> |
|
21 |
</addresselement> |
|
22 |
<addresselement> |
|
23 |
<newfieldname>campo2</newfieldname> |
|
24 |
<newfieldtype> |
|
25 |
<stringvalue width="50"/> |
|
26 |
</newfieldtype> |
|
27 |
<fieldwidth>0</fieldwidth> |
|
28 |
<fieldseparator tabsep="false" spacesep="false" |
|
29 |
colonsep="false" semicolonsep="true" joinsep="false"/> |
|
30 |
<infieldseparators> |
|
31 |
<thousandseparator value="."/> |
|
32 |
<decimalseparator value=","/> |
|
33 |
<textseparator value="""/> |
|
34 |
</infieldseparators> |
|
35 |
<importfield>true</importfield> |
|
36 |
</addresselement> |
|
37 |
</addresselements> |
|
1 |
<patternnormalization _type="object" |
|
2 |
_class="org.gvsig.patterns.normalization.Patternnormalization"> |
|
3 |
<patternname _type="str">normFile</patternname> |
|
4 |
<patternurl _type="str">E:\\Proyectos\\01_ECLIPSE_33_WS\\G0702-gvSIG-Geocodi-1210\\extGeocoding\src-test\\org\\gvsig\\geocoding\\normalization\\normFile.xml</patternurl> |
|
5 |
<nofirstrows _type="int">0</nofirstrows> |
|
6 |
<elements _type="list"> |
|
7 |
<element _type="object" |
|
8 |
_class="org.gvsig.patterns.normalization.Element"> |
|
9 |
<fieldname _type="str">campo1</fieldname> |
|
10 |
<fieldtype _type="object" |
|
11 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
12 |
<stringvalue _type="object" |
|
13 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
14 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
15 |
</stringvalue> |
|
16 |
</fieldtype> |
|
17 |
<fieldwidth _type="int">0</fieldwidth> |
|
18 |
<fieldseparator _type="object" |
|
19 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
20 |
<tabsep _type="str">false</tabsep> |
|
21 |
<spacesep _type="str">false</spacesep> |
|
22 |
<colonsep _type="str">false</colonsep> |
|
23 |
<semicolonsep _type="str">true</semicolonsep> |
|
24 |
<othersep _type="null"></othersep> |
|
25 |
<joinsep _type="str">false</joinsep> |
|
26 |
</fieldseparator> |
|
27 |
<infieldseparators _type="object" |
|
28 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
29 |
<thousandseparator _type="str">.</thousandseparator> |
|
30 |
<decimalseparator _type="str">,</decimalseparator> |
|
31 |
<textseparator _type="str">"</textseparator> |
|
32 |
</infieldseparators> |
|
33 |
<importfield _type="str">true</importfield> |
|
34 |
</element> |
|
35 |
<element _type="object" |
|
36 |
_class="org.gvsig.patterns.normalization.Element"> |
|
37 |
<fieldname _type="str">campo2</fieldname> |
|
38 |
<fieldtype _type="object" |
|
39 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
40 |
<stringvalue _type="object" |
|
41 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
42 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
43 |
</stringvalue> |
|
44 |
</fieldtype> |
|
45 |
<fieldwidth _type="int">0</fieldwidth> |
|
46 |
<fieldseparator _type="object" |
|
47 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
48 |
<tabsep _type="str">false</tabsep> |
|
49 |
<spacesep _type="str">false</spacesep> |
|
50 |
<colonsep _type="str">false</colonsep> |
|
51 |
<semicolonsep _type="str">true</semicolonsep> |
|
52 |
<othersep _type="null"></othersep> |
|
53 |
<joinsep _type="str">false</joinsep> |
|
54 |
</fieldseparator> |
|
55 |
<infieldseparators _type="object" |
|
56 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
57 |
<thousandseparator _type="str">.</thousandseparator> |
|
58 |
<decimalseparator _type="str">,</decimalseparator> |
|
59 |
<textseparator _type="str">"</textseparator> |
|
60 |
</infieldseparators> |
|
61 |
<importfield _type="str">true</importfield> |
|
62 |
</element> |
|
63 |
</elements> |
|
38 | 64 |
</patternnormalization> |
trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/testdata/PATNORM_TEST.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by vic (vic) --> |
|
3 |
<patternnormalization> |
|
4 |
<patternname>PATNORM_TEST.xml</patternname> |
|
5 |
<patternurl>C:\Documents and Settings\jsanz\Mis documentos\PATNORM_TEST.xml</patternurl> |
|
6 |
<normalizationfirstrows>1</normalizationfirstrows> |
|
7 |
<addresselements> |
|
8 |
<addresselement> |
|
9 |
<newfieldname>ID</newfieldname> |
|
10 |
<newfieldtype> |
|
11 |
<stringvalue width="50"/> |
|
12 |
</newfieldtype> |
|
13 |
<fieldwidth>0</fieldwidth> |
|
14 |
<fieldseparator tabsep="false" spacesep="false" colonsep="true" semicolonsep="true" joinsep="false"/> |
|
15 |
<infieldseparators> |
|
16 |
<thousandseparator value=","/> |
|
17 |
<decimalseparator value="."/> |
|
18 |
<textseparator value="""/> |
|
19 |
</infieldseparators> |
|
20 |
<importfield>true</importfield> |
|
21 |
</addresselement> |
|
22 |
<addresselement> |
|
23 |
<newfieldname>NOMBRE</newfieldname> |
|
24 |
<newfieldtype> |
|
25 |
<stringvalue width="50"/> |
|
26 |
</newfieldtype> |
|
27 |
<fieldwidth>0</fieldwidth> |
|
28 |
<fieldseparator tabsep="false" spacesep="false" colonsep="false" semicolonsep="true" joinsep="false"/> |
|
29 |
<infieldseparators> |
|
30 |
<thousandseparator value=","/> |
|
31 |
<decimalseparator value="."/> |
|
32 |
<textseparator value="""/> |
|
33 |
</infieldseparators> |
|
34 |
<importfield>true</importfield> |
|
35 |
</addresselement> |
|
36 |
<addresselement> |
|
37 |
<newfieldname>DESC</newfieldname> |
|
38 |
<newfieldtype> |
|
39 |
<stringvalue width="50"/> |
|
40 |
</newfieldtype> |
|
41 |
<fieldwidth>0</fieldwidth> |
|
42 |
<fieldseparator tabsep="true" spacesep="false" colonsep="false" semicolonsep="true" joinsep="false"/> |
|
43 |
<infieldseparators> |
|
44 |
<thousandseparator value=","/> |
|
45 |
<decimalseparator value="."/> |
|
46 |
<textseparator value="""/> |
|
47 |
</infieldseparators> |
|
48 |
<importfield>true</importfield> |
|
49 |
</addresselement> |
|
50 |
<addresselement> |
|
51 |
<newfieldname>X</newfieldname> |
|
52 |
<newfieldtype> |
|
53 |
<decimalvalue integers="25" decimals="10"/> |
|
54 |
</newfieldtype> |
|
55 |
<fieldwidth>0</fieldwidth> |
|
56 |
<fieldseparator tabsep="true" spacesep="false" colonsep="false" semicolonsep="true" joinsep="false"/> |
|
57 |
<infieldseparators> |
|
58 |
<thousandseparator value="@"/> |
|
59 |
<decimalseparator value=","/> |
|
60 |
<textseparator value="""/> |
|
61 |
</infieldseparators> |
|
62 |
<importfield>true</importfield> |
|
63 |
</addresselement> |
|
64 |
<addresselement> |
|
65 |
<newfieldname>Y</newfieldname> |
|
66 |
<newfieldtype> |
|
67 |
<decimalvalue integers="25" decimals="10"/> |
|
68 |
</newfieldtype> |
|
69 |
<fieldwidth>0</fieldwidth> |
|
70 |
<fieldseparator tabsep="false" spacesep="false" colonsep="false" semicolonsep="true" joinsep="false"/> |
|
71 |
<infieldseparators> |
|
72 |
<thousandseparator value=","/> |
|
73 |
<decimalseparator value="."/> |
|
74 |
<textseparator value="""/> |
|
75 |
</infieldseparators> |
|
76 |
<importfield>true</importfield> |
|
77 |
</addresselement> |
|
78 |
<addresselement> |
|
79 |
<newfieldname>DATE</newfieldname> |
|
80 |
<newfieldtype> |
|
81 |
<datevalue format="dd/MM/yy"/> |
|
82 |
</newfieldtype> |
|
83 |
<fieldwidth>0</fieldwidth> |
|
84 |
<fieldseparator tabsep="false" spacesep="false" colonsep="false" semicolonsep="true" joinsep="false"/> |
|
85 |
<infieldseparators> |
|
86 |
<thousandseparator value=","/> |
|
87 |
<decimalseparator value="."/> |
|
88 |
<textseparator value="""/> |
|
89 |
</infieldseparators> |
|
90 |
<importfield>true</importfield> |
|
91 |
</addresselement> |
|
92 |
</addresselements> |
|
93 |
</patternnormalization> |
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<patternnormalization _type="object" |
|
3 |
_class="org.gvsig.patterns.normalization.Patternnormalization"> |
|
4 |
<patternname _type="str">PATNORM_TEST</patternname> |
|
5 |
<patternurl _type="str"> |
|
6 |
C:\\Documents and Settings\\jsanz\\Mis documentos\\PATNORM_TEST.xml |
|
7 |
</patternurl> |
|
8 |
<nofirstrows _type="int">1</nofirstrows> |
|
9 |
<elements _type="list"> |
|
10 |
<item _type="object" |
|
11 |
_class="org.gvsig.patterns.normalization.Element"> |
|
12 |
<fieldname _type="str">ID</fieldname> |
|
13 |
<fieldtype _type="object" |
|
14 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
15 |
<stringvalue _type="object" |
|
16 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
17 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
18 |
</stringvalue> |
|
19 |
</fieldtype> |
|
20 |
<fieldwidth _type="int">0</fieldwidth> |
|
21 |
<fieldseparator _type="object" |
|
22 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
23 |
<tabsep _type="str">false</tabsep> |
|
24 |
<spacesep _type="str">false</spacesep> |
|
25 |
<colonsep _type="str">true</colonsep> |
|
26 |
<semicolonsep _type="str">true</semicolonsep> |
|
27 |
<othersep _type="null"></othersep> |
|
28 |
<joinsep _type="str">false</joinsep> |
|
29 |
</fieldseparator> |
|
30 |
<infieldseparators _type="object" |
|
31 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
32 |
<thousandseparator _type="str">,</thousandseparator> |
|
33 |
<decimalseparator _type="str">.</decimalseparator> |
|
34 |
<textseparator _type="str">"</textseparator> |
|
35 |
</infieldseparators> |
|
36 |
<importfield _type="str">true</importfield> |
|
37 |
</item> |
|
38 |
<item _type="object" |
|
39 |
_class="org.gvsig.patterns.normalization.Element"> |
|
40 |
<fieldname _type="str">NOMBRE</fieldname> |
|
41 |
<fieldtype _type="object" |
|
42 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
43 |
<stringvalue _type="object" |
|
44 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
45 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
46 |
</stringvalue> |
|
47 |
</fieldtype> |
|
48 |
<fieldwidth _type="int">0</fieldwidth> |
|
49 |
<fieldseparator _type="object" |
|
50 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
51 |
<tabsep _type="str">false</tabsep> |
|
52 |
<spacesep _type="str">false</spacesep> |
|
53 |
<colonsep _type="str">false</colonsep> |
|
54 |
<semicolonsep _type="str">true</semicolonsep> |
|
55 |
<othersep _type="null"></othersep> |
|
56 |
<joinsep _type="str">false</joinsep> |
|
57 |
</fieldseparator> |
|
58 |
<infieldseparators _type="object" |
|
59 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
60 |
<thousandseparator _type="str">,</thousandseparator> |
|
61 |
<decimalseparator _type="str">.</decimalseparator> |
|
62 |
<textseparator _type="str">"</textseparator> |
|
63 |
</infieldseparators> |
|
64 |
<importfield _type="str">true</importfield> |
|
65 |
</item> |
|
66 |
<item _type="object" |
|
67 |
_class="org.gvsig.patterns.normalization.Element"> |
|
68 |
<fieldname _type="str">DESC</fieldname> |
|
69 |
<fieldtype _type="object" |
|
70 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
71 |
<stringvalue _type="object" |
|
72 |
_class="org.gvsig.patterns.normalization.Stringvalue"> |
|
73 |
<stringvaluewidth _type="int">50</stringvaluewidth> |
|
74 |
</stringvalue> |
|
75 |
</fieldtype> |
|
76 |
<fieldwidth _type="int">0</fieldwidth> |
|
77 |
<fieldseparator _type="object" |
|
78 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
79 |
<tabsep _type="str">true</tabsep> |
|
80 |
<spacesep _type="str">false</spacesep> |
|
81 |
<colonsep _type="str">false</colonsep> |
|
82 |
<semicolonsep _type="str">true</semicolonsep> |
|
83 |
<othersep _type="null"></othersep> |
|
84 |
<joinsep _type="str">false</joinsep> |
|
85 |
</fieldseparator> |
|
86 |
<infieldseparators _type="object" |
|
87 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
88 |
<thousandseparator _type="str">,</thousandseparator> |
|
89 |
<decimalseparator _type="str">.</decimalseparator> |
|
90 |
<textseparator _type="str">"</textseparator> |
|
91 |
</infieldseparators> |
|
92 |
<importfield _type="str">true</importfield> |
|
93 |
</item> |
|
94 |
<item _type="object" |
|
95 |
_class="org.gvsig.patterns.normalization.Element"> |
|
96 |
<fieldname _type="str">X</fieldname> |
|
97 |
<fieldtype _type="object" |
|
98 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
99 |
<decimalvalue _type="object" |
|
100 |
_class="org.gvsig.patterns.normalization.Decimalvalue"> |
|
101 |
<decimalvalueint _type="int">25</decimalvalueint> |
|
102 |
<decimalvaluedec _type="int">10</decimalvaluedec> |
|
103 |
</decimalvalue> |
|
104 |
</fieldtype> |
|
105 |
<fieldwidth _type="int">0</fieldwidth> |
|
106 |
<fieldseparator _type="object" |
|
107 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
108 |
<tabsep _type="str">true</tabsep> |
|
109 |
<spacesep _type="str">false</spacesep> |
|
110 |
<colonsep _type="str">false</colonsep> |
|
111 |
<semicolonsep _type="str">true</semicolonsep> |
|
112 |
<othersep _type="null"></othersep> |
|
113 |
<joinsep _type="str">false</joinsep> |
|
114 |
</fieldseparator> |
|
115 |
<infieldseparators _type="object" |
|
116 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
117 |
<thousandseparator _type="str">@</thousandseparator> |
|
118 |
<decimalseparator _type="str">,</decimalseparator> |
|
119 |
<textseparator _type="str">"</textseparator> |
|
120 |
</infieldseparators> |
|
121 |
<importfield _type="str">true</importfield> |
|
122 |
</item> |
|
123 |
<item _type="object" |
|
124 |
_class="org.gvsig.patterns.normalization.Element"> |
|
125 |
<fieldname _type="str">Y</fieldname> |
|
126 |
<fieldtype _type="object" |
|
127 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
128 |
<decimalvalue _type="object" |
|
129 |
_class="org.gvsig.patterns.normalization.Decimalvalue"> |
|
130 |
<decimalvalueint _type="int">25</decimalvalueint> |
|
131 |
<decimalvaluedec _type="int">10</decimalvaluedec> |
|
132 |
</decimalvalue> |
|
133 |
</fieldtype> |
|
134 |
<fieldwidth _type="int">0</fieldwidth> |
|
135 |
<fieldseparator _type="object" |
|
136 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
137 |
<tabsep _type="str">false</tabsep> |
|
138 |
<spacesep _type="str">false</spacesep> |
|
139 |
<colonsep _type="str">false</colonsep> |
|
140 |
<semicolonsep _type="str">true</semicolonsep> |
|
141 |
<othersep _type="null"></othersep> |
|
142 |
<joinsep _type="str">false</joinsep> |
|
143 |
</fieldseparator> |
|
144 |
<infieldseparators _type="object" |
|
145 |
_class="org.gvsig.patterns.normalization.Infieldseparators"> |
|
146 |
<thousandseparator _type="str">,</thousandseparator> |
|
147 |
<decimalseparator _type="str">.</decimalseparator> |
|
148 |
<textseparator _type="str">"</textseparator> |
|
149 |
</infieldseparators> |
|
150 |
<importfield _type="str">true</importfield> |
|
151 |
</item> |
|
152 |
<item _type="object" |
|
153 |
_class="org.gvsig.patterns.normalization.Element"> |
|
154 |
<fieldname _type="str">DATE</fieldname> |
|
155 |
<fieldtype _type="object" |
|
156 |
_class="org.gvsig.patterns.normalization.Fieldtype"> |
|
157 |
<datevalue _type="object" |
|
158 |
_class="org.gvsig.patterns.normalization.Datevalue"> |
|
159 |
<datevalueformat _type="str">dd/MM/yy</datevalueformat> |
|
160 |
</datevalue> |
|
161 |
</fieldtype> |
|
162 |
<fieldwidth _type="int">0</fieldwidth> |
|
163 |
<fieldseparator _type="object" |
|
164 |
_class="org.gvsig.patterns.normalization.Fieldseparator"> |
|
165 |
<tabsep _type="str">false</tabsep> |
|
166 |
<spacesep _type="str">false</spacesep> |
|
167 |
<colonsep _type="str">false</colonsep> |
|
168 |
<semicolonsep _type="str">true</semicolonsep> |
|
169 |
<othersep _type="null"></othersep> |
|
170 |
<joinsep _type="str">false</joinsep> |
|
171 |
</fieldseparator> |
|
172 |
<infieldseparators _type="object" |
Also available in: Unified diff