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
[legend]
Collaboration diagram for xml.sax.expatreader.ExpatLocator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getColumnNumber
def getLineNumber
def getPublicId
def getSystemId

Private Attributes

 _ref

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 expatreader.py.


Constructor & Destructor Documentation

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

Definition at line 54 of file expatreader.py.

00054 
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 expatreader.py.

00057 
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 expatreader.py.

00063 
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 expatreader.py.

00069 
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 expatreader.py.

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


Member Data Documentation

Definition at line 55 of file expatreader.py.


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