Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
xml.sax.expatreader.ExpatLocator Class Reference
Inheritance diagram for xml.sax.expatreader.ExpatLocator:
Inheritance graph
Collaboration diagram for xml.sax.expatreader.ExpatLocator:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def getColumnNumber
def getLineNumber
def getPublicId
def getSystemId

Private Attributes


Detailed Description

Locator for use with the ExpatParser class.

This uses a weak reference to the parser object to avoid creating
a circular reference between the parser and the content handler.

Definition at line 48 of file

Constructor & Destructor Documentation

def xml.sax.expatreader.ExpatLocator.__init__ (   self,

Definition at line 54 of file

00055     def __init__(self, parser):
00056         self._ref = _mkproxy(parser)

Here is the caller graph for this function:

Member Function Documentation

Reimplemented from xml.sax.xmlreader.Locator.

Definition at line 57 of file

00058     def getColumnNumber(self):
00059         parser = self._ref
00060         if parser._parser is None:
00061             return None
00062         return parser._parser.ErrorColumnNumber

Reimplemented from xml.sax.xmlreader.Locator.

Definition at line 63 of file

00064     def getLineNumber(self):
00065         parser = self._ref
00066         if parser._parser is None:
00067             return 1
00068         return parser._parser.ErrorLineNumber

Reimplemented from xml.sax.xmlreader.Locator.

Definition at line 69 of file

00070     def getPublicId(self):
00071         parser = self._ref
00072         if parser is None:
00073             return None
00074         return parser._source.getPublicId()

Reimplemented from xml.sax.xmlreader.Locator.

Definition at line 75 of file

00076     def getSystemId(self):
00077         parser = self._ref
00078         if parser is None:
00079             return None
00080         return parser._source.getSystemId()
00083 # --- ExpatParser

Member Data Documentation

Definition at line 55 of file

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