Package glue :: Package ligolw :: Module array :: Class ArrayStream
[hide private]
[frames] | no frames]

Class ArrayStream

source code

    object --+        
             |        
ligolw.Element --+    
                 |    
     ligolw.Stream --+
                     |
                    ArrayStream

High-level Stream element for use inside Arrays. This element knows how to parse the delimited character stream into the parent's array attribute, and knows how to turn the parent's array attribute back into a character stream.

Instance Methods [hide private]
 
__init__(self, *args)
Construct an element.
source code
 
appendData(self, content)
Add characters to the element's pcdata.
source code
 
config(self, parentNode) source code
 
endElement(self)
Method invoked by document parser when it encounters the end-of-element event.
source code
 
write(self, fileobj=<epydoc.docintrospecter._DevNull instance at 0x7f39154699e0>, indent=u'')
Recursively write an element and it's children to a file.
source code

Inherited from ligolw.Element: appendChild, end_tag, getAttribute, getChildrenByAttributes, getElements, getElementsByTagName, hasAttribute, insertBefore, removeAttribute, removeChild, replaceChild, setAttribute, start_tag, unlink

Inherited from ligolw.Element (private): _verifyChildren

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from ligolw.Element: validattributes

Class Variables [hide private]

Inherited from ligolw.Stream: tagName

Inherited from ligolw.Element: validchildren

Properties [hide private]
  Delimiter
The "Delimiter" attribute.

Inherited from ligolw.Stream: Content, Encoding, Name, Type

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 

Construct an element. The argument is a sax.xmlreader.AttributesImpl object (see the xml.sax documentation, but it's basically a dictionary-like thing) used to set the element attributes.

Overrides: object.__init__
(inherited documentation)

appendData(self, content)

source code 

Add characters to the element's pcdata.

Overrides: ligolw.Element.appendData
(inherited documentation)

endElement(self)

source code 

Method invoked by document parser when it encounters the end-of-element event.

Overrides: ligolw.Element.endElement
(inherited documentation)

write(self, fileobj=<epydoc.docintrospecter._DevNull instance at 0x7f39154699e0>, indent=u'')

source code 

Recursively write an element and it's children to a file.

Overrides: ligolw.Element.write
(inherited documentation)

Property Details [hide private]

Delimiter

The "Delimiter" attribute. Default is " " if not set.

Get Method:
unreachable.getter(self)
Set Method:
unreachable.setter(self, value)
Delete Method:
unreachable.deleter(self)