private static boolean showSeqFeatures = true;
- public static final String JMOL_PARSER = "JMolParser";
-
- public static final String JALVIEW_PARSER = "JalViewParser";
-
- public static final String MMCIF = "mmCIF";
- private static boolean processHETATMs = false;
-
+ public enum StructureParser
+ {
+ JMOL_PARSER, JALVIEW_PARSER
+ }
- public static final String PDB = "PDB";
/**
* Determines the default file format for structure files to be downloaded
public static void setDefaultStructureFileFormat(
String defaultStructureFileFormat)
{
- StructureImportSettings.defaultStructureFileFormat = defaultStructureFileFormat;
+ StructureImportSettings.defaultStructureFileFormat = PDBEntry.Type
+ .valueOf(defaultStructureFileFormat);
}
- public static boolean isProcessHETATMs()
- {
- return processHETATMs;
- }
-
- public static void setProcessHETATMs(boolean processHETATMs)
- {
- StructureImportSettings.processHETATMs = processHETATMs;
- }
-
public static String getDefaultPDBFileParser()
{
- return defaultPDBFileParser;
+ return defaultPDBFileParser.toString();
}
- public static void setDefaultPDBFileParser(String defaultPDBFileParser)
+ public static void setDefaultPDBFileParser(
+ StructureParser defaultPDBFileParser)
{
StructureImportSettings.defaultPDBFileParser = defaultPDBFileParser;
}