parameters: (self)
docstring: Initialise the module.
  
          Module initialisation will ensures the class is correctly constructed.
          If the xml_schema is set, initialisation will set the schema based on the xml_schema.
docstring_summary: Initialise the module.
docstring_tokens: Initialise the module .
function: def __init__(self):
          """Initialise the module.
  
          Module initialisation will ensures the class is correctly constructed.
          If the xml_schema is set, initialisation will set the schema based on the xml_schema.
  
          """
          self.name = None
  
          if len(set([self.schema, self.xml_schema, self.xml_schema_path])) > 2:
              raise Exception("Class '{}' in {} has multiple schema sources set."
                              .format(self.__class__.__name__, os.path.abspath(inspect.getfile(self.__class__))))
  
          if self.schema is NOTHING:
              if self.xml_schema_path is not NOTHING:
                  xml_schema_document = xml_parse_file(self.xml_schema_path)
              elif self.xml_schema is not NOTHING:
                  filename = sys.modules[self.__class__.__module__].__file__
                  xml_schema_document = xml_parse_string(self.xml_schema, '{}!xml_schema'.format(filename))
              else:
                  raise Exception("Class '{}' in {} has none of the possible schema sources (schema, xml_schema, \
  xml_schema_path) set as a class member.".format(self.__class__.__name__,
                                                  os.path.abspath(inspect.getfile(self.__class__))))
              self.schema = xml2schema(xml_schema_document)
function_tokens: def __init__ ( self ) : self . name = None if len ( set ( [ self . schema , self . xml_schema , self . xml_schema_path ] ) ) > 2 : raise Exception ( "Class '{}' in {} has multiple schema sources set." . format ( self . __class__ . __name__ , os . path . abspath ( inspect . getfile ( self . __class__ ) ) ) ) if self . schema is NOTHING : if self . xml_schema_path is not NOTHING : xml_schema_document = xml_parse_file ( self . xml_schema_path ) elif self . xml_schema is not NOTHING : filename = sys . modules [ self . __class__ . __module__ ] . __file__ xml_schema_document = xml_parse_string ( self . xml_schema , '{}!xml_schema' . format ( filename ) ) else : raise Exception ( "Class '{}' in {} has none of the possible schema sources (schema, xml_schema, \
  xml_schema_path) set as a class member." . format ( self . __class__ . __name__ , os . path . abspath ( inspect . getfile ( self . __class__ ) ) ) ) self . schema = xml2schema ( xml_schema_document )