class documentation

class TokenBuilder(Builder): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method append No summary
Method end No summary
Method start No summary
Method text Append text @param text: text to be appended as string @implementation: must be implemented by sub-classes
Property tokens Undocumented
Instance Variable _tokens Undocumented
def __init__(self): (source)

Undocumented

def append(self, tag, attrib=None, text=None): (source)
Convenience function to open a tag, append text and close it immediatly. Only used for formatted text that has no sub-processing done.
Parameters
tagthe tag name
attriboptional dict with attributes
textformatted text
Unknown Field: implementation
optional for subclasses, default implementation calls start(), text(), and end()
def end(self, tag): (source)
End formatted region
Parameters
tagthe tag name
Raises
XXXwhen tag does not match current state
Unknown Field: implementation
must be implemented by sub-classes
def start(self, tag, attrib=None): (source)
Start formatted region
Parameters
tagthe tag name
attriboptional dict with attributes
Unknown Field: implementation
must be implemented by sub-classes
def text(self, text): (source)
Append text
Parameters
texttext to be appended as string
Unknown Field: implementation
must be implemented by sub-classes

Undocumented

_tokens: list = (source)

Undocumented