Package gnue :: Package reports :: Package adapters :: Package filters :: Package MailMerge :: Package _merge :: Module MergeBase :: Class TransformAdapter
[show private | hide private]

Class TransformAdapter

_BaseAdapter --+    
               |    
TransformAdapter --+
                   |
  ContentHandler --+
                   |
                  TransformAdapter

Known Subclasses:
TransformAdapter, TransformAdapter, TransformAdapter

Method Summary
  __init__(self, *args, **params)
  as_barcode(self, name, extras)
  as_text(self, name, extras)
  characters(self, text)
  close(self)
  endElement(self, name)
Signals the end of an element in non-namespace mode.
  escape(self, s)
  getFieldValue(self, matchObject)
  merge(self, data, template, output)
  open(self)
  printComment(self, out, comment)
  startElement(self, name, attrs)
Signals the start of an element in non-namespace mode.
    Inherited from _BaseAdapter
  createTempFile(self, extension)
  deleteTempFile(self, name)
    Inherited from ContentHandler
  endDocument(self)
Receive notification of the end of a document.
  endElementNS(self, name, qname)
Signals the end of an element in namespace mode.
  endPrefixMapping(self, prefix)
End the scope of a prefix-URI mapping.
  ignorableWhitespace(self, whitespace)
Receive notification of ignorable whitespace in element content.
  processingInstruction(self, target, data)
Receive notification of a processing instruction.
  setDocumentLocator(self, locator)
Called by the parser to give the application a locator for locating the origin of document events.
  skippedEntity(self, name)
Receive notification of a skipped entity.
  startDocument(self)
Receive notification of the beginning of a document.
  startElementNS(self, name, qname, attrs)
Signals the start of an element in namespace mode.
  startPrefixMapping(self, prefix, uri)
Begin the scope of a prefix-URI Namespace mapping.

Class Variable Summary
str COMMENT_BEGIN = '#'
str COMMENT_END = '\n'
str FIELD_ENCLOSURE = '::'
str HEAD_DELIMITER = '^'
str MIMETYPE = 'text/plain'
int MULTILINE_COMMENTS = 0                                                                     
str NEWLINE = ''
str NEWPAGE = '\\p'
str REGEX = '\\A(.*^)(.+)($.*)\\Z'
str TAIL_DELIMITER = '$'

Method Details

__init__(self, *args, **params)
(Constructor)

Overrides:
gnue.reports.base.GROutputAdapter.TransformAdapter.__init__

as_barcode(self, name, extras)

as_text(self, name, extras)

characters(self, text)

Overrides:
_xmlplus.sax.handler.ContentHandler.characters

close(self)

endElement(self, name)

Signals the end of an element in non-namespace mode.

The name parameter contains the name of the element type, just as with the startElement event.
Overrides:
_xmlplus.sax.handler.ContentHandler.endElement (inherited documentation)

escape(self, s)

getFieldValue(self, matchObject)

merge(self, data, template, output)

open(self)

printComment(self, out, comment)

startElement(self, name, attrs)

Signals the start of an element in non-namespace mode.

The name parameter contains the raw XML 1.0 name of the element type as a string and the attrs parameter holds an instance of the Attributes class containing the attributes of the element.
Overrides:
_xmlplus.sax.handler.ContentHandler.startElement (inherited documentation)

Class Variable Details

COMMENT_BEGIN

Type:
str
Value:
'#'                                                                    

COMMENT_END

Type:
str
Value:
'''
'''                                                                    

FIELD_ENCLOSURE

Type:
str
Value:
'::'                                                                   

HEAD_DELIMITER

Type:
str
Value:
'^'                                                                    

MIMETYPE

Type:
str
Value:
'text/plain'                                                           

MULTILINE_COMMENTS

Type:
int
Value:
0                                                                     

NEWLINE

Type:
str
Value:
''                                                                     

NEWPAGE

Type:
str
Value:
'\\p'                                                                  

REGEX

Type:
str
Value:
'\\A(.*^)(.+)($.*)\\Z'                                                 

TAIL_DELIMITER

Type:
str
Value:
'$'                                                                    


GNUe Home

Private API

Developer's Corner