def set_max_string_length(self, length=None):
if self.get_max_string_length_metadata().is_read_only():<EOL><INDENT>raise NoAccess()<EOL><DEDENT>if length is not None and not self.my_osid_object_form._is_valid_cardinal(<EOL>length,<EOL>self.get_max_string_length_metadata()):<EOL><INDENT>raise InvalidArgument()<EOL><DEDENT>if self._min_string_length is not None and length < self._min_string_length + <NUM_LIT:1>:<EOL><INDENT>raise InvalidArgument()<EOL><DEDENT>self.my_osid_object_form._my_map['<STR_LIT>'] = length<EOL>self._max_string_length = length<EOL>
stub