Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.file / org.gvsig.fmap.dal.file.csv / src / main / resources / org / gvsig / fmap / dal / store / csv / CSVParameters.xml @ 44824

History | View | Annotate | Download (12.2 KB)

1
<?xml version= "1.0 "?>
2
<definitions>
3
    <version>1.0.0</version>
4
    <classes>
5
        <class name="CSVStoreParameters">
6
            <extends>
7
                <class namespace="dal" name="ProviderParameters"/>
8
            </extends>
9
            <tags>
10
                <value name="defaultGroup" value="Basic"/>
11
            </tags>      
12
            <description>_CSV_loading_parameters</description>
13
            <fields>
14
                <field name="File" type="file" mandatory="true" group="Basic">
15
                    <description>CSV file</description>
16
                </field>
17
                <field name="profile" type="string" mandatory="true" defaultValue="EXCEL_NORTH_EUROPE_PREFERENCE" group="Basic">
18
                    <description>Predefined formats</description>
19
                    <availableValues>
20
                        <value label="Standard (double quote, comma and crlf)">STANDARD_PREFERENCE</value>
21
                        <value label="Excel (double quote, comma and lf)">EXCEL_PREFERENCE</value>
22
                        <value label="Excel North Europe (double quote, semicolon and lf)">EXCEL_NORTH_EUROPE_PREFERENCE</value>
23
                        <value label="Tabs (double quote, tabs and lf)">TAB_PREFERENCE</value>
24
                    </availableValues>          
25
                </field>
26
                <field name="quotePolicy" type="string" mandatory="false" defaultValue="NormalQuoteMode" group="Basic">
27
                    <description>Sets the output quote policy of the format to the specified value. </description>
28
                    <availableValues>
29
                        <value label="Quote all">AlwaysQuoteMode</value>
30
                        <value label="Quotes fields which contain special characters">NormalQuoteMode</value>
31
                    </availableValues>          
32
                </field>
33
                <field name="locale" type="string" mandatory="true" defaultValue="DEFAULT" group="Basic">
34
                    <description>Locale used to parse double and float values (BCP47 language tag representing the locale)</description>
35
                    <availableValues>
36
                        <value label="Default (use system locale)">DEFAULT</value>
37
                        <value label="Canada (english)">en-CA</value>
38
                        <value label="Canada (french)">fr-CA</value>
39
                        <value label="Chinese">zh</value>
40
                        <value label="English">en</value>
41
                        <value label="French">fr</value>
42
                        <value label="German">de</value>
43
                        <value label="Italian">it</value>
44
                        <value label="Japanese">ja</value>
45
                        <value label="Korea">ko</value>
46
                        <value label="Spain">es</value>
47
                        <value label="Uk">en-GB</value>
48
                        <value label="Us">en-US</value>
49
                    </availableValues>          
50
                </field>
51
                <field name="firstLineHeader" type="boolean" mandatory="false" defaultValue="true" group="Basic">
52
                    <description>Set to true to use the first line of file as the header.</description>
53
                </field>
54
                <field name="recordSeparator" type="string" mandatory="false" defaultValue="" group="Advanced">
55
                    <description>Sets the record separator of the format to the specified character.</description>
56
                </field>
57
                <field name="delimiter" type="string" mandatory="false" defaultValue="" group="Advanced">
58
                    <description>Sets the field delimiter of the format to the specified character.</description>
59
                </field>
60
                <field name="quoteCharacter" type="string" mandatory="false" defaultValue="" group="Advanced">
61
                    <description>Sets the quoteChar of the format to the specified character.</description>
62
                </field>
63
                <field name="commentStartMarker" type="string" mandatory="false" defaultValue="" group="Advanced">
64
                    <description>Sets the comment start marker of the format to the specified character.</description>
65
                </field>
66
                <field name="automaticTypesDetection" type="boolean" mandatory="false" defaultValue="true" group="Advanced">
67
                    <description>This flag activate the autodetection of types in the CSV. Can be slow.</description>
68
                </field>
69
                <field name="escapeCharacter" type="string" mandatory="false" defaultValue="" group="Advanced">
70
                    <description>Sets the escape character of the format to the specified character</description>
71
                </field>
72
                <field name="header" type="string" mandatory="false" defaultValue="" group="Advanced">
73
                    <description>The header or empty if parsed automatically</description>
74
                </field>
75
                <field name="skipLines" label="Number of lines to skip" type="integer" mandatory="false" defaultValue="0" group="Advanced">
76
                    <description>The number of lines to skip at begin of file</description>
77
                </field>
78
                <field name="fieldsDefinition" label="Fields definition" type="string" mandatory="false" defaultValue="" group="Advanced">
79
                    <description>If set use this to define fields of fixed length instead of use a separator.\nThe format is a list of values separateds by spaces of the form N:M\nwhere N is the position of the first character of field, and M the last.\nCan accept N: to use form the N character to the end of line.</description>
80
                </field>
81
                <field name="surroundingSpacesNeedQuotes" type="boolean" mandatory="false" defaultValue="false" group="Advanced">
82
                    <description>the surroundingSpacesNeedQuotes flag.</description>
83
                </field>
84
                <field name="CRS" type="crs" mandatory="false" group="Advanced">
85
                    <description>The coordinate reference system used in this CSV file if contains geometries</description>
86
                </field>
87
                <field name="fieldtypes" type="string" mandatory="false" defaultValue="" group="Advanced">
88
                    <description>Comma separated list of field types. If empty strings are assumed (Eg: integer,string,double,boolean,float,geometry).</description>
89
                </field>
90
                <field name="charset" type="string" mandatory="false" defaultValue="UTF-8" group="Advanced">
91
                    <description>Sets the String to use for null values for output.</description>
92
                </field>
93
                <field name="point" type="string" mandatory="false" defaultValue="" group="Advanced">
94
                    <description>This field allow to add a Geometry column to the table. It is a list of field names separated by commas used as dimensions for the attribute GEOM of type point to add to the table.</description>
95
                </field>
96
                <field name="pointColumnName" type="string" mandatory="false" defaultValue="geom" group="Advanced">
97
                    <description>Name to set to the column of the Point geometry.</description>
98
                </field>
99
                <field name="geometry_column" type="string" mandatory="false" defaultValue="" group="Advanced">
100
                    <description>Name of the geometry column (the geometry must be in WKT format).</description>
101
                </field>        
102
                <field name="ignoreErrors" type="boolean" mandatory="false" defaultValue="false" group="Advanced">
103
                    <description>Set to true to ignore errors during load of data.</description>
104
                </field>
105
                <field name="limit" type="integer" mandatory="false" defaultValue="-1" group="Advanced">
106
                    <description>Limit the number of record to load of CSV file.</description>
107
                </field>
108
            </fields>
109
        </class>
110
        <class name="CSVNewStoreParameters">
111
            <description>Store the parameters need to create a csv file</description>
112
      <extends>
113
        <class>CSVStoreParameters</class>
114
        <class namespace="dal" name="NewProviderParameters"/>
115
      </extends>
116
            <fields>
117
<!--                <field name="File" type="file" mandatory="true" group="Basic">
118
                    <description>CSV file</description>
119
                </field>
120
                <field name="profile" type="string" mandatory="true" defaultValue="EXCEL_NORTH_EUROPE_PREFERENCE" group="Basic">
121
                    <description>Predefined formats</description>
122
                    <availableValues>
123
                        <value label="Standard (double quote, comma and crlf)">STANDARD_PREFERENCE</value>
124
                        <value label="Excel (double quote, comma and lf)">EXCEL_PREFERENCE</value>
125
                        <value label="Excel North Europe (double quote, semicolon and lf)">EXCEL_NORTH_EUROPE_PREFERENCE</value>
126
                        <value label="Tabs (double quote, tabs and lf)">TAB_PREFERENCE</value>
127
                    </availableValues>          
128
                </field>
129
                <field name="quotePolicy" type="string" mandatory="false" defaultValue="NormalQuoteMode" group="Basic">
130
                    <description>Sets the output quote policy of the format to the specified value. </description>
131
                    <availableValues>
132
                        <value label="Quote all">AlwaysQuoteMode</value>
133
                        <value label="Quotes fields which contain special characters">NormalQuoteMode</value>
134
                    </availableValues>          
135
                </field>
136
                <field name="locale" type="string" mandatory="true" defaultValue="DEFAULT" group="Basic">
137
                    <description>Locale used to parse double and float values (BCP47 language tag representing the locale)</description>
138
                    <availableValues>
139
                        <value label="Default (use system locale)">DEFAULT</value>
140
                        <value label="Canada (english)">en-CA</value>
141
                        <value label="Canada (french)">fr-CA</value>
142
                        <value label="Chinese">zh</value>
143
                        <value label="English">en</value>
144
                        <value label="French">fr</value>
145
                        <value label="German">de</value>
146
                        <value label="Italian">it</value>
147
                        <value label="Japanese">ja</value>
148
                        <value label="Korea">ko</value>
149
                        <value label="Spain">es</value>
150
                        <value label="Uk">en-GB</value>
151
                        <value label="Us">en-US</value>
152
                    </availableValues>          
153
                </field>
154
                <field name="recordSeparator" type="string" mandatory="false" defaultValue="" group="Advanced">
155
                    <description>Sets the record separator of the format to the specified character.</description>
156
                </field>
157
                <field name="delimiter" type="string" mandatory="false" defaultValue="" group="Advanced">
158
                    <description>Sets the field delimiter of the format to the specified character.</description>
159
                </field>
160
                <field name="quoteCharacter" type="string" mandatory="false" defaultValue="" group="Advanced">
161
                    <description>Sets the quoteChar of the format to the specified character.</description>
162
                </field>
163
                <field name="commentStartMarker" type="string" mandatory="false" defaultValue="" group="Advanced">
164
                    <description>Sets the comment start marker of the format to the specified character.</description>
165
                </field>
166
                <field name="escapeCharacter" type="string" mandatory="false" defaultValue="" group="Advanced">
167
                    <description>Sets the escape character of the format to the specified character</description>
168
                </field>
169
                <field name="charset" type="string" mandatory="false" defaultValue="UTF-8" group="Advanced">
170
                    <description>Sets the String to use for null values for output.</description>
171
                </field>-->
172
            </fields>
173
        </class>
174
    </classes>
175
</definitions>