Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
xml.dom.minidom.ReadOnlySequentialNamedNodeMap Class Reference
Inheritance diagram for xml.dom.minidom.ReadOnlySequentialNamedNodeMap:
Inheritance graph
[legend]
Collaboration diagram for xml.dom.minidom.ReadOnlySequentialNamedNodeMap:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __len__
def getNamedItem
def getNamedItemNS
def __getitem__
def item
def removeNamedItem
def removeNamedItemNS
def setNamedItem
def setNamedItemNS
def __getstate__
def __setstate__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Member Functions

def _get_length

Private Attributes

 _seq

Static Private Attributes

string __slots__ = '_seq'

Detailed Description

Definition at line 1180 of file minidom.py.


Constructor & Destructor Documentation

Definition at line 1183 of file minidom.py.

01183 
01184     def __init__(self, seq=()):
01185         # seq should be a list or tuple
01186         self._seq = seq

Here is the caller graph for this function:


Member Function Documentation

Definition at line 1203 of file minidom.py.

01203 
01204     def __getitem__(self, name_or_tuple):
01205         if isinstance(name_or_tuple, tuple):
01206             node = self.getNamedItemNS(*name_or_tuple)
01207         else:
01208             node = self.getNamedItem(name_or_tuple)
01209         if node is None:
01210             raise KeyError(name_or_tuple)
01211         return node

Here is the call graph for this function:

Definition at line 1236 of file minidom.py.

01236 
01237     def __getstate__(self):
01238         return [self._seq]

Definition at line 1187 of file minidom.py.

01187 
01188     def __len__(self):
01189         return len(self._seq)

Definition at line 1239 of file minidom.py.

01239 
01240     def __setstate__(self, state):
01241         self._seq = state[0]
01242 
01243 defproperty(ReadOnlySequentialNamedNodeMap, "length",
01244             doc="Number of entries in the NamedNodeMap.")
01245 

Here is the call graph for this function:

Definition at line 1190 of file minidom.py.

01190 
01191     def _get_length(self):
01192         return len(self._seq)

Definition at line 1193 of file minidom.py.

01193 
01194     def getNamedItem(self, name):
01195         for n in self._seq:
01196             if n.nodeName == name:
01197                 return n

Here is the caller graph for this function:

def xml.dom.minidom.ReadOnlySequentialNamedNodeMap.getNamedItemNS (   self,
  namespaceURI,
  localName 
)

Definition at line 1198 of file minidom.py.

01198 
01199     def getNamedItemNS(self, namespaceURI, localName):
01200         for n in self._seq:
01201             if n.namespaceURI == namespaceURI and n.localName == localName:
01202                 return n

Here is the caller graph for this function:

Definition at line 1212 of file minidom.py.

01212 
01213     def item(self, index):
01214         if index < 0:
01215             return None
01216         try:
01217             return self._seq[index]
01218         except IndexError:
01219             return None

Definition at line 1220 of file minidom.py.

01220 
01221     def removeNamedItem(self, name):
01222         raise xml.dom.NoModificationAllowedErr(
01223             "NamedNodeMap instance is read-only")

def xml.dom.minidom.ReadOnlySequentialNamedNodeMap.removeNamedItemNS (   self,
  namespaceURI,
  localName 
)

Definition at line 1224 of file minidom.py.

01224 
01225     def removeNamedItemNS(self, namespaceURI, localName):
01226         raise xml.dom.NoModificationAllowedErr(
01227             "NamedNodeMap instance is read-only")

Definition at line 1228 of file minidom.py.

01228 
01229     def setNamedItem(self, node):
01230         raise xml.dom.NoModificationAllowedErr(
01231             "NamedNodeMap instance is read-only")

Definition at line 1232 of file minidom.py.

01232 
01233     def setNamedItemNS(self, node):
01234         raise xml.dom.NoModificationAllowedErr(
01235             "NamedNodeMap instance is read-only")


Member Data Documentation

Definition at line 1181 of file minidom.py.

Definition at line 1185 of file minidom.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


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