Definition at line 31 of file AtlRunQueryXML.py.
◆ __init__()
def python.output.AtlRunQueryXML.TextElement.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
data, |
|
|
|
doc |
|
) |
| |
Definition at line 32 of file AtlRunQueryXML.py.
33 Element.__init__(self,name)
34 if not isinstance(data, str):
35 raise TypeError (
"node contents must be a string")
38 self.ownerDocument = doc
◆ setAttribute()
def python.output.AtlRunQueryXML.TextElement.setAttribute |
( |
|
self, |
|
|
|
attname, |
|
|
|
value |
|
) |
| |
Definition at line 41 of file AtlRunQueryXML.py.
41 def setAttribute(self, attname, value):
42 if attname
not in self.attOrder:
43 self.attOrder += [attname]
44 Element.setAttribute(self, attname, value)
◆ writexml()
def python.output.AtlRunQueryXML.TextElement.writexml |
( |
|
self, |
|
|
|
writer, |
|
|
|
indent = "" , |
|
|
|
addindent = "" , |
|
|
|
newl = "" |
|
) |
| |
Definition at line 46 of file AtlRunQueryXML.py.
46 def writexml(self, writer, indent="", addindent="", newl=""):
47 attrs = self._get_attributes()
49 for a_name
in self.attOrder:
50 atstr +=
' %s="%s"' % (a_name, attrs[a_name].value)
53 writer.write(
"%s<%s%s>%s</%s>%s" % (indent, self.tagName, atstr, self.data, self.tagName, newl ) )
55 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: