| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
package com.xpn.xwiki.plugin.jodatime; |
| 22 |
|
|
| 23 |
|
import org.joda.time.DateTime; |
| 24 |
|
import org.joda.time.DateTimeZone; |
| 25 |
|
import org.joda.time.Duration; |
| 26 |
|
import org.joda.time.MutableDateTime; |
| 27 |
|
import org.joda.time.ReadableInstant; |
| 28 |
|
import org.joda.time.format.DateTimeFormatter; |
| 29 |
|
|
| 30 |
|
import com.xpn.xwiki.XWikiContext; |
| 31 |
|
import com.xpn.xwiki.plugin.PluginApi; |
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| |
|
| 0% |
Uncovered Elements: 34 (34) |
Complexity: 17 |
Complexity Density: 1 |
|
| 36 |
|
public class JodaTimePluginApi extends PluginApi<JodaTimePlugin> |
| 37 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 38 |
0 |
public JodaTimePluginApi(JodaTimePlugin plugin, XWikiContext context)... |
| 39 |
|
{ |
| 40 |
0 |
super(plugin, context); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
|
| 44 |
|
@see |
| 45 |
|
@see |
| 46 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 47 |
0 |
public DateTime getDateTime()... |
| 48 |
|
{ |
| 49 |
0 |
return getProtectedPlugin().getDateTime(); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
|
| 53 |
|
@see |
| 54 |
|
@see |
| 55 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 56 |
0 |
public DateTime getDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour,... |
| 57 |
|
int secondOfMinute, int millisOfSecond) |
| 58 |
|
{ |
| 59 |
0 |
return getProtectedPlugin().getDateTime(year, monthOfYear, dayOfMonth, hourOfDay, minuteOfHour, secondOfMinute, |
| 60 |
|
millisOfSecond); |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
|
| 64 |
|
@see |
| 65 |
|
@see |
| 66 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 67 |
0 |
public DateTime getDateTime(long instant)... |
| 68 |
|
{ |
| 69 |
0 |
return getProtectedPlugin().getDateTime(instant); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
|
| 73 |
|
@see |
| 74 |
|
@see |
| 75 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 76 |
0 |
public MutableDateTime getMutableDateTime()... |
| 77 |
|
{ |
| 78 |
0 |
return getProtectedPlugin().getMutableDateTime(); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
|
| 82 |
|
@see |
| 83 |
|
@see |
| 84 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 85 |
0 |
public MutableDateTime getMutableDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay,... |
| 86 |
|
int minuteOfHour, int secondOfMinute, int millisOfSecond) |
| 87 |
|
{ |
| 88 |
0 |
return getProtectedPlugin().getMutableDateTime(year, monthOfYear, dayOfMonth, hourOfDay, minuteOfHour, |
| 89 |
|
secondOfMinute, millisOfSecond); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
|
| 93 |
|
@see |
| 94 |
|
@see |
| 95 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 96 |
0 |
public MutableDateTime getMutableDateTime(long instant)... |
| 97 |
|
{ |
| 98 |
0 |
return getProtectedPlugin().getMutableDateTime(instant); |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
|
| 102 |
|
@see |
| 103 |
|
@see |
| 104 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 105 |
0 |
public DateTimeFormatter getDateTimeFormatterForPattern(String pattern)... |
| 106 |
|
{ |
| 107 |
0 |
return getProtectedPlugin().getDateTimeFormatterForPattern(pattern, getXWikiContext()); |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
|
| 111 |
|
@see |
| 112 |
|
@see |
| 113 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 114 |
0 |
public DateTimeFormatter getDateTimeFormatterForStyle(String style)... |
| 115 |
|
{ |
| 116 |
0 |
return getProtectedPlugin().getDateTimeFormatterForStyle(style, getXWikiContext()); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
|
| 120 |
|
@see |
| 121 |
|
@see |
| 122 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 123 |
0 |
public DateTimeZone getServerTimezone()... |
| 124 |
|
{ |
| 125 |
0 |
return getProtectedPlugin().getServerTimezone(); |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
|
| 129 |
|
@see |
| 130 |
|
@see |
| 131 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 132 |
0 |
public DateTimeZone getUTCTimezone()... |
| 133 |
|
{ |
| 134 |
0 |
return getProtectedPlugin().getUTCTimezone(); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
|
| 138 |
|
@see |
| 139 |
|
@see |
| 140 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 141 |
0 |
public DateTimeZone getTimezone(String locationOrOffset)... |
| 142 |
|
{ |
| 143 |
0 |
return getProtectedPlugin().getTimezone(locationOrOffset); |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
|
| 147 |
|
@see |
| 148 |
|
@see |
| 149 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 150 |
0 |
public DateTimeZone getTimezone(int offsetHours)... |
| 151 |
|
{ |
| 152 |
0 |
return getProtectedPlugin().getTimezone(offsetHours); |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
|
| 156 |
|
@see |
| 157 |
|
@see |
| 158 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 159 |
0 |
public DateTimeZone getTimezone(int offsetHours, int offsetMinutes)... |
| 160 |
|
{ |
| 161 |
0 |
return getProtectedPlugin().getTimezone(offsetHours, offsetMinutes); |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
|
| 165 |
|
@see |
| 166 |
|
@see |
| 167 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 168 |
0 |
public Duration getDuration(long millis)... |
| 169 |
|
{ |
| 170 |
0 |
return getProtectedPlugin().getDuration(millis); |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
|
| 174 |
|
@see |
| 175 |
|
@see |
| 176 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 177 |
0 |
public Duration getDuration(ReadableInstant from, ReadableInstant to)... |
| 178 |
|
{ |
| 179 |
0 |
return getProtectedPlugin().getDuration(from, to); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
|
| 183 |
|
@return |
| 184 |
|
@since |
| 185 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 186 |
0 |
public DateTimeFormatter getISODateTimeFormatter()... |
| 187 |
|
{ |
| 188 |
0 |
return getProtectedPlugin().getISODateTimeFormatter(); |
| 189 |
|
} |
| 190 |
|
} |