Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Exclusion |
|
| 1.0;1 |
1 | /* | |
2 | * $Id$ | |
3 | */ | |
4 | ||
5 | package org.apache.maven.model; | |
6 | ||
7 | //---------------------------------/ | |
8 | //- Imported classes and packages -/ | |
9 | //---------------------------------/ | |
10 | ||
11 | import java.util.Date; | |
12 | ||
13 | /** | |
14 | * | |
15 | * | |
16 | * The <code><exclusion></code> element contains | |
17 | * informations required to exclude | |
18 | * an artifact to the project. | |
19 | * | |
20 | * | |
21 | * | |
22 | * @version $Revision$ $Date$ | |
23 | */ | |
24 | 0 | public class Exclusion implements java.io.Serializable { |
25 | ||
26 | ||
27 | //--------------------------/ | |
28 | //- Class/Member Variables -/ | |
29 | //--------------------------/ | |
30 | ||
31 | /** | |
32 | * The artifact ID of the project to exclude. | |
33 | */ | |
34 | private String artifactId; | |
35 | ||
36 | /** | |
37 | * The group ID of the project to exclude. | |
38 | */ | |
39 | private String groupId; | |
40 | ||
41 | ||
42 | //-----------/ | |
43 | //- Methods -/ | |
44 | //-----------/ | |
45 | ||
46 | /** | |
47 | * Get the artifact ID of the project to exclude. | |
48 | * | |
49 | * @return String | |
50 | */ | |
51 | public String getArtifactId() | |
52 | { | |
53 | 0 | return this.artifactId; |
54 | } //-- String getArtifactId() | |
55 | ||
56 | /** | |
57 | * Get the group ID of the project to exclude. | |
58 | * | |
59 | * @return String | |
60 | */ | |
61 | public String getGroupId() | |
62 | { | |
63 | 0 | return this.groupId; |
64 | } //-- String getGroupId() | |
65 | ||
66 | /** | |
67 | * Set the artifact ID of the project to exclude. | |
68 | * | |
69 | * @param artifactId | |
70 | */ | |
71 | public void setArtifactId( String artifactId ) | |
72 | { | |
73 | 0 | this.artifactId = artifactId; |
74 | 0 | } //-- void setArtifactId( String ) |
75 | ||
76 | /** | |
77 | * Set the group ID of the project to exclude. | |
78 | * | |
79 | * @param groupId | |
80 | */ | |
81 | public void setGroupId( String groupId ) | |
82 | { | |
83 | 0 | this.groupId = groupId; |
84 | 0 | } //-- void setGroupId( String ) |
85 | ||
86 | ||
87 | 0 | private String modelEncoding = "UTF-8"; |
88 | ||
89 | /** | |
90 | * Set an encoding used for reading/writing the model. | |
91 | * | |
92 | * @param modelEncoding the encoding used when reading/writing the model. | |
93 | */ | |
94 | public void setModelEncoding( String modelEncoding ) | |
95 | { | |
96 | 0 | this.modelEncoding = modelEncoding; |
97 | 0 | } |
98 | ||
99 | /** | |
100 | * @return the current encoding used when reading/writing this model. | |
101 | */ | |
102 | public String getModelEncoding() | |
103 | { | |
104 | 0 | return modelEncoding; |
105 | } | |
106 | } |