|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.E4XML.TasksHandler</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.E4XML.TasksHandler</h1> |
|
12 <p> |
|
13 Module implementing the handler class for reading an XML tasks file. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#TasksHandler">TasksHandler</a></td> |
|
23 <td>Class implementing a sax handler to read an XML tasks file.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="TasksHandler" ID="TasksHandler"></a> |
|
32 <h2>TasksHandler</h2> |
|
33 <p> |
|
34 Class implementing a sax handler to read an XML tasks file. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 XMLHandlerBase |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#TasksHandler.__init__">TasksHandler</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#TasksHandler.__buildPath">__buildPath</a></td> |
|
49 <td>Private method to assemble a path.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#TasksHandler.endCreated">endCreated</a></td> |
|
52 <td>Handler method for the "Created" end tag.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#TasksHandler.endDescription">endDescription</a></td> |
|
55 <td>Handler method for the "Description" end tag.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#TasksHandler.endDir">endDir</a></td> |
|
58 <td>Handler method for the "Dir" end tag.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#TasksHandler.endFilename">endFilename</a></td> |
|
61 <td>Handler method for the "Filename" end tag.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#TasksHandler.endLinenumber">endLinenumber</a></td> |
|
64 <td>Handler method for the "Linenumber" end tag.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#TasksHandler.endName">endName</a></td> |
|
67 <td>Handler method for the "Name" end tag.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#TasksHandler.endSummary">endSummary</a></td> |
|
70 <td>Handler method for the "Summary" end tag.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#TasksHandler.endTask">endTask</a></td> |
|
73 <td>Handler method for the "Task" end tag.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#TasksHandler.getVersion">getVersion</a></td> |
|
76 <td>Public method to retrieve the version of the tasks file.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#TasksHandler.startDocumentTasks">startDocumentTasks</a></td> |
|
79 <td>Handler called, when the document parsing is started.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#TasksHandler.startFilename">startFilename</a></td> |
|
82 <td>Handler method for the "Filename" start tag.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#TasksHandler.startTask">startTask</a></td> |
|
85 <td>Handler method for the "Task" start tag.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#TasksHandler.startTasks">startTasks</a></td> |
|
88 <td>Handler method for the "Tasks" start tag.</td> |
|
89 </tr> |
|
90 </table> |
|
91 <a NAME="TasksHandler.__init__" ID="TasksHandler.__init__"></a> |
|
92 <h4>TasksHandler (Constructor)</h4> |
|
93 <b>TasksHandler</b>(<i>forProject = False, taskViewer=None</i>) |
|
94 <p> |
|
95 Constructor |
|
96 </p><dl> |
|
97 <dt><i>forProject</i></dt> |
|
98 <dd> |
|
99 flag indicating project related mode (boolean) |
|
100 </dd><dt><i>taskViewer</i></dt> |
|
101 <dd> |
|
102 reference to the task viewer object |
|
103 </dd> |
|
104 </dl><a NAME="TasksHandler.__buildPath" ID="TasksHandler.__buildPath"></a> |
|
105 <h4>TasksHandler.__buildPath</h4> |
|
106 <b>__buildPath</b>(<i></i>) |
|
107 <p> |
|
108 Private method to assemble a path. |
|
109 </p><dl> |
|
110 <dt>Returns:</dt> |
|
111 <dd> |
|
112 The ready assembled path. (string) |
|
113 </dd> |
|
114 </dl><a NAME="TasksHandler.endCreated" ID="TasksHandler.endCreated"></a> |
|
115 <h4>TasksHandler.endCreated</h4> |
|
116 <b>endCreated</b>(<i></i>) |
|
117 <p> |
|
118 Handler method for the "Created" end tag. |
|
119 </p><a NAME="TasksHandler.endDescription" ID="TasksHandler.endDescription"></a> |
|
120 <h4>TasksHandler.endDescription</h4> |
|
121 <b>endDescription</b>(<i></i>) |
|
122 <p> |
|
123 Handler method for the "Description" end tag. |
|
124 </p><a NAME="TasksHandler.endDir" ID="TasksHandler.endDir"></a> |
|
125 <h4>TasksHandler.endDir</h4> |
|
126 <b>endDir</b>(<i></i>) |
|
127 <p> |
|
128 Handler method for the "Dir" end tag. |
|
129 </p><a NAME="TasksHandler.endFilename" ID="TasksHandler.endFilename"></a> |
|
130 <h4>TasksHandler.endFilename</h4> |
|
131 <b>endFilename</b>(<i></i>) |
|
132 <p> |
|
133 Handler method for the "Filename" end tag. |
|
134 </p><a NAME="TasksHandler.endLinenumber" ID="TasksHandler.endLinenumber"></a> |
|
135 <h4>TasksHandler.endLinenumber</h4> |
|
136 <b>endLinenumber</b>(<i></i>) |
|
137 <p> |
|
138 Handler method for the "Linenumber" end tag. |
|
139 </p><a NAME="TasksHandler.endName" ID="TasksHandler.endName"></a> |
|
140 <h4>TasksHandler.endName</h4> |
|
141 <b>endName</b>(<i></i>) |
|
142 <p> |
|
143 Handler method for the "Name" end tag. |
|
144 </p><a NAME="TasksHandler.endSummary" ID="TasksHandler.endSummary"></a> |
|
145 <h4>TasksHandler.endSummary</h4> |
|
146 <b>endSummary</b>(<i></i>) |
|
147 <p> |
|
148 Handler method for the "Summary" end tag. |
|
149 </p><a NAME="TasksHandler.endTask" ID="TasksHandler.endTask"></a> |
|
150 <h4>TasksHandler.endTask</h4> |
|
151 <b>endTask</b>(<i></i>) |
|
152 <p> |
|
153 Handler method for the "Task" end tag. |
|
154 </p><a NAME="TasksHandler.getVersion" ID="TasksHandler.getVersion"></a> |
|
155 <h4>TasksHandler.getVersion</h4> |
|
156 <b>getVersion</b>(<i></i>) |
|
157 <p> |
|
158 Public method to retrieve the version of the tasks file. |
|
159 </p><dl> |
|
160 <dt>Returns:</dt> |
|
161 <dd> |
|
162 String containing the version number. |
|
163 </dd> |
|
164 </dl><a NAME="TasksHandler.startDocumentTasks" ID="TasksHandler.startDocumentTasks"></a> |
|
165 <h4>TasksHandler.startDocumentTasks</h4> |
|
166 <b>startDocumentTasks</b>(<i></i>) |
|
167 <p> |
|
168 Handler called, when the document parsing is started. |
|
169 </p><a NAME="TasksHandler.startFilename" ID="TasksHandler.startFilename"></a> |
|
170 <h4>TasksHandler.startFilename</h4> |
|
171 <b>startFilename</b>(<i>attrs</i>) |
|
172 <p> |
|
173 Handler method for the "Filename" start tag. |
|
174 </p><dl> |
|
175 <dt><i>attrs</i></dt> |
|
176 <dd> |
|
177 list of tag attributes |
|
178 </dd> |
|
179 </dl><a NAME="TasksHandler.startTask" ID="TasksHandler.startTask"></a> |
|
180 <h4>TasksHandler.startTask</h4> |
|
181 <b>startTask</b>(<i>attrs</i>) |
|
182 <p> |
|
183 Handler method for the "Task" start tag. |
|
184 </p><dl> |
|
185 <dt><i>attrs</i></dt> |
|
186 <dd> |
|
187 list of tag attributes |
|
188 </dd> |
|
189 </dl><a NAME="TasksHandler.startTasks" ID="TasksHandler.startTasks"></a> |
|
190 <h4>TasksHandler.startTasks</h4> |
|
191 <b>startTasks</b>(<i>attrs</i>) |
|
192 <p> |
|
193 Handler method for the "Tasks" start tag. |
|
194 </p><dl> |
|
195 <dt><i>attrs</i></dt> |
|
196 <dd> |
|
197 list of tag attributes |
|
198 </dd> |
|
199 </dl> |
|
200 <div align="right"><a href="#top">Up</a></div> |
|
201 <hr /> |
|
202 </body></html> |