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 @ 41617

History | View | Annotate | Download (6.07 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
      <description>Store the parameters need to open a CSV file</description>
10
      <fields>
11
        <field name="File" type="file" mandatory="true" group="Basic">
12
          <description>CSV file</description>
13
        </field>
14
        <field name="profile" type="string" mandatory="true" defaultValue="EXCEL_NORTH_EUROPE_PREFERENCE" group="Basic">
15
          <description>Predefined formats</description>
16
                    <availableValues>
17
            <value label="Standard (double quote, comma and crlf)">STANDARD_PREFERENCE</value>
18
            <value label="Excel (double quote, comma and lf)">EXCEL_PREFERENCE</value>
19
            <value label="Excel North Europe (double quote, semicolon and lf)">EXCEL_NORTH_EUROPE_PREFERENCE</value>
20
            <value label="Tabs (double quote, tabs and lf)">TAB_PREFERENCE</value>
21
          </availableValues>          
22
        </field>
23
        <field name="quotePolicy" type="string" mandatory="false" defaultValue="NormalQuoteMode" group="Basic">
24
          <description>Sets the output quote policy of the format to the specified value. </description>
25
                    <availableValues>
26
                  <value label="Quote all">AlwaysQuoteMode</value>
27
            <value label="Quotes fields which contain special characters">NormalQuoteMode</value>
28
          </availableValues>          
29
        </field>
30
        <field name="locale" type="string" mandatory="true" defaultValue="DEFAULT" group="Basic">
31
          <description>Locale used to parse double and float values (BCP47 language tag representing the locale)</description>
32
            <availableValues>
33
            <value label="Default (use system locale)">DEFAULT</value>
34
            <value label="Canada (english)">en-CA</value>
35
            <value label="Canada (french)">fr-CA</value>
36
            <value label="Chinese">zh</value>
37
            <value label="English">en</value>
38
            <value label="French">fr</value>
39
            <value label="German">de</value>
40
            <value label="Italian">it</value>
41
            <value label="Japanese">ja</value>
42
            <value label="Korea">ko</value>
43
            <value label="Spain">es</value>
44
            <value label="Uk">en-GB</value>
45
            <value label="Us">en-US</value>
46
          </availableValues>          
47
        </field>
48
        <field name="recordSeparator" type="string" mandatory="false" defaultValue="" group="Advanced">
49
          <description>Sets the record separator of the format to the specified character.</description>
50
        </field>
51
        <field name="delimiter" type="string" mandatory="false" defaultValue="" group="Advanced">
52
          <description>Sets the field delimiter of the format to the specified character.</description>
53
        </field>
54
        <field name="quoteCharacter" type="string" mandatory="false" defaultValue="" group="Advanced">
55
          <description>Sets the quoteChar of the format to the specified character.</description>
56
        </field>
57
        <field name="commentStartMarker" type="string" mandatory="false" defaultValue="" group="Advanced">
58
          <description>Sets the comment start marker of the format to the specified character.</description>
59
        </field>
60
        <field name="automaticTypesDetection" type="boolean" mandatory="false" defaultValue="true" group="Advanced">
61
          <description>This flag activate the autodetection of types in the CSV. Can be slow.</description>
62
        </field>
63
        <field name="escapeCharacter" type="string" mandatory="false" defaultValue="" group="Advanced">
64
          <description>Sets the escape character of the format to the specified character</description>
65
        </field>
66
        <field name="header" type="string" mandatory="false" defaultValue="" group="Advanced">
67
          <description>The header or empty if parsed automatically</description>
68
        </field>
69
        <field name="skipLines" label="Number of lines to skip" type="integer" mandatory="false" defaultValue="0" group="Advanced">
70
          <description>The number of lines to skip at begin of file</description>
71
        </field>
72
        <field name="fieldsDefinition" label="Fields definition" type="string" mandatory="false" defaultValue="" group="Advanced">
73
          <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>
74
        </field>
75
        <field name="surroundingSpacesNeedQuotes" type="boolean" mandatory="false" defaultValue="false" group="Advanced">
76
          <description>the surroundingSpacesNeedQuotes flag.</description>
77
        </field>
78
        <field name="CRS" type="crs" mandatory="false" group="Advanced">
79
          <description>The coordinate reference system used in this CSV file if contains geometries</description>
80
        </field>
81
        <field name="fieldtypes" type="string" mandatory="false" defaultValue="" group="Advanced">
82
          <description>Comma separated list of field types. If empty strings are assumed (Eg: integer,string,double,boolean,float,geometry).</description>
83
        </field>
84
        <field name="charset" type="string" mandatory="false" defaultValue="UTF-8" group="Advanced">
85
          <description>Sets the String to use for null values for output.</description>
86
        </field>
87
        <field name="point" type="string" mandatory="false" defaultValue="" group="Advanced">
88
          <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>
89
        </field>
90
        <field name="ignoreErrors" type="boolean" mandatory="false" defaultValue="false" group="Advanced">
91
          <description>Set to true to ignore errors during load of data.</description>
92
        </field>
93
      </fields>
94
    </class>
95
  </classes>
96
</definitions>