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

History | View | Annotate | Download (6.76 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>Store the parameters need to open a CSV file</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 of the column of the Point geometry.</description>
98
        </field>
99
        <field name="ignoreErrors" type="boolean" mandatory="false" defaultValue="false" group="Advanced">
100
          <description>Set to true to ignore errors during load of data.</description>
101
        </field>
102
        <field name="limit" type="integer" mandatory="false" defaultValue="-1" group="Advanced">
103
          <description>Limit the number of record to load of CSV file.</description>
104
        </field>
105
      </fields>
106
    </class>
107
  </classes>
108
</definitions>