copy constructors and AlignmentAnnotation sequenceRef mechanisms for pasting sequence...
[jalview.git] / src / jalview / datamodel / PDBEntry.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer
3  * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18  */
19 package jalview.datamodel;
20
21 import java.util.*;
22
23 public class PDBEntry
24 {
25   String file;
26   String type;
27   String id;
28   Hashtable properties;
29
30   public PDBEntry()
31   {}
32   public PDBEntry(PDBEntry entry) {
33     file = entry.file;
34     type = entry.type;
35     id = entry.id;
36     if (entry.properties!=null)
37     {
38       properties = (Hashtable) entry.properties.clone();
39     }
40   }
41   public void setFile(String file)
42   {
43     this.file = file;
44   }
45
46   public String getFile()
47   {
48     return file;
49   }
50
51   public void setType(String type)
52   {
53     this.type = type;
54   }
55
56   public String getType()
57   {
58     return type;
59   }
60
61   public void setId(String id)
62   {
63     this.id = id;
64   }
65
66   public String getId()
67   {
68     return id;
69   }
70
71   public void setProperty(Hashtable property)
72   {
73     this.properties = property;
74   }
75
76   public Hashtable getProperty()
77   {
78     return properties;
79   }
80
81 }