def get_fastq_dxfile_objects(self,barcode=None):
fq_ext_glob = "<STR_LIT>".format(self.FQEXT)<EOL>name = fq_ext_glob<EOL>if barcode:<EOL><INDENT>name = "<STR_LIT>".format(barcode=barcode, FQEXT=self.FQEXT)<EOL><DEDENT>fastqs= dxpy.find_data_objects(project=self.dx_project_id,folder=self.DX_FASTQ_FOLDER,name=name,name_mode="<STR_LIT>")<EOL>if not fastqs:<EOL><INDENT>fastqs= dxpy.find_data_objects(project=self.dx_project_id,name=name,name_mode="<STR_LIT>")<EOL><DEDENT>if not fastqs:<EOL><INDENT>msg = "<STR_LIT>".format(run=proj_name)<EOL>if barcode:<EOL><INDENT>msg += "<STR_LIT>".format(barcode=barcode)<EOL><DEDENT>raise FastqNotFound(msg)<EOL><DEDENT>fastqs = [dxpy.DXFile(project=x["<STR_LIT>"],dxid=x["<STR_LIT:id>"]) for x in fastqs]<EOL>return fastqs<EOL>
Retrieves all the FASTQ files in project self.dx_project_name as DXFile objects.

Args:
    barcode: `str`. If set, then only FASTQ file properties for FASTQ files having the specified barcode are returned.

Returns: 
    `list` of DXFile objects representing FASTQ files.

Raises:
    `dnanexus_utils.FastqNotFound`: No FASTQ files were found.