1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.ratings; |
21 |
|
|
22 |
|
import org.xwiki.model.reference.DocumentReference; |
23 |
|
import org.xwiki.observation.event.Event; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
|
|
| 5.9% |
Uncovered Elements: 16 (17) |
Complexity: 8 |
Complexity Density: 0.89 |
|
31 |
|
public abstract class AbstractRatingEvent implements Event |
32 |
|
{ |
33 |
|
private DocumentReference documentRef; |
34 |
|
|
35 |
|
private Rating newRating; |
36 |
|
|
37 |
|
private int oldRating; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
42 |
4 |
public AbstractRatingEvent()... |
43 |
|
{ |
44 |
|
} |
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
@param |
50 |
|
@param |
51 |
|
@param |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
53 |
0 |
public AbstractRatingEvent(DocumentReference documentRef, Rating newRating, int oldRating)... |
54 |
|
{ |
55 |
0 |
this.documentRef = documentRef; |
56 |
0 |
this.newRating = newRating; |
57 |
0 |
this.oldRating = oldRating; |
58 |
|
} |
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
@return |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0 |
public DocumentReference getDocumentReference()... |
66 |
|
{ |
67 |
0 |
return documentRef; |
68 |
|
} |
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
@param |
74 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
0 |
public void setDocumentReference(DocumentReference documentRef)... |
76 |
|
{ |
77 |
0 |
this.documentRef = documentRef; |
78 |
|
} |
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
@return |
84 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
0 |
public Rating getNewRating()... |
86 |
|
{ |
87 |
0 |
return newRating; |
88 |
|
} |
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
@param |
94 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
0 |
public void setNewRating(Rating newRating)... |
96 |
|
{ |
97 |
0 |
this.newRating = newRating; |
98 |
|
} |
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
@return |
104 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
105 |
0 |
public int getOldRating()... |
106 |
|
{ |
107 |
0 |
return oldRating; |
108 |
|
} |
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
|
@param |
114 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
0 |
public void setOldRating(int oldRating)... |
116 |
|
{ |
117 |
0 |
this.oldRating = oldRating; |
118 |
|
} |
119 |
|
} |