Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Repository |
|
| 1.1;1.1 |
1 | /* | |
2 | * $Id$ | |
3 | */ | |
4 | ||
5 | package org.apache.maven.plugins.assembly.model; | |
6 | ||
7 | /** | |
8 | * Defines a Maven repository to be included in the assembly. | |
9 | * | |
10 | * @version $Revision$ $Date$ | |
11 | */ | |
12 | 0 | public class Repository extends SetBase |
13 | implements java.io.Serializable | |
14 | { | |
15 | ||
16 | ||
17 | //--------------------------/ | |
18 | //- Class/Member Variables -/ | |
19 | //--------------------------/ | |
20 | ||
21 | /** | |
22 | * Field includeMetadata | |
23 | */ | |
24 | 0 | private boolean includeMetadata = false; |
25 | ||
26 | /** | |
27 | * Field groupVersionAlignments | |
28 | */ | |
29 | private java.util.List groupVersionAlignments; | |
30 | ||
31 | /** | |
32 | * Field scope | |
33 | */ | |
34 | 0 | private String scope = "runtime"; |
35 | ||
36 | ||
37 | //-----------/ | |
38 | //- Methods -/ | |
39 | //-----------/ | |
40 | ||
41 | /** | |
42 | * Method addGroupVersionAlignment | |
43 | * | |
44 | * @param groupVersionAlignment | |
45 | */ | |
46 | public void addGroupVersionAlignment(GroupVersionAlignment groupVersionAlignment) | |
47 | { | |
48 | 0 | getGroupVersionAlignments().add( groupVersionAlignment ); |
49 | 0 | } //-- void addGroupVersionAlignment(GroupVersionAlignment) |
50 | ||
51 | /** | |
52 | * Method getGroupVersionAlignments | |
53 | */ | |
54 | public java.util.List getGroupVersionAlignments() | |
55 | { | |
56 | 0 | if ( this.groupVersionAlignments == null ) |
57 | { | |
58 | 0 | this.groupVersionAlignments = new java.util.ArrayList(); |
59 | } | |
60 | ||
61 | 0 | return this.groupVersionAlignments; |
62 | } //-- java.util.List getGroupVersionAlignments() | |
63 | ||
64 | /** | |
65 | * Get | |
66 | * Specifies the scope for artifacts included in | |
67 | * this repository. | |
68 | * Default scope value is "runtime". | |
69 | * | |
70 | */ | |
71 | public String getScope() | |
72 | { | |
73 | 0 | return this.scope; |
74 | } //-- String getScope() | |
75 | ||
76 | /** | |
77 | * Get | |
78 | * If set to true, this property will trigger the | |
79 | * creation of repository | |
80 | * metadata which will allow the repository to be | |
81 | * used as a functional remote | |
82 | * repository. | |
83 | * | |
84 | */ | |
85 | public boolean isIncludeMetadata() | |
86 | { | |
87 | 0 | return this.includeMetadata; |
88 | } //-- boolean isIncludeMetadata() | |
89 | ||
90 | /** | |
91 | * Method removeGroupVersionAlignment | |
92 | * | |
93 | * @param groupVersionAlignment | |
94 | */ | |
95 | public void removeGroupVersionAlignment(GroupVersionAlignment groupVersionAlignment) | |
96 | { | |
97 | 0 | getGroupVersionAlignments().remove( groupVersionAlignment ); |
98 | 0 | } //-- void removeGroupVersionAlignment(GroupVersionAlignment) |
99 | ||
100 | /** | |
101 | * Set Align a group to a version or an individual artifact. | |
102 | * | |
103 | * @param groupVersionAlignments | |
104 | */ | |
105 | public void setGroupVersionAlignments(java.util.List groupVersionAlignments) | |
106 | { | |
107 | 0 | this.groupVersionAlignments = groupVersionAlignments; |
108 | 0 | } //-- void setGroupVersionAlignments(java.util.List) |
109 | ||
110 | /** | |
111 | * Set | |
112 | * If set to true, this property will trigger the | |
113 | * creation of repository | |
114 | * metadata which will allow the repository to be | |
115 | * used as a functional remote | |
116 | * repository. | |
117 | * | |
118 | * | |
119 | * @param includeMetadata | |
120 | */ | |
121 | public void setIncludeMetadata(boolean includeMetadata) | |
122 | { | |
123 | 0 | this.includeMetadata = includeMetadata; |
124 | 0 | } //-- void setIncludeMetadata(boolean) |
125 | ||
126 | /** | |
127 | * Set | |
128 | * Specifies the scope for artifacts included in | |
129 | * this repository. | |
130 | * Default scope value is "runtime". | |
131 | * | |
132 | * | |
133 | * @param scope | |
134 | */ | |
135 | public void setScope(String scope) | |
136 | { | |
137 | 0 | this.scope = scope; |
138 | 0 | } //-- void setScope(String) |
139 | ||
140 | ||
141 | 0 | private String modelEncoding = "UTF-8"; |
142 | ||
143 | public void setModelEncoding( String modelEncoding ) | |
144 | { | |
145 | 0 | this.modelEncoding = modelEncoding; |
146 | 0 | } |
147 | ||
148 | public String getModelEncoding() | |
149 | { | |
150 | 0 | return modelEncoding; |
151 | }} |