Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_pyexpat.ParseTest.Outputter Class Reference

List of all members.

Public Member Functions

def __init__
def StartElementHandler
def EndElementHandler
def CharacterDataHandler
def ProcessingInstructionHandler
def StartNamespaceDeclHandler
def EndNamespaceDeclHandler
def StartCdataSectionHandler
def EndCdataSectionHandler
def CommentHandler
def NotationDeclHandler
def UnparsedEntityDeclHandler
def NotStandaloneHandler
def ExternalEntityRefHandler
def StartDoctypeDeclHandler
def EndDoctypeDeclHandler
def EntityDeclHandler
def XmlDeclHandler
def ElementDeclHandler
def AttlistDeclHandler
def SkippedEntityHandler
def DefaultHandler
def DefaultHandlerExpand

Public Attributes

 out

Detailed Description

Definition at line 61 of file test_pyexpat.py.


Constructor & Destructor Documentation

Definition at line 62 of file test_pyexpat.py.

00062 
00063         def __init__(self):
00064             self.out = []

Here is the caller graph for this function:


Member Function Documentation

Definition at line 132 of file test_pyexpat.py.

00132 
00133         def AttlistDeclHandler(self, *args):
00134             self.out.append(('Attribute list declaration', args))
00135             return 1

Definition at line 72 of file test_pyexpat.py.

00072 
00073         def CharacterDataHandler(self, data):
00074             data = data.strip()
00075             if data:
00076                 self.out.append('Character data: ' + repr(data))

Definition at line 92 of file test_pyexpat.py.

00092 
00093         def CommentHandler(self, text):
00094             self.out.append('Comment: ' + repr(text))

Definition at line 140 of file test_pyexpat.py.

00140 
00141         def DefaultHandler(self, userData):
00142             pass

Definition at line 143 of file test_pyexpat.py.

00143 
00144         def DefaultHandlerExpand(self, userData):
00145             pass
00146 
    handler_names = [

Definition at line 128 of file test_pyexpat.py.

00128 
00129         def ElementDeclHandler(self, *args):
00130             self.out.append(('Element declaration', args))
00131             return 1

Definition at line 89 of file test_pyexpat.py.

00089 
00090         def EndCdataSectionHandler(self):
00091             self.out.append('End of CDATA section')

Definition at line 116 of file test_pyexpat.py.

00116 
00117         def EndDoctypeDeclHandler(self):
00118             self.out.append("End doctype")
00119             return 1

Definition at line 69 of file test_pyexpat.py.

00069 
00070         def EndElementHandler(self, name):
00071             self.out.append('End element: ' + repr(name))

Definition at line 83 of file test_pyexpat.py.

00083 
00084         def EndNamespaceDeclHandler(self, prefix):
00085             self.out.append('End of NS decl: ' + repr(prefix))

Definition at line 120 of file test_pyexpat.py.

00120 
00121         def EntityDeclHandler(self, *args):
00122             self.out.append(('Entity declaration', args))
00123             return 1

Definition at line 107 of file test_pyexpat.py.

00107 
00108         def ExternalEntityRefHandler(self, *args):
00109             context, base, sysId, pubId = args
00110             self.out.append('External entity ref: %s' %(args[1:],))
00111             return 1

Definition at line 95 of file test_pyexpat.py.

00095 
00096         def NotationDeclHandler(self, *args):
00097             name, base, sysid, pubid = args
00098             self.out.append('Notation declared: %s' %(args,))

Definition at line 103 of file test_pyexpat.py.

00103 
00104         def NotStandaloneHandler(self):
00105             self.out.append('Not standalone')
00106             return 1

Definition at line 77 of file test_pyexpat.py.

00077 
00078         def ProcessingInstructionHandler(self, target, data):
00079             self.out.append('PI: ' + repr(target) + ' ' + repr(data))

Definition at line 136 of file test_pyexpat.py.

00136 
00137         def SkippedEntityHandler(self, *args):
00138             self.out.append(("Skipped entity", args))
00139             return 1

Definition at line 86 of file test_pyexpat.py.

00086 
00087         def StartCdataSectionHandler(self):
00088             self.out.append('Start of CDATA section')

Definition at line 112 of file test_pyexpat.py.

00112 
00113         def StartDoctypeDeclHandler(self, *args):
00114             self.out.append(('Start doctype', args))
00115             return 1

def test.test_pyexpat.ParseTest.Outputter.StartElementHandler (   self,
  name,
  attrs 
)

Definition at line 65 of file test_pyexpat.py.

00065 
00066         def StartElementHandler(self, name, attrs):
00067             self.out.append('Start element: ' + repr(name) + ' ' +
00068                             sortdict(attrs))

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 80 of file test_pyexpat.py.

00080 
00081         def StartNamespaceDeclHandler(self, prefix, uri):
00082             self.out.append('NS decl: ' + repr(prefix) + ' ' + repr(uri))

Definition at line 99 of file test_pyexpat.py.

00099 
00100         def UnparsedEntityDeclHandler(self, *args):
00101             entityName, base, systemId, publicId, notationName = args
00102             self.out.append('Unparsed entity decl: %s' %(args,))

Definition at line 124 of file test_pyexpat.py.

00124 
00125         def XmlDeclHandler(self, *args):
00126             self.out.append(('XML declaration', args))
00127             return 1


Member Data Documentation

Definition at line 63 of file test_pyexpat.py.


The documentation for this class was generated from the following file: