File: kiwi.datatypes.ConverterRegistry.html

package info (click to toggle)
kiwi 1.9.22-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 11,976 kB
  • ctags: 5,619
  • sloc: python: 15,767; ansic: 193; xml: 77; makefile: 53; sh: 18
file content (222 lines) | stat: -rw-r--r-- 7,127 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>API docs for &ldquo;kiwi.datatypes.ConverterRegistry&rdquo;</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
    
    
  </head>
  <body>
    <h1 class="class">Class k.d.ConverterRegistry:</h1>
    <p>
      <span id="part">Part of <a href="kiwi.html">kiwi</a>.<a href="kiwi.datatypes.html">datatypes</a></span>
      
      <a href="classIndex.html#kiwi.datatypes.ConverterRegistry">View In Hierarchy</a>
    </p>
    <div>
      
    </div>
    <div class="undocumented">No class docstring</div>
    
    
    <div id="splitTables">
      <table class="children sortable" id="id328">
  
  
  
  
  <tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes.ConverterRegistry.html#__init__">__init__</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes.ConverterRegistry.html#add">add</a></td>
    <td><span>Adds converter_type as a new converter
</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes.ConverterRegistry.html#remove">remove</a></td>
    <td><span>Removes converter_type from the registry
</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes.ConverterRegistry.html#get_converter">get_converter</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes.ConverterRegistry.html#get_converters">get_converters</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes.ConverterRegistry.html#check_supported">check_supported</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes.ConverterRegistry.html#as_string">as_string</a></td>
    <td><span>Convert to a string
</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes.ConverterRegistry.html#from_string">from_string</a></td>
    <td><span>Convert from a string
</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes.ConverterRegistry.html#str_to_type">str_to_type</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr>
  
</table>
      
      
    </div>
    
    
    
    <div class="function">
        <a name="kiwi.datatypes.ConverterRegistry.__init__"></a>
        <a name="__init__"></a>
        <div class="functionHeader">
        
        def __init__(self):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes.ConverterRegistry.add"></a>
        <a name="add"></a>
        <div class="functionHeader">
        
        def add(self, converter_type):
        
      </div>
        <div class="functionBody">
          
          <div>Adds converter_type as a new converter
<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Parameters</td><td class="fieldArg">converter_type</td><td>a <a 
href="kiwi.datatypes.BaseConverter.html"><code>BaseConverter</code></a> 
subclass
</td></tr></table></div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes.ConverterRegistry.remove"></a>
        <a name="remove"></a>
        <div class="functionHeader">
        
        def remove(self, converter_type):
        
      </div>
        <div class="functionBody">
          
          <div>Removes converter_type from the registry
<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Parameters</td><td class="fieldArg">converter_type</td><td>a <a 
href="kiwi.datatypes.BaseConverter.html"><code>BaseConverter</code></a> 
subclass
</td></tr></table></div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes.ConverterRegistry.get_converter"></a>
        <a name="get_converter"></a>
        <div class="functionHeader">
        
        def get_converter(self, converter_type):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes.ConverterRegistry.get_converters"></a>
        <a name="get_converters"></a>
        <div class="functionHeader">
        
        def get_converters(self, base_classes=None):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes.ConverterRegistry.check_supported"></a>
        <a name="check_supported"></a>
        <div class="functionHeader">
        
        def check_supported(self, data_type):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes.ConverterRegistry.as_string"></a>
        <a name="as_string"></a>
        <div class="functionHeader">
        
        def as_string(self, converter_type, value, format=None):
        
      </div>
        <div class="functionBody">
          
          <div>Convert to a string
<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Parameters</td><td class="fieldArg">converter_type</td><td></td></tr><tr><td></td><td class="fieldArg">value</td><td></td></tr><tr><td></td><td class="fieldArg">format</td><td></td></tr></table></div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes.ConverterRegistry.from_string"></a>
        <a name="from_string"></a>
        <div class="functionHeader">
        
        def from_string(self, converter_type, value):
        
      </div>
        <div class="functionBody">
          
          <div>Convert from a string
<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Parameters</td><td class="fieldArg">converter_type</td><td></td></tr><tr><td></td><td class="fieldArg">value</td><td></td></tr></table></div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes.ConverterRegistry.str_to_type"></a>
        <a name="str_to_type"></a>
        <div class="functionHeader">
        
        def str_to_type(self, value):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div>
    
    <address>
      <a href="index.html">API Documentation</a> for Kiwi, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2008-05-29 16:06:17.
    </address>
  </body>
</html>