ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.output.AtlRunQueryXML.TextElement Class Reference
Inheritance diagram for python.output.AtlRunQueryXML.TextElement:
Collaboration diagram for python.output.AtlRunQueryXML.TextElement:

Public Member Functions

def __init__ (self, name, data, doc)
 
def setAttribute (self, attname, value)
 
def writexml (self, writer, indent="", addindent="", newl="")
 

Public Attributes

 tagName
 
 data
 
 ownerDocument
 
 attOrder
 

Detailed Description

Definition at line 31 of file AtlRunQueryXML.py.

Constructor & Destructor Documentation

◆ __init__()

def python.output.AtlRunQueryXML.TextElement.__init__ (   self,
  name,
  data,
  doc 
)

Definition at line 32 of file AtlRunQueryXML.py.

32  def __init__(self,name,data,doc):
33  Element.__init__(self,name)
34  if not isinstance(data, str):
35  raise TypeError ("node contents must be a string")
36  self.tagName = name
37  self.data = data
38  self.ownerDocument = doc
39  self.attOrder = []
40 

Member Function Documentation

◆ 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)
45 

◆ 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()
48  atstr = ''
49  for a_name in self.attOrder:
50  atstr += ' %s="%s"' % (a_name, attrs[a_name].value)
51 
52  if self.data:
53  writer.write("%s<%s%s>%s</%s>%s" % (indent, self.tagName, atstr, self.data, self.tagName, newl ) )
54  else:
55  writer.write("%s<%s%s/>%s" % (indent, self.tagName, atstr, newl ) )
56 

Member Data Documentation

◆ attOrder

python.output.AtlRunQueryXML.TextElement.attOrder

Definition at line 39 of file AtlRunQueryXML.py.

◆ data

python.output.AtlRunQueryXML.TextElement.data

Definition at line 37 of file AtlRunQueryXML.py.

◆ ownerDocument

python.output.AtlRunQueryXML.TextElement.ownerDocument

Definition at line 38 of file AtlRunQueryXML.py.

◆ tagName

python.output.AtlRunQueryXML.TextElement.tagName

Definition at line 36 of file AtlRunQueryXML.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18