Back to index

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

List of all members.

Public Member Functions

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

Private Attributes

 _attrs
 _qnames

Detailed Description

Definition at line 338 of file xmlreader.py.


Constructor & Destructor Documentation

def xml.sax.xmlreader.AttributesNSImpl.__init__ (   self,
  attrs,
  qnames 
)
NS-aware implementation.

attrs should be of the form {(ns_uri, lname): value, ...}.
qnames of the form {(ns_uri, lname): qname, ...}.

Definition at line 340 of file xmlreader.py.

00340 
00341     def __init__(self, attrs, qnames):
00342         """NS-aware implementation.
00343 
00344         attrs should be of the form {(ns_uri, lname): value, ...}.
00345         qnames of the form {(ns_uri, lname): qname, ...}."""
00346         self._attrs = attrs
00347         self._qnames = qnames

Here is the caller graph for this function:


Member Function Documentation

def xml.sax.xmlreader.AttributesImpl.__contains__ (   self,
  name 
) [inherited]

Definition at line 321 of file xmlreader.py.

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

def xml.sax.xmlreader.AttributesImpl.__getitem__ (   self,
  name 
) [inherited]

Definition at line 315 of file xmlreader.py.

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

def xml.sax.xmlreader.AttributesImpl.__len__ (   self) [inherited]

Definition at line 312 of file xmlreader.py.

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

Reimplemented from xml.sax.xmlreader.AttributesImpl.

Definition at line 368 of file xmlreader.py.

00368 
00369     def copy(self):
00370         return self.__class__(self._attrs, self._qnames)
00371 

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

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:

def xml.sax.xmlreader.AttributesImpl.getLength (   self) [inherited]

Definition at line 284 of file xmlreader.py.

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

Reimplemented from xml.sax.xmlreader.AttributesImpl.

Definition at line 355 of file xmlreader.py.

00355 
00356     def getNameByQName(self, name):
00357         for (nsname, qname) in self._qnames.items():
00358             if qname == name:
00359                 return nsname
00360 
00361         raise KeyError(name)

def xml.sax.xmlreader.AttributesImpl.getNames (   self) [inherited]

Definition at line 306 of file xmlreader.py.

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

Reimplemented from xml.sax.xmlreader.AttributesImpl.

Definition at line 362 of file xmlreader.py.

00362 
00363     def getQNameByName(self, name):
00364         return self._qnames[name]

Reimplemented from xml.sax.xmlreader.AttributesImpl.

Definition at line 365 of file xmlreader.py.

00365 
00366     def getQNames(self):
00367         return list(self._qnames.values())

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

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 
) [inherited]

Definition at line 290 of file xmlreader.py.

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

Reimplemented from xml.sax.xmlreader.AttributesImpl.

Definition at line 348 of file xmlreader.py.

00348 
00349     def getValueByQName(self, name):
00350         for (nsname, qname) in self._qnames.items():
00351             if qname == name:
00352                 return self._attrs[nsname]
00353 
00354         raise KeyError(name)

def xml.sax.xmlreader.AttributesImpl.items (   self) [inherited]

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:

def xml.sax.xmlreader.AttributesImpl.keys (   self) [inherited]

Definition at line 318 of file xmlreader.py.

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

def xml.sax.xmlreader.AttributesImpl.values (   self) [inherited]

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 from xml.sax.xmlreader.AttributesImpl.

Definition at line 345 of file xmlreader.py.

Definition at line 346 of file xmlreader.py.


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