create changelog entry
[debian/openrocket] / core / src / net / sf / openrocket / file / rocksim / export / RocksimDocumentDTO.java
1 package net.sf.openrocket.file.rocksim.export;
2
3 import net.sf.openrocket.file.rocksim.RocksimCommonConstants;
4
5 import javax.xml.bind.annotation.XmlAccessType;
6 import javax.xml.bind.annotation.XmlAccessorType;
7 import javax.xml.bind.annotation.XmlElement;
8 import javax.xml.bind.annotation.XmlRootElement;
9
10 /**
11  * The top level Rocksim document.
12  */
13 @XmlRootElement(name = RocksimCommonConstants.ROCK_SIM_DOCUMENT)
14 @XmlAccessorType(XmlAccessType.FIELD)
15 public class RocksimDocumentDTO {
16
17     @XmlElement(name = RocksimCommonConstants.FILE_VERSION)
18     private final String version = "4";
19
20     @XmlElement(name = RocksimCommonConstants.DESIGN_INFORMATION)
21     private RocksimDesignDTO design;
22
23     /**
24      * Constructor.
25      */
26     public RocksimDocumentDTO() {
27     }
28
29     /**
30      * Get the subordinate design DTO.
31      *
32      * @return  the RocksimDesignDTO
33      */
34     public RocksimDesignDTO getDesign() {
35         return design;
36     }
37
38     /**
39      * Setter.
40      *
41      * @param theDesign
42      */
43     public void setDesign(RocksimDesignDTO theDesign) {
44         this.design = theDesign;
45     }
46
47     /**
48      * Getter.
49      *
50      * @return
51      */
52     public String getVersion() {
53         return version;
54     }
55 }