Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ChangesDocument |
|
| 1.0;1 |
1 | /* | |
2 | * $Id$ | |
3 | */ | |
4 | ||
5 | package org.apache.maven.plugins.changes.model; | |
6 | ||
7 | //---------------------------------/ | |
8 | //- Imported classes and packages -/ | |
9 | //---------------------------------/ | |
10 | ||
11 | import java.util.Date; | |
12 | ||
13 | /** | |
14 | * | |
15 | * Record every release with their subsequent changes. | |
16 | * | |
17 | * | |
18 | * @version $Revision$ $Date$ | |
19 | */ | |
20 | 2 | public class ChangesDocument implements java.io.Serializable { |
21 | ||
22 | ||
23 | //--------------------------/ | |
24 | //- Class/Member Variables -/ | |
25 | //--------------------------/ | |
26 | ||
27 | /** | |
28 | * | |
29 | * Contains the properties of this document. | |
30 | * | |
31 | */ | |
32 | private Properties properties; | |
33 | ||
34 | /** | |
35 | * | |
36 | * Contains the releases of this project with the | |
37 | * actions taken | |
38 | * for each of the releases. | |
39 | * | |
40 | */ | |
41 | private Body body; | |
42 | ||
43 | ||
44 | //-----------/ | |
45 | //- Methods -/ | |
46 | //-----------/ | |
47 | ||
48 | /** | |
49 | * Get | |
50 | * Contains the releases of this project with the | |
51 | * actions taken | |
52 | * for each of the releases. | |
53 | * | |
54 | * | |
55 | * @return Body | |
56 | */ | |
57 | public Body getBody() | |
58 | { | |
59 | 4 | return this.body; |
60 | } //-- Body getBody() | |
61 | ||
62 | /** | |
63 | * Get | |
64 | * Contains the properties of this document. | |
65 | * | |
66 | * | |
67 | * @return Properties | |
68 | */ | |
69 | public Properties getProperties() | |
70 | { | |
71 | 2 | return this.properties; |
72 | } //-- Properties getProperties() | |
73 | ||
74 | /** | |
75 | * Set | |
76 | * Contains the releases of this project with the | |
77 | * actions taken | |
78 | * for each of the releases. | |
79 | * | |
80 | * | |
81 | * @param body | |
82 | */ | |
83 | public void setBody(Body body) | |
84 | { | |
85 | 2 | this.body = body; |
86 | 2 | } //-- void setBody(Body) |
87 | ||
88 | /** | |
89 | * Set | |
90 | * Contains the properties of this document. | |
91 | * | |
92 | * | |
93 | * @param properties | |
94 | */ | |
95 | public void setProperties(Properties properties) | |
96 | { | |
97 | 2 | this.properties = properties; |
98 | 2 | } //-- void setProperties(Properties) |
99 | ||
100 | ||
101 | 2 | private String modelEncoding = "UTF-8"; |
102 | ||
103 | /** | |
104 | * Set an encoding used for reading/writing the model. | |
105 | * | |
106 | * @param modelEncoding the encoding used when reading/writing the model. | |
107 | */ | |
108 | public void setModelEncoding( String modelEncoding ) | |
109 | { | |
110 | 0 | this.modelEncoding = modelEncoding; |
111 | 0 | } |
112 | ||
113 | /** | |
114 | * @return the current encoding used when reading/writing this model. | |
115 | */ | |
116 | public String getModelEncoding() | |
117 | { | |
118 | 0 | return modelEncoding; |
119 | } | |
120 | } |