def validate(self):
    '\n        Validate the configuration dialog fields.  For any field that is not valid\n        set the style sheet to the INVALID_STYLE_SHEET.  Return the outcome of the\n        overall validity of the configuration.\n        '
    value = self.identifierOccursCount(self._ui.lineEdit0.text())
    valid = ((value == 0) or ((value == 1) and (self._previousIdentifier == self._ui.lineEdit0.text())))
    self._ui.lineEdit0.setStyleSheet((DEFAULT_STYLE_SHEET if valid else INVALID_STYLE_SHEET))
    non_empty = len(self._ui.lineEditFileLocation.text())
    file_path = self._output_location()
    if self._workflow_location:
        file_path = os.path.join(self._workflow_location, file_path)
    location_valid = (non_empty and os.path.isfile(file_path))
    self._ui.lineEditFileLocation.setStyleSheet((DEFAULT_STYLE_SHEET if location_valid else INVALID_STYLE_SHEET))
    return (valid and location_valid)
Validate the configuration dialog fields.  For any field that is not valid
set the style sheet to the INVALID_STYLE_SHEET.  Return the outcome of the
overall validity of the configuration.
def validate(self):
    '\n        Validate the configuration dialog fields.  For any field that is not valid\n        set the style sheet to the INVALID_STYLE_SHEET.  Return the outcome of the\n        overall validity of the configuration.\n        '
    value = self.identifierOccursCount(self._ui.lineEdit0.text())
    valid = ((value == 0) or ((value == 1) and (self._previousIdentifier == self._ui.lineEdit0.text())))
    self._ui.lineEdit0.setStyleSheet((DEFAULT_STYLE_SHEET if valid else INVALID_STYLE_SHEET))
    non_empty = len(self._ui.lineEditFileLocation.text())
    file_path = self._output_location()
    if self._workflow_location:
        file_path = os.path.join(self._workflow_location, file_path)
    location_valid = (non_empty and os.path.isfile(file_path))
    self._ui.lineEditFileLocation.setStyleSheet((DEFAULT_STYLE_SHEET if location_valid else INVALID_STYLE_SHEET))
    return (valid and location_valid)