Definition at line 30 of file AtlRunQueryXML.py.
◆ __init__()
def python.output.AtlRunQueryXML.TextElement.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
data, |
|
|
|
doc |
|
) |
| |
Definition at line 31 of file AtlRunQueryXML.py.
32 Element.__init__(self,name)
33 if not isinstance(data, str):
34 raise TypeError (
"node contents must be a string")
37 self.ownerDocument = doc
◆ setAttribute()
def python.output.AtlRunQueryXML.TextElement.setAttribute |
( |
|
self, |
|
|
|
attname, |
|
|
|
value |
|
) |
| |
Definition at line 40 of file AtlRunQueryXML.py.
40 def setAttribute(self, attname, value):
41 if attname
not in self.attOrder:
42 self.attOrder += [attname]
43 Element.setAttribute(self, attname, value)
◆ writexml()
def python.output.AtlRunQueryXML.TextElement.writexml |
( |
|
self, |
|
|
|
writer, |
|
|
|
indent = "" , |
|
|
|
addindent = "" , |
|
|
|
newl = "" |
|
) |
| |
Definition at line 45 of file AtlRunQueryXML.py.
45 def writexml(self, writer, indent="", addindent="", newl=""):
46 attrs = self._get_attributes()
48 for a_name
in self.attOrder:
49 atstr +=
' %s="%s"' % (a_name, attrs[a_name].value)
52 writer.write(
"%s<%s%s>%s</%s>%s" % (indent, self.tagName, atstr, self.data, self.tagName, newl ) )
54 writer.write(
"%s<%s%s/>%s" % (indent, self.tagName, atstr, newl ) )
◆ attOrder
python.output.AtlRunQueryXML.TextElement.attOrder |
◆ data
python.output.AtlRunQueryXML.TextElement.data |
◆ ownerDocument
python.output.AtlRunQueryXML.TextElement.ownerDocument |
◆ tagName
python.output.AtlRunQueryXML.TextElement.tagName |
The documentation for this class was generated from the following file: