001package org.biojava.nbio.structure;
002
003import org.biojava.nbio.structure.io.cif.CifBean;
004
005/**
006 * Represents revision records for use by {@link PDBHeader}.
007 * @author Sebastian Bittrich
008 * @since 6.0.0
009 */
010public class DatabasePDBRevRecord implements CifBean {
011    private static final long serialVersionUID = 1L;
012    private String revNum;
013    private String type;
014    private String details;
015
016    public DatabasePDBRevRecord() {
017
018    }
019
020    public DatabasePDBRevRecord(String revNum, String type, String details) {
021        this.revNum = revNum;
022        this.type = type;
023        this.details = details;
024    }
025
026    public DatabasePDBRevRecord(org.rcsb.cif.schema.mm.DatabasePDBRevRecord cif, int row) {
027        this(cif.getDetails().get(row),
028                cif.getRevNum().getStringData(row),
029                cif.getType().get(row));
030    }
031
032    public String getRevNum() {
033        return revNum;
034    }
035
036    public void setRevNum(String revNum) {
037        this.revNum = revNum;
038    }
039
040    public String getType() {
041        return type;
042    }
043
044    public void setType(String type) {
045        this.type = type;
046    }
047
048    public String getDetails() {
049        return details;
050    }
051
052    public void setDetails(String details) {
053        this.details = details;
054    }
055
056    @Override
057    public String toString() {
058        return "DatabasePDBRevRecord{" +
059                "revNum='" + revNum + '\'' +
060                ", type='" + type + '\'' +
061                ", details='" + details + '\'' +
062                '}';
063    }
064}