import java.util.Enumeration;
import java.util.Hashtable;
+import jalview.io.DataSourceType;
import jalview.io.StructureFile;
import jalview.structure.StructureImportSettings.TFType;
import jalview.util.CaseInsensitiveString;
private static final String PROVIDERCATEGORY = "PROVIDERCATEGORY";
- private static final String TEMPFACTYPE = "TEMPFACTYPE";
private static final String MODELCONFIDENCE = "MODELCONFIDENCE";
private static final String MODELCONFVER = "MODELCONFVER";
+ // Pre 2.11.4 properties - case preserved
+ private static final String TEMPFACTYPE = "TFType";
+ private static final String PAEFILE = "PAEFile";
+ private final static String PROTOCOL="protocol";
/**
* Permanent URI for retrieving the original structure data
{
return (Double) getProperty(MODELCONFIDENCE);
}
+
+ public void setPAEFile(String paeFilename)
+ {
+ setProperty(PAEFILE,paeFilename);
+ }
+ public String getPAEFile()
+ {
+ return (String) getProperty(PAEFILE);
+ }
+ public boolean hasPAEFile()
+ {
+ return _hasProperty(PAEFILE);
+ }
-}
+ public void setProtocol(DataSourceType protocol)
+ {
+ setProperty(PROTOCOL, protocol.name());
+ }
+ public boolean hasProtocol()
+ {
+ return _hasProperty(PROTOCOL);
+ }
+ public DataSourceType getProtocol()
+ {
+ return DataSourceType.valueOf((String) getProperty(PROTOCOL));
+ }
+}
\ No newline at end of file
String paeFilename, boolean doXferSettings)
{
PDBEntry entry = new PDBEntry();
+
StructureFile pdbfile = StructureSelectionManager
.getStructureSelectionManager(ssmp)
.setMapping(false, new SequenceI[]
.registerPDBEntry(entry);
}
if (tft != null)
- entry.setProperty("TFType", tft.name());
+ entry.setTempFacType(tft);
if (paeFilename != null)
- entry.setProperty("PAEFile", paeFilename);
+ entry.setPAEFile(paeFilename);
return entry;
}
}