OSDN Git Service

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