- if (xtant.getFile() != null && newEntry.getFile() != null
- && !xtant.getFile().equals(newEntry.getFile()))
- {
- // different structure data, so leave alone.
- continue;
- }
- // loop through to check whether we can find a matching ID
-
- // either exact
- if (!xtant.getId().equals(newEntry.getId()))
- {
- /* TODO: support stemming to group PDB IDs.
- // or stemming, with exactly one alphanumeric character difference
- if (xtant.getId().length() < newEntry.getId().length())
- {
- if (!newEntry.getId().startsWith(xtant.getId()))
- {
- continue;
- }
- // newEntry may be chain specific PDBEntry
- // TODO: copy/update details from newEntry to xtant
- }
- else
- {
- if (!xtant.getId().startsWith(newEntry.getId()))
- {
- continue;
- }
- // xtant may be chain specific PDBEntry
- // TODO: copy/update missing details from newEntry
- }*/
- continue;
- }
- if (xtant.getChainCode() != null && xtant.getChainCode().length() > 0
- && newEntry.getChainCode() != null
- && !newEntry.getChainCode().equals(xtant.getChainCode()))