Back to index

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

List of all members.

Public Member Functions

def __init__
def __getstate__
def __setstate__
def getAttributeType
def getAttributeTypeNS
def isElementContent
def isEmpty
def isId
def isIdNS

Public Attributes

 tagName
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Attributes

 _attr_info
 _model

Static Private Attributes

string __slots__ = '_attr_info'

Detailed Description

Definition at line 62 of file expatbuilder.py.


Constructor & Destructor Documentation

def xml.dom.expatbuilder.ElementInfo.__init__ (   self,
  tagName,
  model = None 
)

Definition at line 65 of file expatbuilder.py.

00065 
00066     def __init__(self, tagName, model=None):
00067         self.tagName = tagName
00068         self._attr_info = []
00069         self._model = model

Here is the caller graph for this function:


Member Function Documentation

Definition at line 70 of file expatbuilder.py.

00070 
00071     def __getstate__(self):
00072         return self._attr_info, self._model, self.tagName

def xml.dom.expatbuilder.ElementInfo.__setstate__ (   self,
  state 
)

Definition at line 73 of file expatbuilder.py.

00073 
00074     def __setstate__(self, state):
00075         self._attr_info, self._model, self.tagName = state

Definition at line 76 of file expatbuilder.py.

00076 
00077     def getAttributeType(self, aname):
00078         for info in self._attr_info:
00079             if info[1] == aname:
00080                 t = info[-2]
00081                 if t[0] == "(":
00082                     return _typeinfo_map["ENUM"]
00083                 else:
00084                     return _typeinfo_map[info[-2]]
00085         return minidom._no_type

def xml.dom.expatbuilder.ElementInfo.getAttributeTypeNS (   self,
  namespaceURI,
  localName 
)

Definition at line 86 of file expatbuilder.py.

00086 
00087     def getAttributeTypeNS(self, namespaceURI, localName):
00088         return minidom._no_type

Definition at line 89 of file expatbuilder.py.

00089 
00090     def isElementContent(self):
00091         if self._model:
00092             type = self._model[0]
00093             return type not in (expat.model.XML_CTYPE_ANY,
00094                                 expat.model.XML_CTYPE_MIXED)
00095         else:
00096             return False

Definition at line 97 of file expatbuilder.py.

00097 
00098     def isEmpty(self):
00099         if self._model:
00100             return self._model[0] == expat.model.XML_CTYPE_EMPTY
00101         else:
00102             return False

def xml.dom.expatbuilder.ElementInfo.isId (   self,
  aname 
)

Definition at line 103 of file expatbuilder.py.

00103 
00104     def isId(self, aname):
00105         for info in self._attr_info:
00106             if info[1] == aname:
00107                 return info[-2] == "ID"
00108         return False

Here is the caller graph for this function:

def xml.dom.expatbuilder.ElementInfo.isIdNS (   self,
  euri,
  ename,
  auri,
  aname 
)

Definition at line 109 of file expatbuilder.py.

00109 
00110     def isIdNS(self, euri, ename, auri, aname):
00111         # not sure this is meaningful
00112         return self.isId((auri, aname))

Here is the call graph for this function:


Member Data Documentation

Definition at line 63 of file expatbuilder.py.

Definition at line 67 of file expatbuilder.py.

Definition at line 68 of file expatbuilder.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 66 of file expatbuilder.py.


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