Back to index

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

List of all members.

Public Member Functions

def appendChild
def hasChildNodes
def insertBefore
def removeChild
def normalize
def replaceChild

Static Public Attributes

 attributes = None
tuple childNodes = EmptyNodeList()
 firstChild = None
 lastChild = None

Private Member Functions

def _get_firstChild
def _get_lastChild

Detailed Description

Mixin that makes childless-ness easy to implement and avoids
the complexity of the Node methods that deal with children.

Definition at line 893 of file minidom.py.


Member Function Documentation

Definition at line 903 of file minidom.py.

00903 
00904     def _get_firstChild(self):
00905         return None

def xml.dom.minidom.Childless._get_lastChild (   self) [private]

Definition at line 906 of file minidom.py.

00906 
00907     def _get_lastChild(self):
00908         return None

def xml.dom.minidom.Childless.appendChild (   self,
  node 
)

Definition at line 909 of file minidom.py.

00909 
00910     def appendChild(self, node):
00911         raise xml.dom.HierarchyRequestErr(
00912             self.nodeName + " nodes cannot have children")

Definition at line 913 of file minidom.py.

00913 
00914     def hasChildNodes(self):
00915         return False

def xml.dom.minidom.Childless.insertBefore (   self,
  newChild,
  refChild 
)

Definition at line 916 of file minidom.py.

00916 
00917     def insertBefore(self, newChild, refChild):
00918         raise xml.dom.HierarchyRequestErr(
00919             self.nodeName + " nodes do not have children")

Definition at line 924 of file minidom.py.

00924 
00925     def normalize(self):
00926         # For childless nodes, normalize() has nothing to do.
00927         pass

def xml.dom.minidom.Childless.removeChild (   self,
  oldChild 
)

Definition at line 920 of file minidom.py.

00920 
00921     def removeChild(self, oldChild):
00922         raise xml.dom.NotFoundErr(
00923             self.nodeName + " nodes do not have children")

def xml.dom.minidom.Childless.replaceChild (   self,
  newChild,
  oldChild 
)

Definition at line 928 of file minidom.py.

00928 
00929     def replaceChild(self, newChild, oldChild):
00930         raise xml.dom.HierarchyRequestErr(
00931             self.nodeName + " nodes do not have children")
00932 


Member Data Documentation

Reimplemented in xml.dom.minidom.Text.

Definition at line 898 of file minidom.py.

Definition at line 899 of file minidom.py.

Definition at line 900 of file minidom.py.

Definition at line 901 of file minidom.py.


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