original_docstring: Parse a transfers string.
  
          Parse a @transfers tag string using the defined regular expression and add the elements
          to the internal data structure.
  
          @transfers is used to record the fact that the related code transfers the referened threat to another component.
  
          For example:
  
              @transfers @cwe_319_cleartext_transmission to User:Browser with non-sensitive information
  
          Args:
              transfers: Transfers string to parse.
              source: PTSSource instance for the @transfers line.
  
          Returns:
              Nothing.
          
docstring: Parse a transfers string.
  Parse a @transfers tag string using the defined regular expression and add the elements
  to the internal data structure.
  
  @transfers is used to record the fact that the related code transfers the referened threat to another component.
  
  For example.
  
  @transfers @cwe_319_cleartext_transmission to User:Browser with non-sensitive information
docstring_tokens: Parse a transfers string . Parse a @transfers tag string using the defined regular expression and add the elements to the internal data structure . @transfers is used to record the fact that the related code transfers the referened threat to another component . For example . @transfers @cwe_319_cleartext_transmission to User : Browser with non - sensitive information
code: def _parse_transfers(self, transfers, source):
          """Parse a transfers string.
  
          Parse a @transfers tag string using the defined regular expression and add the elements
          to the internal data structure.
  
          @transfers is used to record the fact that the related code transfers the referened threat to another component.
  
          For example:
  
              @transfers @cwe_319_cleartext_transmission to User:Browser with non-sensitive information
  
          Args:
              transfers: Transfers string to parse.
              source: PTSSource instance for the @transfers line.
  
          Returns:
              Nothing.
          """
          match = re.findall(self.parse_patterns["transfers"], transfers, re.M | re.I)
          if match:
              threat = remove_excessive_space(match[0][0])
              boundary = remove_excessive_space(match[0][1])
              component = remove_excessive_space(match[0][2])
              transfer_text = remove_excessive_space(match[0][3])
  
              boundary_id = self.add_boundary(boundary)
              component_id = self.add_component(boundary_id, component)
              threat_id = self.add_threat(threat)
              transfer_id = text_to_identifier(transfer_text)
  
              if transfer_id not in self.transfers:
                  self.transfers[transfer_id] = []
  
              transfer = PTSTransfer(boundary_id, component_id, threat_id, transfer_text, [])
              transfer.source = source
              self.transfers[transfer_id].append(transfer)
          else:
              raise ValueError("@transfers line contains an invalid pattern: {}".format(source))
code_tokens: def _parse_transfers ( self , transfers , source ) : match = re . findall ( self . parse_patterns [ "transfers" ] , transfers , re . M | re . I ) if match : threat = remove_excessive_space ( match [ 0 ] [ 0 ] ) boundary = remove_excessive_space ( match [ 0 ] [ 1 ] ) component = remove_excessive_space ( match [ 0 ] [ 2 ] ) transfer_text = remove_excessive_space ( match [ 0 ] [ 3 ] ) boundary_id = self . add_boundary ( boundary ) component_id = self . add_component ( boundary_id , component ) threat_id = self . add_threat ( threat ) transfer_id = text_to_identifier ( transfer_text ) if transfer_id not in self . transfers : self . transfers [ transfer_id ] = [ ] transfer = PTSTransfer ( boundary_id , component_id , threat_id , transfer_text , [ ] ) transfer . source = source self . transfers [ transfer_id ] . append ( transfer ) else : raise ValueError ( "@transfers line contains an invalid pattern: {}" . format ( source ) )
short_docstring: Parse a transfers string.
short_docstring_tokens: Parse a transfers string .
comment: """Parse a transfers string.
  
          Parse a @transfers tag string using the defined regular expression and add the elements
          to the internal data structure.
  
          @transfers is used to record the fact that the related code transfers the referened threat to another component.
  
          For example:
  
              @transfers @cwe_319_cleartext_transmission to User:Browser with non-sensitive information
  
          Args:
              transfers: Transfers string to parse.
              source: PTSSource instance for the @transfers line.
  
          Returns:
              Nothing.
          """