1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.filter.xar.output; |
21 |
|
|
22 |
|
import org.xwiki.filter.xml.output.XMLOutputProperties; |
23 |
|
import org.xwiki.properties.annotation.PropertyDescription; |
24 |
|
import org.xwiki.properties.annotation.PropertyName; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@version |
30 |
|
@since |
31 |
|
|
|
|
| 72.2% |
Uncovered Elements: 10 (36) |
Complexity: 18 |
Complexity Density: 1 |
|
32 |
|
public class XAROutputProperties extends XMLOutputProperties |
33 |
|
{ |
34 |
|
|
35 |
|
@see |
36 |
|
|
37 |
|
private boolean preserveVersion = true; |
38 |
|
|
39 |
|
|
40 |
|
@see |
41 |
|
|
42 |
|
private boolean forceDocument; |
43 |
|
|
44 |
|
|
45 |
|
@see |
46 |
|
|
47 |
|
private String packageName; |
48 |
|
|
49 |
|
|
50 |
|
@see |
51 |
|
|
52 |
|
private String packageDescription; |
53 |
|
|
54 |
|
|
55 |
|
@see |
56 |
|
|
57 |
|
private String packageLicense; |
58 |
|
|
59 |
|
|
60 |
|
@see |
61 |
|
|
62 |
|
private String packageAuthor; |
63 |
|
|
64 |
|
|
65 |
|
@see |
66 |
|
|
67 |
|
private String packageVersion; |
68 |
|
|
69 |
|
|
70 |
|
@see |
71 |
|
|
72 |
|
private boolean packageBackupPack; |
73 |
|
|
74 |
|
|
75 |
|
@see |
76 |
|
|
77 |
|
private String packageExtensionId; |
78 |
|
|
79 |
|
|
80 |
|
@return |
81 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
82 |
6487 |
@PropertyName("Preserve revisions informations")... |
83 |
|
@PropertyDescription("Indicate if all revisions related informations should be serialized") |
84 |
|
public boolean isPreserveVersion() |
85 |
|
{ |
86 |
6487 |
return this.preserveVersion; |
87 |
|
} |
88 |
|
|
89 |
|
|
90 |
|
@param |
91 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
6333 |
public void setPreserveVersion(boolean preserveVersion)... |
93 |
|
{ |
94 |
6333 |
this.preserveVersion = preserveVersion; |
95 |
|
} |
96 |
|
|
97 |
|
|
98 |
|
@return |
99 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
6462 |
@PropertyName("Force document")... |
101 |
|
@PropertyDescription("Force serializing a unique document XML instead of a XAR package") |
102 |
|
public boolean isForceDocument() |
103 |
|
{ |
104 |
6462 |
return this.forceDocument; |
105 |
|
} |
106 |
|
|
107 |
|
|
108 |
|
@param |
109 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
110 |
7593 |
public void setForceDocument(boolean forceDocument)... |
111 |
|
{ |
112 |
7593 |
this.forceDocument = forceDocument; |
113 |
|
} |
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
@return |
119 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
120 |
119 |
@PropertyName("Package Name")... |
121 |
|
@PropertyDescription("The name to put in package.xml") |
122 |
|
public String getPackageName() |
123 |
|
{ |
124 |
119 |
return this.packageName; |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
|
@param |
129 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
1 |
public void setPackageName(String packageName)... |
131 |
|
{ |
132 |
1 |
this.packageName = packageName; |
133 |
|
} |
134 |
|
|
135 |
|
|
136 |
|
@return |
137 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
138 |
119 |
@PropertyName("Package description")... |
139 |
|
@PropertyDescription("The description to put in package.xml") |
140 |
|
public String getPackageDescription() |
141 |
|
{ |
142 |
119 |
return this.packageDescription; |
143 |
|
} |
144 |
|
|
145 |
|
|
146 |
|
@param |
147 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
148 |
0 |
public void setPackageDescription(String packageDescription)... |
149 |
|
{ |
150 |
0 |
this.packageDescription = packageDescription; |
151 |
|
} |
152 |
|
|
153 |
|
|
154 |
|
@return |
155 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
156 |
119 |
@PropertyName("Package license")... |
157 |
|
@PropertyDescription("The licence to put in package.xml") |
158 |
|
public String getPackageLicense() |
159 |
|
{ |
160 |
119 |
return this.packageLicense; |
161 |
|
} |
162 |
|
|
163 |
|
|
164 |
|
@param |
165 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
166 |
0 |
public void setPackageLicense(String packageLicense)... |
167 |
|
{ |
168 |
0 |
this.packageLicense = packageLicense; |
169 |
|
} |
170 |
|
|
171 |
|
|
172 |
|
@return |
173 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
174 |
119 |
@PropertyName("Package author")... |
175 |
|
@PropertyDescription("The author to put in package.xml") |
176 |
|
public String getPackageAuthor() |
177 |
|
{ |
178 |
119 |
return this.packageAuthor; |
179 |
|
} |
180 |
|
|
181 |
|
|
182 |
|
@param |
183 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
184 |
0 |
public void setPackageAuthor(String packageAuthor)... |
185 |
|
{ |
186 |
0 |
this.packageAuthor = packageAuthor; |
187 |
|
} |
188 |
|
|
189 |
|
|
190 |
|
@return |
191 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
192 |
119 |
@PropertyName("Package version")... |
193 |
|
@PropertyDescription("The version to put in package.xml") |
194 |
|
public String getPackageVersion() |
195 |
|
{ |
196 |
119 |
return this.packageVersion; |
197 |
|
} |
198 |
|
|
199 |
|
|
200 |
|
@param |
201 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
202 |
0 |
public void setPackageVersion(String packageVersion)... |
203 |
|
{ |
204 |
0 |
this.packageVersion = packageVersion; |
205 |
|
} |
206 |
|
|
207 |
|
|
208 |
|
@return |
209 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
210 |
119 |
@PropertyName("Package backuppack")... |
211 |
|
@PropertyDescription("Indicate in package.xml if the XAR is a backup pack") |
212 |
|
public boolean isPackageBackupPack() |
213 |
|
{ |
214 |
119 |
return this.packageBackupPack; |
215 |
|
} |
216 |
|
|
217 |
|
|
218 |
|
@param |
219 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
220 |
1 |
public void setPackageBackupPack(boolean packageBackupPack)... |
221 |
|
{ |
222 |
1 |
this.packageBackupPack = packageBackupPack; |
223 |
|
} |
224 |
|
|
225 |
|
|
226 |
|
@return |
227 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
228 |
119 |
@PropertyName("Extension id")... |
229 |
|
@PropertyDescription("The id of the extension the XAR contains") |
230 |
|
public String getPackageExtensionId() |
231 |
|
{ |
232 |
119 |
return this.packageExtensionId; |
233 |
|
} |
234 |
|
|
235 |
|
|
236 |
|
@param |
237 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
238 |
0 |
public void setPackageExtensionId(String packageExtensionId)... |
239 |
|
{ |
240 |
0 |
this.packageExtensionId = packageExtensionId; |
241 |
|
} |
242 |
|
} |