3535
3636/**
3737 * A class that contains PDB Header information.
38- *
38+ * In contrast to what the name suggests, this class does not represent a
39+ * direct mapping of the Header section of the PDB legacy file format.
40+ * Instead, it holds the information that is not directly related to the
41+ * structure data. Such information may exist in some cases and may not exist in
42+ * other cases.
43+ *
3944 * @author Andreas Prlic
4045 * @since 1.6
4146 *
@@ -47,7 +52,10 @@ public class PDBHeader implements PDBRecord {
4752 private static final Logger logger = LoggerFactory .getLogger (PDBHeader .class );
4853
4954 private String title ;
55+ /**@deprecated This field should not be used. It will be removed later.
56+ * Use {@link #getKeywords()} instead. */
5057 private String description ;
58+ private List <String > keywords ;
5159 private String idCode ;
5260 private String classification ;
5361
@@ -92,6 +100,8 @@ public PDBHeader(){
92100 bioAssemblies = new LinkedHashMap <Integer , BioAssemblyInfo >();
93101 crystallographicInfo = new PDBCrystallographicInfo ();
94102
103+ keywords = new ArrayList <>();
104+
95105 }
96106
97107 /** String representation
@@ -589,9 +599,16 @@ public String getTitle() {
589599 public void setTitle (String title ) {
590600 this .title = title ;
591601 }
602+
603+ /**@deprecated will be removed later. Use {@link #getKeywords()}
604+ * @return
605+ */
592606 public String getDescription () {
593607 return description ;
594608 }
609+ /**@deprecated will be removed later. Use {@link #setKeywords(List)}
610+ * @param description
611+ */
595612 public void setDescription (String description ) {
596613 this .description = description ;
597614 }
@@ -683,4 +700,22 @@ public float getRwork() {
683700 public void setRwork (float rWork ) {
684701 this .rWork = rWork ;
685702 }
703+
704+ /**
705+ * Gets the keywords (KEYWODS) record of the structure
706+ * @return The keywords in a <code>List<String></code>
707+ * @since 6.0.0
708+ */
709+ public List <String > getKeywords () {
710+ return keywords ;
711+ }
712+
713+ /**
714+ * Sets the KEYWODS record of the structure.
715+ * @param keywords The keywords in a <code>List<String> to set.</code>
716+ * @since 6.0.0
717+ */
718+ public void setKeywords (List <String > keywords ) {
719+ this .keywords = keywords ;
720+ }
686721}
0 commit comments