def _validate(self, writing=False):
if (((len(self.fragment_offset) != len(self.fragment_length)) or<EOL>(len(self.fragment_length) != len(self.data_reference)))):<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>msg = msg.format(len_offsets=len(self.fragment_offset),<EOL>len_fragments=len(self.fragment_length),<EOL>len_drefs=len(self.data_reference))<EOL>self._dispatch_validation_error(msg, writing=writing)<EOL><DEDENT>if any([x <= <NUM_LIT:0> for x in self.fragment_offset]):<EOL><INDENT>msg = "<STR_LIT>"<EOL>self._dispatch_validation_error(msg, writing=writing)<EOL><DEDENT>if any([x <= <NUM_LIT:0> for x in self.fragment_length]):<EOL><INDENT>msg = "<STR_LIT>"<EOL>self._dispatch_validation_error(msg, writing=writing)<EOL><DEDENT>
Validate internal correctness.