1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.xar.internal.model; |
21 |
|
|
22 |
|
|
23 |
|
@version |
24 |
|
@since |
25 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
26 |
|
public class XarModel |
27 |
|
{ |
28 |
|
public static final String PATH_PACKAGE = "package.xml"; |
29 |
|
|
30 |
|
public static final String ELEMENT_PACKAGE = "package"; |
31 |
|
|
32 |
|
public static final String ELEMENT_INFOS = "infos"; |
33 |
|
|
34 |
|
public static final String ELEMENT_INFOS_NAME = "name"; |
35 |
|
|
36 |
|
public static final String ELEMENT_INFOS_DESCRIPTION = "description"; |
37 |
|
|
38 |
|
public static final String ELEMENT_INFOS_LICENSE = "licence"; |
39 |
|
|
40 |
|
public static final String ELEMENT_INFOS_AUTHOR = "author"; |
41 |
|
|
42 |
|
public static final String ELEMENT_INFOS_VERSION = "version"; |
43 |
|
|
44 |
|
public static final String ELEMENT_INFOS_ISBACKUPPACK = "backupPack"; |
45 |
|
|
46 |
|
public static final String ELEMENT_INFOS_ISPRESERVEVERSION = "preserveVersion"; |
47 |
|
|
48 |
|
public static final String ELEMENT_INFOS_EXTENSIONID = "extensionId"; |
49 |
|
|
50 |
|
public static final String ELEMENT_FILES = "files"; |
51 |
|
|
52 |
|
public static final String ELEMENT_FILES_FILE = "file"; |
53 |
|
|
54 |
|
@Deprecated |
55 |
|
public static final String ELEMENT_FILES_FILES = ELEMENT_FILES_FILE; |
56 |
|
|
57 |
|
public static final String ATTRIBUTE_DEFAULTACTION = "defaultAction"; |
58 |
|
|
59 |
|
public static final String ATTRIBUTE_LOCALE = "language"; |
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
public final static int ACTION_NOT_DEFINED = -1; |
64 |
|
|
65 |
|
public final static int ACTION_OVERWRITE = 0; |
66 |
|
|
67 |
|
public final static int ACTION_SKIP = 1; |
68 |
|
|
69 |
|
public final static int ACTION_MERGE = 2; |
70 |
|
} |