SDF.data_model.abstract module¶
-
class
Data
[source]¶ Bases:
SDF.data_model.abstract.XMLWritable
Abstract class for all SDF objects representing <data> elements
-
abstract classmethod
from_xml_element
(element: xml.etree.ElementTree.Element) → SDF.data_model.abstract.XMLWritable¶ Generates an instance of this class from an Element
-
abstract
to_xml_element
() → xml.etree.ElementTree.Element¶ Returns an Element object that contains all information needed to export this object as XML.
-
abstract property
type_for_xml
¶ The ‘type’ attribute the wrapping <dataset> element has to have
-
abstract classmethod
-
class
XMLWritable
[source]¶ Bases:
abc.ABC
Abstract class for all SDF objects that are directly mappable to XML elements
-
abstract classmethod
from_xml_element
(element: xml.etree.ElementTree.Element) → SDF.data_model.abstract.XMLWritable[source]¶ Generates an instance of this class from an Element
-
abstract
to_xml_element
() → xml.etree.ElementTree.Element[source]¶ Returns an Element object that contains all information needed to export this object as XML.
-
abstract classmethod