Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
xml.sax.xmlreader.AttributesImpl Class Reference
Inheritance diagram for xml.sax.xmlreader.AttributesImpl:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def getLength
def getType
def getValue
def getValueByQName
def getNameByQName
def getQNameByName
def getNames
def getQNames
def __len__
def __getitem__
def keys
def __contains__
def get
def copy
def items
def values

Private Attributes

 _attrs

Detailed Description

Definition at line 276 of file xmlreader.py.


Constructor & Destructor Documentation

def xml.sax.xmlreader.AttributesImpl.__init__ (   self,
  attrs 
)
Non-NS-aware implementation.

attrs should be of the form {name : value}.

Definition at line 278 of file xmlreader.py.

00278 
00279     def __init__(self, attrs):
00280         """Non-NS-aware implementation.
00281 
00282         attrs should be of the form {name : value}."""
00283         self._attrs = attrs

Here is the caller graph for this function:


Member Function Documentation

Definition at line 321 of file xmlreader.py.

00321 
00322     def __contains__(self, name):
00323         return name in self._attrs

Definition at line 315 of file xmlreader.py.

00315 
00316     def __getitem__(self, name):
00317         return self._attrs[name]

Definition at line 312 of file xmlreader.py.

00312 
00313     def __len__(self):
00314         return len(self._attrs)

Reimplemented in xml.sax.xmlreader.AttributesNSImpl.

Definition at line 327 of file xmlreader.py.

00327 
00328     def copy(self):
00329         return self.__class__(self._attrs)

def xml.sax.xmlreader.AttributesImpl.get (   self,
  name,
  alternative = None 
)

Definition at line 324 of file xmlreader.py.

00324 
00325     def get(self, name, alternative=None):
00326         return self._attrs.get(name, alternative)

Here is the caller graph for this function:

Definition at line 284 of file xmlreader.py.

00284 
00285     def getLength(self):
00286         return len(self._attrs)

Reimplemented in xml.sax.xmlreader.AttributesNSImpl.

Definition at line 296 of file xmlreader.py.

00296 
00297     def getNameByQName(self, name):
00298         if name not in self._attrs:
00299             raise KeyError(name)
00300         return name

Definition at line 306 of file xmlreader.py.

00306 
00307     def getNames(self):
00308         return list(self._attrs.keys())

Reimplemented in xml.sax.xmlreader.AttributesNSImpl.

Definition at line 301 of file xmlreader.py.

00301 
00302     def getQNameByName(self, name):
00303         if name not in self._attrs:
00304             raise KeyError(name)
00305         return name

Reimplemented in xml.sax.xmlreader.AttributesNSImpl.

Definition at line 309 of file xmlreader.py.

00309 
00310     def getQNames(self):
00311         return list(self._attrs.keys())

def xml.sax.xmlreader.AttributesImpl.getType (   self,
  name 
)

Definition at line 287 of file xmlreader.py.

00287 
00288     def getType(self, name):
00289         return "CDATA"

def xml.sax.xmlreader.AttributesImpl.getValue (   self,
  name 
)

Definition at line 290 of file xmlreader.py.

00290 
00291     def getValue(self, name):
00292         return self._attrs[name]

Reimplemented in xml.sax.xmlreader.AttributesNSImpl.

Definition at line 293 of file xmlreader.py.

00293 
00294     def getValueByQName(self, name):
00295         return self._attrs[name]

Definition at line 330 of file xmlreader.py.

00330 
00331     def items(self):
00332         return list(self._attrs.items())

Here is the caller graph for this function:

Definition at line 318 of file xmlreader.py.

00318 
00319     def keys(self):
00320         return list(self._attrs.keys())

Definition at line 333 of file xmlreader.py.

00333 
00334     def values(self):
00335         return list(self._attrs.values())
00336 
00337 # ===== ATTRIBUTESNSIMPL =====

Here is the caller graph for this function:


Member Data Documentation

Reimplemented in xml.sax.xmlreader.AttributesNSImpl.

Definition at line 282 of file xmlreader.py.


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