Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
DueTo |
|
| 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 | * Name and Email of the person to be credited for this | |
16 | * change. This can be used when a patch is submitted by a | |
17 | * non-committer. | |
18 | * | |
19 | * | |
20 | * @version $Revision$ $Date$ | |
21 | */ | |
22 | 9 | public class DueTo implements java.io.Serializable { |
23 | ||
24 | ||
25 | //--------------------------/ | |
26 | //- Class/Member Variables -/ | |
27 | //--------------------------/ | |
28 | ||
29 | /** | |
30 | * Name of the person to be credited for this change. | |
31 | */ | |
32 | private String name; | |
33 | ||
34 | /** | |
35 | * Email of the person to be credited for this change. | |
36 | */ | |
37 | private String email; | |
38 | ||
39 | ||
40 | //-----------/ | |
41 | //- Methods -/ | |
42 | //-----------/ | |
43 | ||
44 | /** | |
45 | * Get email of the person to be credited for this change. | |
46 | * | |
47 | * @return String | |
48 | */ | |
49 | public String getEmail() | |
50 | { | |
51 | 0 | return this.email; |
52 | } //-- String getEmail() | |
53 | ||
54 | /** | |
55 | * Get name of the person to be credited for this change. | |
56 | * | |
57 | * @return String | |
58 | */ | |
59 | public String getName() | |
60 | { | |
61 | 0 | return this.name; |
62 | } //-- String getName() | |
63 | ||
64 | /** | |
65 | * Set email of the person to be credited for this change. | |
66 | * | |
67 | * @param email | |
68 | */ | |
69 | public void setEmail(String email) | |
70 | { | |
71 | 9 | this.email = email; |
72 | 9 | } //-- void setEmail(String) |
73 | ||
74 | /** | |
75 | * Set name of the person to be credited for this change. | |
76 | * | |
77 | * @param name | |
78 | */ | |
79 | public void setName(String name) | |
80 | { | |
81 | 9 | this.name = name; |
82 | 9 | } //-- void setName(String) |
83 | ||
84 | ||
85 | 9 | private String modelEncoding = "UTF-8"; |
86 | ||
87 | /** | |
88 | * Set an encoding used for reading/writing the model. | |
89 | * | |
90 | * @param modelEncoding the encoding used when reading/writing the model. | |
91 | */ | |
92 | public void setModelEncoding( String modelEncoding ) | |
93 | { | |
94 | 0 | this.modelEncoding = modelEncoding; |
95 | 0 | } |
96 | ||
97 | /** | |
98 | * @return the current encoding used when reading/writing this model. | |
99 | */ | |
100 | public String getModelEncoding() | |
101 | { | |
102 | 0 | return modelEncoding; |
103 | } | |
104 | } |