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;
+ }
+
/**
* case insensitive matching for Type enum
*
}
}
-
/**
* Answers true if obj is a PDBEntry with the same id and chain code (both
* ignoring case), file, type and properties