Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Properties |
|
| 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 | * Class Properties. | |
15 | * | |
16 | * @version $Revision$ $Date$ | |
17 | */ | |
18 | 2 | public class Properties implements java.io.Serializable { |
19 | ||
20 | ||
21 | //--------------------------/ | |
22 | //- Class/Member Variables -/ | |
23 | //--------------------------/ | |
24 | ||
25 | /** | |
26 | * Page Title. | |
27 | */ | |
28 | private String title; | |
29 | ||
30 | /** | |
31 | * Page Author. | |
32 | */ | |
33 | private Author author; | |
34 | ||
35 | ||
36 | //-----------/ | |
37 | //- Methods -/ | |
38 | //-----------/ | |
39 | ||
40 | /** | |
41 | * Get page Author. | |
42 | * | |
43 | * @return Author | |
44 | */ | |
45 | public Author getAuthor() | |
46 | { | |
47 | 6 | return this.author; |
48 | } //-- Author getAuthor() | |
49 | ||
50 | /** | |
51 | * Get page Title. | |
52 | * | |
53 | * @return String | |
54 | */ | |
55 | public String getTitle() | |
56 | { | |
57 | 2 | return this.title; |
58 | } //-- String getTitle() | |
59 | ||
60 | /** | |
61 | * Set page Author. | |
62 | * | |
63 | * @param author | |
64 | */ | |
65 | public void setAuthor(Author author) | |
66 | { | |
67 | 2 | this.author = author; |
68 | 2 | } //-- void setAuthor(Author) |
69 | ||
70 | /** | |
71 | * Set page Title. | |
72 | * | |
73 | * @param title | |
74 | */ | |
75 | public void setTitle(String title) | |
76 | { | |
77 | 2 | this.title = title; |
78 | 2 | } //-- void setTitle(String) |
79 | ||
80 | ||
81 | 2 | private String modelEncoding = "UTF-8"; |
82 | ||
83 | /** | |
84 | * Set an encoding used for reading/writing the model. | |
85 | * | |
86 | * @param modelEncoding the encoding used when reading/writing the model. | |
87 | */ | |
88 | public void setModelEncoding( String modelEncoding ) | |
89 | { | |
90 | 0 | this.modelEncoding = modelEncoding; |
91 | 0 | } |
92 | ||
93 | /** | |
94 | * @return the current encoding used when reading/writing this model. | |
95 | */ | |
96 | public String getModelEncoding() | |
97 | { | |
98 | 0 | return modelEncoding; |
99 | } | |
100 | } |