1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.xar.internal.model

File XarDocumentModel.java

 

Code metrics

0
0
0
1
139
39
0
-
-
0
-

Classes

Class Line # Actions
XarDocumentModel 26 0 - 0 0
-1.0 -
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.xar.internal.model;
21   
22    /**
23    * @version $Id: e82e399fea941eb92115d82c0f77685918ba92f0 $
24    * @since 5.4M1
25    */
 
26    public class XarDocumentModel
27    {
28    /**
29    * Never really used. It's supposedly what an old format would have used.
30    */
31    public static final String VERSION_10 = "1.0";
32   
33    /**
34    * Not real change, it only change the order of things.
35    */
36    public static final String VERSION_11 = "1.1";
37   
38    /**
39    * Add support for nested spaces (see {@link #ATTRIBUTE_DOCUMENT_REFERENCE}).
40    */
41    public static final String VERSION_12 = "1.2";
42   
43    /**
44    * Use XML 1.1.
45    *
46    * @since 9.0RC1
47    */
48    public static final String VERSION_13 = "1.3";
49   
50    /**
51    * The current version.
52    *
53    * @since 9.0RC1
54    */
55    public static final String VERSION_CURRENT = VERSION_13;
56   
57    public static final String ELEMENT_DOCUMENT = "xwikidoc";
58   
59    /**
60    * Contains the version of the specification.
61    *
62    * @since 7.2M1
63    */
64    public static final String ATTRIBUTE_DOCUMENT_SPECVERSION = "version";
65   
66    /**
67    * Contains the complete reference of the document.
68    *
69    * @since 7.2M1
70    */
71    public static final String ATTRIBUTE_DOCUMENT_REFERENCE = "reference";
72   
73    /**
74    * Contains the locale of the document.
75    *
76    * @since 7.2M1
77    */
78    public static final String ATTRIBUTE_DOCUMENT_LOCALE = "locale";
79   
80    /**
81    * @deprecated starting with 7.2M1, use {@link #ATTRIBUTE_DOCUMENT_SPECVERSION} instead
82    */
83    @Deprecated
84    public static final String ATTRIBUTE_STREAMVERSION = ATTRIBUTE_DOCUMENT_SPECVERSION;
85   
86    public static final String ELEMENT_SPACE = "web";
87   
88    public static final String ELEMENT_NAME = "name";
89   
90    public static final String ELEMENT_LOCALE = "language";
91   
92    public static final String ELEMENT_DEFAULTLOCALE = "defaultLanguage";
93   
94    public static final String ELEMENT_ISTRANSLATION = "translation";
95   
96    public static final String ELEMENT_PARENT = "parent";
97   
98    public static final String ELEMENT_TITLE = "title";
99   
100    public static final String ELEMENT_HIDDEN = "hidden";
101   
102    public static final String ELEMENT_CUSTOMCLASS = "customClass";
103   
104    public static final String ELEMENT_DEFAULTTEMPLATE = "defaultTemplate";
105   
106    public static final String ELEMENT_VALIDATIONSCRIPT = "validationScript";
107   
108    public static final String ELEMENT_SYNTAX = "syntaxId";
109   
110    // content
111   
112    public static final String ELEMENT_CONTENT = "content";
113   
114    public static final String ELEMENT_CONTENT_AUTHOR = "contentAuthor";
115   
116    public static final String ELEMENT_CONTENT_DATE = "contentUpdateDate";
117   
118    public static final String ELEMENT_CONTENT_HTML = "renderedcontent";
119   
120    // creation
121   
122    public static final String ELEMENT_CREATION_AUTHOR = "creator";
123   
124    public static final String ELEMENT_CREATION_DATE = "creationDate";
125   
126    // revision
127   
128    public static final String ELEMENT_REVISION_DATE = "date";
129   
130    public static final String ELEMENT_REVISION = "version";
131   
132    public static final String ELEMENT_REVISION_AUTHOR = "author";
133   
134    public static final String ELEMENT_REVISION_COMMENT = "comment";
135   
136    public static final String ELEMENT_REVISION_MINOR = "minorEdit";
137   
138    public static final String ELEMENT_REVISIONS = "versions";
139    }