Package ffx.potential.parsers
Class PDBFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
ffx.potential.parsers.PDBFileFilter
The PDBFileFilter class is used to choose a Protein Databank (*.PDB) file.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
acceptDeep
(File file) acceptDeep Accepts a PDB file if it finds at least one parseable ATOM line.static boolean
This is a static version of the accept method.
-
Constructor Details
-
PDBFileFilter
public PDBFileFilter()Public Constructor.
-
-
Method Details
-
isPDB
This is a static version of the accept method.This method return
true
if the file is a directory or Protein Databank File (*.PDB).- Parameters:
file
- The File to examine.- Returns:
- Returns true if this a PDB file.
-
accept
This method return
true
if the file is a directory or Protein Databank File (*.PDB).- Specified by:
accept
in classFileFilter
-
acceptDeep
acceptDeep Accepts a PDB file if it finds at least one parseable ATOM line.- Parameters:
file
- aFile
object.- Returns:
- Whether a valid PDB file.
-
getDescription
Provides a description of the PDBFileFilter.
- Specified by:
getDescription
in classFileFilter
-