def set_resource_id(self, resource_id=None):
if resource_id is None:<EOL><INDENT>raise NullArgument()<EOL><DEDENT>if self.get_resource_id_metadata().is_read_only():<EOL><INDENT>raise NoAccess()<EOL><DEDENT>if not self.my_osid_object_form._is_valid_id(<EOL>resource_id):<EOL><INDENT>raise InvalidArgument()<EOL><DEDENT>self.my_osid_object_form._my_map['<STR_LIT>'] = resource_id<EOL>
stub