--- a/Documentation/Source/eric5.E5XML.XMLWriterBase.html Thu Jan 14 17:27:31 2010 +0000 +++ b/Documentation/Source/eric5.E5XML.XMLWriterBase.html Thu Jan 14 18:35:52 2010 +0000 @@ -22,7 +22,7 @@ <body><a NAME="top" ID="top"></a> <h1>eric5.E5XML.XMLWriterBase</h1> <p> -Module implementing a base class for all of eric5s XML writers. +Module implementing a base class for all of eric5s XML writers. </p> <h3>Global Attributes</h3> <table> @@ -32,7 +32,7 @@ <table> <tr> <td><a href="#XMLWriterBase">XMLWriterBase</a></td> -<td>Class implementing a base class for all of eric5s XML writers.</td> +<td>Class implementing a base class for all of eric5s XML writers.</td> </tr> </table> <h3>Functions</h3> @@ -43,7 +43,7 @@ <a NAME="XMLWriterBase" ID="XMLWriterBase"></a> <h2>XMLWriterBase</h2> <p> - Class implementing a base class for all of eric5s XML writers. + Class implementing a base class for all of eric5s XML writers. </p> <h3>Derived from</h3> object @@ -55,317 +55,317 @@ <table> <tr> <td><a href="#XMLWriterBase.__init__">XMLWriterBase</a></td> -<td>Constructor</td> +<td>Constructor</td> </tr><tr> <td><a href="#XMLWriterBase._write">_write</a></td> -<td>Protected method used to do the real write operation.</td> +<td>Protected method used to do the real write operation.</td> </tr><tr> <td><a href="#XMLWriterBase._writeBasics">_writeBasics</a></td> -<td>Protected method to dump an object of a basic Python type.</td> +<td>Protected method to dump an object of a basic Python type.</td> </tr><tr> <td><a href="#XMLWriterBase._write_bool">_write_bool</a></td> -<td>Protected method to dump a bool object.</td> +<td>Protected method to dump a bool object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_bytearray">_write_bytearray</a></td> -<td>Protected method to dump a bytearray object.</td> +<td>Protected method to dump a bytearray object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_bytes">_write_bytes</a></td> -<td>Protected method to dump a bytes object.</td> +<td>Protected method to dump a bytes object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_complex">_write_complex</a></td> -<td>Protected method to dump a complex object.</td> +<td>Protected method to dump a complex object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_dictionary">_write_dictionary</a></td> -<td>Protected method to dump a dict object.</td> +<td>Protected method to dump a dict object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_float">_write_float</a></td> -<td>Protected method to dump a float object.</td> +<td>Protected method to dump a float object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_frozenset">_write_frozenset</a></td> -<td>Protected method to dump a frozenset object.</td> +<td>Protected method to dump a frozenset object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_int">_write_int</a></td> -<td>Protected method to dump an int object.</td> +<td>Protected method to dump an int object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_list">_write_list</a></td> -<td>Protected method to dump a list object.</td> +<td>Protected method to dump a list object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_none">_write_none</a></td> -<td>Protected method to dump a NoneType object.</td> +<td>Protected method to dump a NoneType object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_set">_write_set</a></td> -<td>Protected method to dump a set object.</td> +<td>Protected method to dump a set object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_string">_write_string</a></td> -<td>Protected method to dump a str object.</td> +<td>Protected method to dump a str object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_tuple">_write_tuple</a></td> -<td>Protected method to dump a tuple object.</td> +<td>Protected method to dump a tuple object.</td> </tr><tr> <td><a href="#XMLWriterBase._write_unimplemented">_write_unimplemented</a></td> -<td>Protected method to dump a type, that has no special method.</td> +<td>Protected method to dump a type, that has no special method.</td> </tr><tr> <td><a href="#XMLWriterBase.encodedNewLines">encodedNewLines</a></td> -<td>Public method to encode newlines and paragraph breaks.</td> +<td>Public method to encode newlines and paragraph breaks.</td> </tr><tr> <td><a href="#XMLWriterBase.escape">escape</a></td> -<td>Function to escape &, <, and > in a string of data.</td> +<td>Function to escape &, <, and > in a string of data.</td> </tr><tr> <td><a href="#XMLWriterBase.writeXML">writeXML</a></td> -<td>Public method to write the XML to the file.</td> +<td>Public method to write the XML to the file.</td> </tr> </table> <a NAME="XMLWriterBase.__init__" ID="XMLWriterBase.__init__"></a> <h4>XMLWriterBase (Constructor)</h4> <b>XMLWriterBase</b>(<i>file</i>) <p> - Constructor + Constructor </p><dl> <dt><i>file</i></dt> <dd> -open file (like) object for writing +open file (like) object for writing </dd> </dl><a NAME="XMLWriterBase._write" ID="XMLWriterBase._write"></a> <h4>XMLWriterBase._write</h4> <b>_write</b>(<i>s, newline = True</i>) <p> - Protected method used to do the real write operation. + Protected method used to do the real write operation. </p><dl> <dt><i>s</i></dt> <dd> -string to be written to the XML file +string to be written to the XML file </dd><dt><i>newline</i></dt> <dd> -flag indicating a linebreak +flag indicating a linebreak </dd> </dl><a NAME="XMLWriterBase._writeBasics" ID="XMLWriterBase._writeBasics"></a> <h4>XMLWriterBase._writeBasics</h4> <b>_writeBasics</b>(<i>pyobject, indent = 0</i>) <p> - Protected method to dump an object of a basic Python type. + Protected method to dump an object of a basic Python type. </p><dl> <dt><i>pyobject</i></dt> <dd> -object to be dumped +object to be dumped </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_bool" ID="XMLWriterBase._write_bool"></a> <h4>XMLWriterBase._write_bool</h4> <b>_write_bool</b>(<i>value, indent</i>) <p> - Protected method to dump a bool object. + Protected method to dump a bool object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (boolean) +value to be dumped (boolean) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_bytearray" ID="XMLWriterBase._write_bytearray"></a> <h4>XMLWriterBase._write_bytearray</h4> <b>_write_bytearray</b>(<i>value, indent</i>) <p> - Protected method to dump a bytearray object. + Protected method to dump a bytearray object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (bytearray) +value to be dumped (bytearray) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_bytes" ID="XMLWriterBase._write_bytes"></a> <h4>XMLWriterBase._write_bytes</h4> <b>_write_bytes</b>(<i>value, indent</i>) <p> - Protected method to dump a bytes object. + Protected method to dump a bytes object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (bytes) +value to be dumped (bytes) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_complex" ID="XMLWriterBase._write_complex"></a> <h4>XMLWriterBase._write_complex</h4> <b>_write_complex</b>(<i>value, indent</i>) <p> - Protected method to dump a complex object. + Protected method to dump a complex object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (complex) +value to be dumped (complex) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_dictionary" ID="XMLWriterBase._write_dictionary"></a> <h4>XMLWriterBase._write_dictionary</h4> <b>_write_dictionary</b>(<i>value, indent</i>) <p> - Protected method to dump a dict object. + Protected method to dump a dict object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (dictionary) +value to be dumped (dictionary) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_float" ID="XMLWriterBase._write_float"></a> <h4>XMLWriterBase._write_float</h4> <b>_write_float</b>(<i>value, indent</i>) <p> - Protected method to dump a float object. + Protected method to dump a float object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (float) +value to be dumped (float) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_frozenset" ID="XMLWriterBase._write_frozenset"></a> <h4>XMLWriterBase._write_frozenset</h4> <b>_write_frozenset</b>(<i>value, indent</i>) <p> - Protected method to dump a frozenset object. + Protected method to dump a frozenset object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (frozenset) +value to be dumped (frozenset) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_int" ID="XMLWriterBase._write_int"></a> <h4>XMLWriterBase._write_int</h4> <b>_write_int</b>(<i>value, indent</i>) <p> - Protected method to dump an int object. + Protected method to dump an int object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (integer) +value to be dumped (integer) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_list" ID="XMLWriterBase._write_list"></a> <h4>XMLWriterBase._write_list</h4> <b>_write_list</b>(<i>value, indent</i>) <p> - Protected method to dump a list object. + Protected method to dump a list object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (list) +value to be dumped (list) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_none" ID="XMLWriterBase._write_none"></a> <h4>XMLWriterBase._write_none</h4> <b>_write_none</b>(<i>value, indent</i>) <p> - Protected method to dump a NoneType object. + Protected method to dump a NoneType object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (None) (ignored) +value to be dumped (None) (ignored) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_set" ID="XMLWriterBase._write_set"></a> <h4>XMLWriterBase._write_set</h4> <b>_write_set</b>(<i>value, indent</i>) <p> - Protected method to dump a set object. + Protected method to dump a set object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (set) +value to be dumped (set) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_string" ID="XMLWriterBase._write_string"></a> <h4>XMLWriterBase._write_string</h4> <b>_write_string</b>(<i>value, indent</i>) <p> - Protected method to dump a str object. + Protected method to dump a str object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (string) +value to be dumped (string) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_tuple" ID="XMLWriterBase._write_tuple"></a> <h4>XMLWriterBase._write_tuple</h4> <b>_write_tuple</b>(<i>value, indent</i>) <p> - Protected method to dump a tuple object. + Protected method to dump a tuple object. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (tuple) +value to be dumped (tuple) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase._write_unimplemented" ID="XMLWriterBase._write_unimplemented"></a> <h4>XMLWriterBase._write_unimplemented</h4> <b>_write_unimplemented</b>(<i>value, indent</i>) <p> - Protected method to dump a type, that has no special method. + Protected method to dump a type, that has no special method. </p><dl> <dt><i>value</i></dt> <dd> -value to be dumped (any pickleable object) +value to be dumped (any pickleable object) </dd><dt><i>indent</i></dt> <dd> -indentation level for prettier output (integer) +indentation level for prettier output (integer) </dd> </dl><a NAME="XMLWriterBase.encodedNewLines" ID="XMLWriterBase.encodedNewLines"></a> <h4>XMLWriterBase.encodedNewLines</h4> <b>encodedNewLines</b>(<i>text</i>) <p> - Public method to encode newlines and paragraph breaks. + Public method to encode newlines and paragraph breaks. </p><dl> <dt><i>text</i></dt> <dd> -text to encode (string or QString) +text to encode (string or QString) </dd> </dl><a NAME="XMLWriterBase.escape" ID="XMLWriterBase.escape"></a> <h4>XMLWriterBase.escape</h4> <b>escape</b>(<i>data, attribute=False</i>) <p> - Function to escape &, <, and > in a string of data. + Function to escape &, <, and > in a string of data. </p><dl> <dt><i>data</i></dt> <dd> -data to be escaped (string) +data to be escaped (string) </dd><dt><i>attribute</i></dt> <dd> -flag indicating escaping is done for an attribute +flag indicating escaping is done for an attribute </dd> </dl><dl> <dt>Returns:</dt> <dd> -the escaped data (string) +the escaped data (string) </dd> </dl><a NAME="XMLWriterBase.writeXML" ID="XMLWriterBase.writeXML"></a> <h4>XMLWriterBase.writeXML</h4> <b>writeXML</b>(<i></i>) <p> - Public method to write the XML to the file. + Public method to write the XML to the file. </p> <div align="right"><a href="#top">Up</a></div> <hr />