def _validate(self):
checker = (self._check0, self._check1, self._check2, self._check3,<EOL>self._check4, self._check5)<EOL>if not <NUM_LIT:0> <= self.field_type <= <NUM_LIT:5>:<EOL><INDENT>raise NotImplementedError("<STR_LIT>")<EOL><DEDENT>if type(self.rect) is not Rect:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if self.rect.isInfinite or self.rect.isEmpty:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if not self.field_name:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if self.border_color:<EOL><INDENT>if not len(self.border_color) in range(<NUM_LIT:1>,<NUM_LIT:5>) ortype(self.border_color) not in (list, tuple):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT><DEDENT>if self.fill_color:<EOL><INDENT>if not len(self.fill_color) in range(<NUM_LIT:1>,<NUM_LIT:5>) ortype(self.fill_color) not in (list, tuple):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT><DEDENT>if not self.text_color:<EOL><INDENT>self.text_color = (<NUM_LIT:0>, <NUM_LIT:0>, <NUM_LIT:0>)<EOL><DEDENT>if not len(self.text_color) in range(<NUM_LIT:1>,<NUM_LIT:5>) ortype(self.text_color) not in (list, tuple):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if not self.border_width:<EOL><INDENT>self.border_width = <NUM_LIT:0><EOL><DEDENT>if not self.text_fontsize:<EOL><INDENT>self.text_fontsize = <NUM_LIT:0><EOL><DEDENT>checker[self.field_type]()<EOL>
Validate the class entries.