private String id;
+ public enum StructureFileType
+ {
+ PDB, MMCIF, MMTF
+ };
+
private PDBEntry.Type dbRefType;
/**
private Vector<PDBChain> chains;
+ private boolean pdbIdAvailable;
+
public StructureFile(String inFile, String type) throws IOException
{
super(inFile, type);
{
return new PDBFeatureSettings();
}
+
+ /**
+ * Answers true if the structure file has a PDBId
+ *
+ * @return
+ */
+ public boolean isPPDBIdAvailable()
+ {
+ return pdbIdAvailable;
+ }
+
+ public void setPDBIdAvailable(boolean pdbIdAvailable)
+ {
+ this.pdbIdAvailable = pdbIdAvailable;
+ }
+
+ public static boolean isStructureFile(String fileType)
+ {
+ if (fileType == null)
+ {
+ return false;
+ }
+ for (StructureFileType sfType : StructureFileType.values())
+ {
+ if (sfType.name().equalsIgnoreCase(fileType))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
}