OSDN Git Service

3a146f5d8dc1545bdb8c8d71ec0b02f0176276c3
[jindolf/JinParser.git] / src / main / java / jp / sourceforge / jindolf / parser / HtmlAdapter.java
1 /*\r
2  * html handler adapter\r
3  *\r
4  * Copyright(c) 2009 olyutorskii\r
5  * $Id: HtmlAdapter.java 1014 2010-03-16 10:43:28Z olyutorskii $\r
6  */\r
7 \r
8 package jp.sourceforge.jindolf.parser;\r
9 \r
10 import jp.sourceforge.jindolf.corelib.EventFamily;\r
11 import jp.sourceforge.jindolf.corelib.GameRole;\r
12 import jp.sourceforge.jindolf.corelib.PeriodType;\r
13 import jp.sourceforge.jindolf.corelib.SysEventType;\r
14 import jp.sourceforge.jindolf.corelib.TalkType;\r
15 import jp.sourceforge.jindolf.corelib.Team;\r
16 import jp.sourceforge.jindolf.corelib.VillageState;\r
17 \r
18 /**\r
19  * インタフェース{@link HtmlHandler}の抽象アダプタクラス。\r
20  * このクラスのメソッド自身は何もしない。\r
21  */\r
22 public abstract class HtmlAdapter implements HtmlHandler{\r
23 \r
24     /**\r
25      * {@inheritDoc}\r
26      * @param content {@inheritDoc}\r
27      * @throws HtmlParseException {@inheritDoc}\r
28      */\r
29     public void startParse(DecodedContent content)\r
30             throws HtmlParseException{\r
31         return;\r
32     }\r
33 \r
34     /**\r
35      * {@inheritDoc}\r
36      * @param content {@inheritDoc}\r
37      * @param titleRange {@inheritDoc}\r
38      * @throws HtmlParseException {@inheritDoc}\r
39      */\r
40     public void pageTitle(DecodedContent content, SeqRange titleRange)\r
41             throws HtmlParseException{\r
42         return;\r
43     }\r
44 \r
45     /**\r
46      * {@inheritDoc}\r
47      * @param content {@inheritDoc}\r
48      * @param loginRange {@inheritDoc}\r
49      * @throws HtmlParseException {@inheritDoc}\r
50      */\r
51     public void loginName(DecodedContent content, SeqRange loginRange)\r
52             throws HtmlParseException{\r
53         return;\r
54     }\r
55 \r
56     /**\r
57      * {@inheritDoc}\r
58      * @param type {@inheritDoc}\r
59      * @throws HtmlParseException {@inheritDoc}\r
60      */\r
61     public void pageType(PageType type)\r
62             throws HtmlParseException{\r
63         return;\r
64     }\r
65 \r
66     /**\r
67      * {@inheritDoc}\r
68      * @param content {@inheritDoc}\r
69      * @param villageRange {@inheritDoc}\r
70      * @throws HtmlParseException {@inheritDoc}\r
71      */\r
72     public void villageName(DecodedContent content, SeqRange villageRange)\r
73             throws HtmlParseException{\r
74         return;\r
75     }\r
76 \r
77     /**\r
78      * {@inheritDoc}\r
79      * @param month {@inheritDoc}\r
80      * @param day {@inheritDoc}\r
81      * @param hour {@inheritDoc}\r
82      * @param minute {@inheritDoc}\r
83      * @throws HtmlParseException {@inheritDoc}\r
84      */\r
85     public void commitTime(int month, int day, int hour, int minute)\r
86             throws HtmlParseException{\r
87         return;\r
88     }\r
89 \r
90     /**\r
91      * {@inheritDoc}\r
92      * @param content {@inheritDoc}\r
93      * @param anchorRange {@inheritDoc}\r
94      * @param periodType {@inheritDoc}\r
95      * @param day {@inheritDoc}\r
96      * @throws HtmlParseException {@inheritDoc}\r
97      */\r
98     public void periodLink(DecodedContent content,\r
99                             SeqRange anchorRange,\r
100                             PeriodType periodType, int day)\r
101             throws HtmlParseException{\r
102         return;\r
103     }\r
104 \r
105     /**\r
106      * {@inheritDoc}\r
107      * @param content {@inheritDoc}\r
108      * @param anchorRange {@inheritDoc}\r
109      * @param villageRange {@inheritDoc}\r
110      * @param hour {@inheritDoc}\r
111      * @param minute {@inheritDoc}\r
112      * @param state {@inheritDoc}\r
113      * @throws HtmlParseException {@inheritDoc}\r
114      */\r
115     public void villageRecord(DecodedContent content,\r
116                                 SeqRange anchorRange,\r
117                                 SeqRange villageRange,\r
118                                 int hour, int minute,\r
119                                 VillageState state )\r
120             throws HtmlParseException{\r
121         return;\r
122     }\r
123 \r
124     /**\r
125      * {@inheritDoc}\r
126      * @throws HtmlParseException {@inheritDoc}\r
127      */\r
128     public void endParse() throws HtmlParseException{\r
129         return;\r
130     }\r
131 \r
132     /**\r
133      * {@inheritDoc}\r
134      * @throws HtmlParseException {@inheritDoc}\r
135      */\r
136     public void startTalk() throws HtmlParseException{\r
137         return;\r
138     }\r
139 \r
140     /**\r
141      * {@inheritDoc}\r
142      * @throws HtmlParseException {@inheritDoc}\r
143      */\r
144     public void endTalk() throws HtmlParseException{\r
145         return;\r
146     }\r
147 \r
148     /**\r
149      * {@inheritDoc}\r
150      * @param talkNo {@inheritDoc}\r
151      * @throws HtmlParseException {@inheritDoc}\r
152      */\r
153     public void talkNo(int talkNo) throws HtmlParseException{\r
154         return;\r
155     }\r
156 \r
157     /**\r
158      * {@inheritDoc}\r
159      * @param content {@inheritDoc}\r
160      * @param idRange {@inheritDoc}\r
161      * @throws HtmlParseException {@inheritDoc}\r
162      */\r
163     public void talkId(DecodedContent content, SeqRange idRange)\r
164             throws HtmlParseException{\r
165         return;\r
166     }\r
167 \r
168     /**\r
169      * {@inheritDoc}\r
170      * @param content {@inheritDoc}\r
171      * @param avatarRange {@inheritDoc}\r
172      * @throws HtmlParseException {@inheritDoc}\r
173      */\r
174     public void talkAvatar(DecodedContent content, SeqRange avatarRange)\r
175             throws HtmlParseException{\r
176         return;\r
177     }\r
178 \r
179     /**\r
180      * {@inheritDoc}\r
181      * @param hour {@inheritDoc}\r
182      * @param minute {@inheritDoc}\r
183      * @throws HtmlParseException {@inheritDoc}\r
184      */\r
185     public void talkTime(int hour, int minute) throws HtmlParseException{\r
186         return;\r
187     }\r
188 \r
189     /**\r
190      * {@inheritDoc}\r
191      * @param content {@inheritDoc}\r
192      * @param urlRange {@inheritDoc}\r
193      * @throws HtmlParseException {@inheritDoc}\r
194      */\r
195     public void talkIconUrl(DecodedContent content, SeqRange urlRange)\r
196             throws HtmlParseException{\r
197         return;\r
198     }\r
199 \r
200     /**\r
201      * {@inheritDoc}\r
202      * @param type {@inheritDoc}\r
203      * @throws HtmlParseException {@inheritDoc}\r
204      */\r
205     public void talkType(TalkType type) throws HtmlParseException{\r
206         return;\r
207     }\r
208 \r
209     /**\r
210      * {@inheritDoc}\r
211      * @param content {@inheritDoc}\r
212      * @param textRange {@inheritDoc}\r
213      * @throws HtmlParseException {@inheritDoc}\r
214      */\r
215     public void talkText(DecodedContent content, SeqRange textRange)\r
216             throws HtmlParseException{\r
217         return;\r
218     }\r
219 \r
220     /**\r
221      * {@inheritDoc}\r
222      * @throws HtmlParseException {@inheritDoc}\r
223      */\r
224     public void talkBreak() throws HtmlParseException{\r
225         return;\r
226     }\r
227 \r
228     /**\r
229      * {@inheritDoc}\r
230      * @param eventFamily {@inheritDoc}\r
231      * @throws HtmlParseException {@inheritDoc}\r
232      */\r
233     public void startSysEvent(EventFamily eventFamily)\r
234             throws HtmlParseException{\r
235         return;\r
236     }\r
237 \r
238     /**\r
239      * {@inheritDoc}\r
240      * @param type {@inheritDoc}\r
241      * @throws HtmlParseException {@inheritDoc}\r
242      */\r
243     public void sysEventType(SysEventType type) throws HtmlParseException{\r
244         return;\r
245     }\r
246 \r
247     /**\r
248      * {@inheritDoc}\r
249      * @throws HtmlParseException {@inheritDoc}\r
250      */\r
251     public void endSysEvent() throws HtmlParseException{\r
252         return;\r
253     }\r
254 \r
255     /**\r
256      * {@inheritDoc}\r
257      * @param content {@inheritDoc}\r
258      * @param entryNo {@inheritDoc}\r
259      * @param avatarRange {@inheritDoc}\r
260      * @throws HtmlParseException {@inheritDoc}\r
261      */\r
262     public void sysEventOnStage(DecodedContent content,\r
263                                   int entryNo,\r
264                                   SeqRange avatarRange )\r
265             throws HtmlParseException{\r
266         return;\r
267     }\r
268 \r
269     /**\r
270      * {@inheritDoc}\r
271      * @param role {@inheritDoc}\r
272      * @param num {@inheritDoc}\r
273      * @throws HtmlParseException {@inheritDoc}\r
274      */\r
275     public void sysEventOpenRole(GameRole role, int num)\r
276             throws HtmlParseException{\r
277         return;\r
278     }\r
279 \r
280     /**\r
281      * {@inheritDoc}\r
282      * @param content {@inheritDoc}\r
283      * @param avatarRange {@inheritDoc}\r
284      * @throws HtmlParseException {@inheritDoc}\r
285      */\r
286     public void sysEventSurvivor(DecodedContent content,\r
287                                    SeqRange avatarRange)\r
288             throws HtmlParseException{\r
289         return;\r
290     }\r
291 \r
292     /**\r
293      * {@inheritDoc}\r
294      * @param content {@inheritDoc}\r
295      * @param voteByRange {@inheritDoc}\r
296      * @param voteToRange {@inheritDoc}\r
297      * @throws HtmlParseException {@inheritDoc}\r
298      */\r
299     public void sysEventCounting(DecodedContent content,\r
300                                    SeqRange voteByRange,\r
301                                    SeqRange voteToRange )\r
302             throws HtmlParseException{\r
303         return;\r
304     }\r
305 \r
306     /**\r
307      * {@inheritDoc}\r
308      * @param content {@inheritDoc}\r
309      * @param voteByRange {@inheritDoc}\r
310      * @param voteToRange {@inheritDoc}\r
311      * @throws HtmlParseException {@inheritDoc}\r
312      */\r
313     public void sysEventCounting2(DecodedContent content,\r
314                                     SeqRange voteByRange,\r
315                                     SeqRange voteToRange )\r
316             throws HtmlParseException{\r
317         return;\r
318     }\r
319 \r
320     /**\r
321      * {@inheritDoc}\r
322      * @param content {@inheritDoc}\r
323      * @param avatarRange {@inheritDoc}\r
324      * @throws HtmlParseException {@inheritDoc}\r
325      */\r
326     public void sysEventSuddenDeath(DecodedContent content,\r
327                                        SeqRange avatarRange )\r
328             throws HtmlParseException{\r
329         return;\r
330     }\r
331 \r
332     /**\r
333      * {@inheritDoc}\r
334      * @param content {@inheritDoc}\r
335      * @param avatarRange {@inheritDoc}\r
336      * @throws HtmlParseException {@inheritDoc}\r
337      */\r
338     public void sysEventMurdered(DecodedContent content,\r
339                                    SeqRange avatarRange )\r
340             throws HtmlParseException{\r
341         return;\r
342     }\r
343 \r
344     /**\r
345      * {@inheritDoc}\r
346      * @param content {@inheritDoc}\r
347      * @param avatarRange {@inheritDoc}\r
348      * @param anchorRange {@inheritDoc}\r
349      * @param loginRange {@inheritDoc}\r
350      * @param isLiving {@inheritDoc}\r
351      * @param role {@inheritDoc}\r
352      * @throws HtmlParseException {@inheritDoc}\r
353      */\r
354     public void sysEventPlayerList(DecodedContent content,\r
355                                      SeqRange avatarRange,\r
356                                      SeqRange anchorRange,\r
357                                      SeqRange loginRange,\r
358                                      boolean isLiving,\r
359                                      GameRole role)\r
360             throws HtmlParseException{\r
361         return;\r
362     }\r
363 \r
364     /**\r
365      * {@inheritDoc}\r
366      * @param content {@inheritDoc}\r
367      * @param avatarRange {@inheritDoc}\r
368      * @param votes {@inheritDoc}\r
369      * @throws HtmlParseException {@inheritDoc}\r
370      */\r
371     public void sysEventExecution(DecodedContent content,\r
372                                     SeqRange avatarRange,\r
373                                     int votes )\r
374             throws HtmlParseException{\r
375         return;\r
376     }\r
377 \r
378     /**\r
379      * {@inheritDoc}\r
380      * @param content {@inheritDoc}\r
381      * @param avatarRange {@inheritDoc}\r
382      * @throws HtmlParseException {@inheritDoc}\r
383      */\r
384     public void sysEventVanish(DecodedContent content,\r
385                                  SeqRange avatarRange )\r
386             throws HtmlParseException{\r
387         return;\r
388     }\r
389 \r
390     /**\r
391      * {@inheritDoc}\r
392      * @param content {@inheritDoc}\r
393      * @param judgeByRange {@inheritDoc}\r
394      * @param judgeToRange {@inheritDoc}\r
395      * @throws HtmlParseException {@inheritDoc}\r
396      */\r
397     public void sysEventJudge(DecodedContent content,\r
398                                 SeqRange judgeByRange,\r
399                                 SeqRange judgeToRange )\r
400             throws HtmlParseException{\r
401         return;\r
402     }\r
403 \r
404     /**\r
405      * {@inheritDoc}\r
406      * @param content {@inheritDoc}\r
407      * @param guardByRange {@inheritDoc}\r
408      * @param guardToRange {@inheritDoc}\r
409      * @throws HtmlParseException {@inheritDoc}\r
410      */\r
411     public void sysEventGuard(DecodedContent content,\r
412                                 SeqRange guardByRange,\r
413                                 SeqRange guardToRange )\r
414             throws HtmlParseException{\r
415         return;\r
416     }\r
417 \r
418     /**\r
419      * {@inheritDoc}\r
420      * @param hour {@inheritDoc}\r
421      * @param minute {@inheritDoc}\r
422      * @param minLimit {@inheritDoc}\r
423      * @param maxLimit {@inheritDoc}\r
424      * @throws HtmlParseException {@inheritDoc}\r
425      */\r
426     public void sysEventAskEntry(int hour, int minute,\r
427                                    int minLimit, int maxLimit)\r
428             throws HtmlParseException{\r
429         return;\r
430     }\r
431 \r
432     /**\r
433      * {@inheritDoc}\r
434      * @param hour {@inheritDoc}\r
435      * @param minute {@inheritDoc}\r
436      * @throws HtmlParseException {@inheritDoc}\r
437      */\r
438     public void sysEventAskCommit(int hour, int minute)\r
439             throws HtmlParseException{\r
440         return;\r
441     }\r
442 \r
443     /**\r
444      * {@inheritDoc}\r
445      * @param content {@inheritDoc}\r
446      * @param avatarRange {@inheritDoc}\r
447      * @throws HtmlParseException {@inheritDoc}\r
448      */\r
449     public void sysEventNoComment(DecodedContent content,\r
450                                     SeqRange avatarRange )\r
451             throws HtmlParseException{\r
452         return;\r
453     }\r
454 \r
455     /**\r
456      * {@inheritDoc}\r
457      * @param winner {@inheritDoc}\r
458      * @param hour {@inheritDoc}\r
459      * @param minute {@inheritDoc}\r
460      * @throws HtmlParseException {@inheritDoc}\r
461      */\r
462     public void sysEventStayEpilogue(Team winner, int hour, int minute)\r
463             throws HtmlParseException{\r
464         return;\r
465     }\r
466 \r
467     /**\r
468      * {@inheritDoc}\r
469      * @param content {@inheritDoc}\r
470      * @param contentRange {@inheritDoc}\r
471      * @throws HtmlParseException {@inheritDoc}\r
472      */\r
473     public void sysEventContent(DecodedContent content,\r
474                                   SeqRange contentRange )\r
475             throws HtmlParseException{\r
476         return;\r
477     }\r
478 \r
479     /**\r
480      * {@inheritDoc}\r
481      * @throws HtmlParseException {@inheritDoc}\r
482      */\r
483     public void sysEventContentBreak() throws HtmlParseException{\r
484         return;\r
485     }\r
486 \r
487     /**\r
488      * {@inheritDoc}\r
489      * @param content {@inheritDoc}\r
490      * @param anchorRange {@inheritDoc}\r
491      * @param contentRange {@inheritDoc}\r
492      * @throws HtmlParseException {@inheritDoc}\r
493      */\r
494     public void sysEventContentAnchor(DecodedContent content,\r
495                                          SeqRange anchorRange,\r
496                                          SeqRange contentRange )\r
497             throws HtmlParseException{\r
498         return;\r
499     }\r
500 \r
501 }\r