Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
AnnotationState | 29 | 0 | - | 0 | 0 |
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 | ||
21 | package org.xwiki.annotation.maintainer; | |
22 | ||
23 | /** | |
24 | * Used to specify if an annotation target has been altered by a document modification. | |
25 | * | |
26 | * @version $Id: 9d10732eda58fea58f94d711db69df38079f9dba $ | |
27 | * @since 2.3M1 | |
28 | */ | |
29 | public enum AnnotationState | |
30 | { | |
31 | /** | |
32 | * An annotation is safe when it is valid and can be rendered on the document it has been added. | |
33 | */ | |
34 | SAFE, | |
35 | /** | |
36 | * An annotation is altered when the document on which it has been added changed and the annotation position could | |
37 | * not be correctly found on the updated document. | |
38 | */ | |
39 | ALTERED, | |
40 | /** | |
41 | * An annotation is updated if its selected text has suffered a modification and it could be detected and recovered | |
42 | * during the maintaining process. | |
43 | */ | |
44 | UPDATED | |
45 | } |