def add_weight(self, weight):
if weight is None:<EOL><INDENT>raise NullArgument('<STR_LIT>')<EOL><DEDENT>if not self.my_osid_object_form._is_valid_decimal(<EOL>weight, self.get_weight_metadata()):<EOL><INDENT>raise InvalidArgument('<STR_LIT>')<EOL><DEDENT>self.my_osid_object_form._my_map['<STR_LIT>'] = weight<EOL>
stub