Package data_store :: Module data_classes :: Class RelaxListType
[hide private]
[frames] | no frames]

Class RelaxListType

source code


An empty list type container.

Instance Methods [hide private]
new empty list
__init__(self)
Initialise some class variables.
source code
 
from_xml(self, super_node, file_version=1)
Recreate the data structure from the XML node.
source code
 
to_xml(self, doc, element)
Create an XML element for the list data structure.
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialise some class variables.

Returns: new empty list
Overrides: object.__init__

from_xml(self, super_node, file_version=1)

source code 

Recreate the data structure from the XML node.

Parameters:
  • super_node (xml.dom.minicompat.Element instance) - The XML nodes.
  • file_version (int) - The relax XML version of the XML file.

to_xml(self, doc, element)

source code 

Create an XML element for the list data structure.

Parameters:
  • doc (xml.dom.minidom.Document instance) - The XML document object.
  • element (XML element object) - The element to add the list data structure XML element to.