public enum Type
{
- PDB, MMCIF, FILE
+ // TODO is FILE needed; if not is this needed or can we
+ // use FileFormatI for PDB, MMCIF?
+ PDB("pdb", "xml"), MMCIF("mmcif", "mmcif"), FILE("?", "?");
+ String ext;
+
+ String format;
+
+ private Type(String fmt, String ex)
+ {
+ format = fmt;
+ ext = ex;
+ }
+
+ public String getFormat()
+ {
+ return format;
+ }
+ public String getExtension()
+ {
+ return ext;
+ }
}
- Hashtable properties;
+ Hashtable<String, String> properties;
/*
* (non-Javadoc)
this.properties = property;
}
- public Hashtable getProperty()
+ public Hashtable<String, String> getProperty()
{
return properties;
}