sbsarobject module

Module sbsarobject provides the definition of a SBSARObject, the base class for all objects of a .sbsar package.

class common_interfaces.sbsarobject.SBSARObject

Bases: object

Abstract class used to provide a common interface for all derived SBSARObject, and to ensure that each derived object implements the function ‘parse’

abstractmethod parse(aContext, aDirAbsPath, aSBSParser, aXmlNode)

Parse recursively the given xml node to retrieve the content of the SBSObject.

Parameters:
  • aContext (Context) – execution context

  • aDirAbsPath (str) – the absolute directory containing the current parsed package (.sbs file)

  • aSBSParser (SBSParser) – the substance parser

  • aXmlNode (xml.etree.ElementTree) – the xml node to parse