class BuilderTextBuffer(Builder): (source)
Known subclasses: zim.templates.parser.TemplateBuilderTextBuffer
Builder
object such that the last piece of text remains accessible for inspection and can be modified.Method | __init__ |
Undocumented |
Method | append |
No summary |
Method | clear_text |
Undocumented |
Method | end |
No summary |
Method | flush |
Undocumented |
Method | get_text |
Undocumented |
Method | set_text |
Undocumented |
Method | start |
No summary |
Method | text |
Append text @param text: text to be appended as string @implementation: must be implemented by sub-classes |
Instance Variable | buffer |
Undocumented |
Instance Variable | builder |
Undocumented |
zim.parser.Builder.append
Parameters | |
tag | the tag name |
attrib | optional dict with attributes |
text | formatted text |
Unknown Field: implementation | |
optional for subclasses, default implementation calls start() , text() , and end() |
zim.parser.Builder.end
Parameters | |
tag | the tag name |
Raises | |
XXX | when tag does not match current state |
Unknown Field: implementation | |
must be implemented by sub-classes |
zim.parser.Builder.start
Parameters | |
tag | the tag name |
attrib | optional dict with attributes |
Unknown Field: implementation | |
must be implemented by sub-classes |
zim.parser.Builder.text
zim.templates.parser.TemplateBuilderTextBuffer
Parameters | |
text | text to be appended as string |
Unknown Field: implementation | |
must be implemented by sub-classes |