def add_parameter(self, indicator_id, content, name='<STR_LIT>', ptype='<STR_LIT:string>'):
parameters_node = self.parameters<EOL>criteria_node = self.top_level_indicator.getparent()<EOL>elems = parameters_node.xpath('<STR_LIT>'.format(indicator_id, name))<EOL>if len(elems) > <NUM_LIT:0>:<EOL><INDENT>log.info('<STR_LIT>'.format(indicator_id, name))<EOL><DEDENT>elems = criteria_node.xpath(<EOL>'<STR_LIT>'.format(indicator_id, indicator_id))<EOL>if len(elems) == <NUM_LIT:0>:<EOL><INDENT>raise IOCParseError('<STR_LIT>'.format(str(indicator_id), str(content)))<EOL><DEDENT>parameters_node.append(ioc_et.make_param_node(indicator_id, content, name, ptype))<EOL>return True<EOL>
Add a a parameter to the IOC.

:param indicator_id: The unique Indicator/IndicatorItem id the parameter is associated with.
:param content: The value of the parameter.
:param name: The name of the parameter.
:param ptype: The type of the parameter content.
:return: True
:raises: IOCParseError if the indicator_id is not associated with a Indicator or IndicatorItem in the IOC.