2 * html handler adapter
\r
4 * Copyright(c) 2009 olyutorskii
\r
5 * $Id: HtmlAdapter.java 1014 2010-03-16 10:43:28Z olyutorskii $
\r
8 package jp.sourceforge.jindolf.parser;
\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
19 * インタフェース{@link HtmlHandler}の抽象アダプタクラス。
\r
20 * このクラスのメソッド自身は何もしない。
\r
22 public abstract class HtmlAdapter implements HtmlHandler{
\r
26 * @param content {@inheritDoc}
\r
27 * @throws HtmlParseException {@inheritDoc}
\r
29 public void startParse(DecodedContent content)
\r
30 throws HtmlParseException{
\r
36 * @param content {@inheritDoc}
\r
37 * @param titleRange {@inheritDoc}
\r
38 * @throws HtmlParseException {@inheritDoc}
\r
40 public void pageTitle(DecodedContent content, SeqRange titleRange)
\r
41 throws HtmlParseException{
\r
47 * @param content {@inheritDoc}
\r
48 * @param loginRange {@inheritDoc}
\r
49 * @throws HtmlParseException {@inheritDoc}
\r
51 public void loginName(DecodedContent content, SeqRange loginRange)
\r
52 throws HtmlParseException{
\r
58 * @param type {@inheritDoc}
\r
59 * @throws HtmlParseException {@inheritDoc}
\r
61 public void pageType(PageType type)
\r
62 throws HtmlParseException{
\r
68 * @param content {@inheritDoc}
\r
69 * @param villageRange {@inheritDoc}
\r
70 * @throws HtmlParseException {@inheritDoc}
\r
72 public void villageName(DecodedContent content, SeqRange villageRange)
\r
73 throws HtmlParseException{
\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
85 public void commitTime(int month, int day, int hour, int minute)
\r
86 throws HtmlParseException{
\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
98 public void periodLink(DecodedContent content,
\r
99 SeqRange anchorRange,
\r
100 PeriodType periodType, int day)
\r
101 throws HtmlParseException{
\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
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
126 * @throws HtmlParseException {@inheritDoc}
\r
128 public void endParse() throws HtmlParseException{
\r
134 * @throws HtmlParseException {@inheritDoc}
\r
136 public void startTalk() throws HtmlParseException{
\r
142 * @throws HtmlParseException {@inheritDoc}
\r
144 public void endTalk() throws HtmlParseException{
\r
150 * @param talkNo {@inheritDoc}
\r
151 * @throws HtmlParseException {@inheritDoc}
\r
153 public void talkNo(int talkNo) throws HtmlParseException{
\r
159 * @param content {@inheritDoc}
\r
160 * @param idRange {@inheritDoc}
\r
161 * @throws HtmlParseException {@inheritDoc}
\r
163 public void talkId(DecodedContent content, SeqRange idRange)
\r
164 throws HtmlParseException{
\r
170 * @param content {@inheritDoc}
\r
171 * @param avatarRange {@inheritDoc}
\r
172 * @throws HtmlParseException {@inheritDoc}
\r
174 public void talkAvatar(DecodedContent content, SeqRange avatarRange)
\r
175 throws HtmlParseException{
\r
181 * @param hour {@inheritDoc}
\r
182 * @param minute {@inheritDoc}
\r
183 * @throws HtmlParseException {@inheritDoc}
\r
185 public void talkTime(int hour, int minute) throws HtmlParseException{
\r
191 * @param content {@inheritDoc}
\r
192 * @param urlRange {@inheritDoc}
\r
193 * @throws HtmlParseException {@inheritDoc}
\r
195 public void talkIconUrl(DecodedContent content, SeqRange urlRange)
\r
196 throws HtmlParseException{
\r
202 * @param type {@inheritDoc}
\r
203 * @throws HtmlParseException {@inheritDoc}
\r
205 public void talkType(TalkType type) throws HtmlParseException{
\r
211 * @param content {@inheritDoc}
\r
212 * @param textRange {@inheritDoc}
\r
213 * @throws HtmlParseException {@inheritDoc}
\r
215 public void talkText(DecodedContent content, SeqRange textRange)
\r
216 throws HtmlParseException{
\r
222 * @throws HtmlParseException {@inheritDoc}
\r
224 public void talkBreak() throws HtmlParseException{
\r
230 * @param eventFamily {@inheritDoc}
\r
231 * @throws HtmlParseException {@inheritDoc}
\r
233 public void startSysEvent(EventFamily eventFamily)
\r
234 throws HtmlParseException{
\r
240 * @param type {@inheritDoc}
\r
241 * @throws HtmlParseException {@inheritDoc}
\r
243 public void sysEventType(SysEventType type) throws HtmlParseException{
\r
249 * @throws HtmlParseException {@inheritDoc}
\r
251 public void endSysEvent() throws HtmlParseException{
\r
257 * @param content {@inheritDoc}
\r
258 * @param entryNo {@inheritDoc}
\r
259 * @param avatarRange {@inheritDoc}
\r
260 * @throws HtmlParseException {@inheritDoc}
\r
262 public void sysEventOnStage(DecodedContent content,
\r
264 SeqRange avatarRange )
\r
265 throws HtmlParseException{
\r
271 * @param role {@inheritDoc}
\r
272 * @param num {@inheritDoc}
\r
273 * @throws HtmlParseException {@inheritDoc}
\r
275 public void sysEventOpenRole(GameRole role, int num)
\r
276 throws HtmlParseException{
\r
282 * @param content {@inheritDoc}
\r
283 * @param avatarRange {@inheritDoc}
\r
284 * @throws HtmlParseException {@inheritDoc}
\r
286 public void sysEventSurvivor(DecodedContent content,
\r
287 SeqRange avatarRange)
\r
288 throws HtmlParseException{
\r
294 * @param content {@inheritDoc}
\r
295 * @param voteByRange {@inheritDoc}
\r
296 * @param voteToRange {@inheritDoc}
\r
297 * @throws HtmlParseException {@inheritDoc}
\r
299 public void sysEventCounting(DecodedContent content,
\r
300 SeqRange voteByRange,
\r
301 SeqRange voteToRange )
\r
302 throws HtmlParseException{
\r
308 * @param content {@inheritDoc}
\r
309 * @param voteByRange {@inheritDoc}
\r
310 * @param voteToRange {@inheritDoc}
\r
311 * @throws HtmlParseException {@inheritDoc}
\r
313 public void sysEventCounting2(DecodedContent content,
\r
314 SeqRange voteByRange,
\r
315 SeqRange voteToRange )
\r
316 throws HtmlParseException{
\r
322 * @param content {@inheritDoc}
\r
323 * @param avatarRange {@inheritDoc}
\r
324 * @throws HtmlParseException {@inheritDoc}
\r
326 public void sysEventSuddenDeath(DecodedContent content,
\r
327 SeqRange avatarRange )
\r
328 throws HtmlParseException{
\r
334 * @param content {@inheritDoc}
\r
335 * @param avatarRange {@inheritDoc}
\r
336 * @throws HtmlParseException {@inheritDoc}
\r
338 public void sysEventMurdered(DecodedContent content,
\r
339 SeqRange avatarRange )
\r
340 throws HtmlParseException{
\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
354 public void sysEventPlayerList(DecodedContent content,
\r
355 SeqRange avatarRange,
\r
356 SeqRange anchorRange,
\r
357 SeqRange loginRange,
\r
360 throws HtmlParseException{
\r
366 * @param content {@inheritDoc}
\r
367 * @param avatarRange {@inheritDoc}
\r
368 * @param votes {@inheritDoc}
\r
369 * @throws HtmlParseException {@inheritDoc}
\r
371 public void sysEventExecution(DecodedContent content,
\r
372 SeqRange avatarRange,
\r
374 throws HtmlParseException{
\r
380 * @param content {@inheritDoc}
\r
381 * @param avatarRange {@inheritDoc}
\r
382 * @throws HtmlParseException {@inheritDoc}
\r
384 public void sysEventVanish(DecodedContent content,
\r
385 SeqRange avatarRange )
\r
386 throws HtmlParseException{
\r
392 * @param content {@inheritDoc}
\r
393 * @param judgeByRange {@inheritDoc}
\r
394 * @param judgeToRange {@inheritDoc}
\r
395 * @throws HtmlParseException {@inheritDoc}
\r
397 public void sysEventJudge(DecodedContent content,
\r
398 SeqRange judgeByRange,
\r
399 SeqRange judgeToRange )
\r
400 throws HtmlParseException{
\r
406 * @param content {@inheritDoc}
\r
407 * @param guardByRange {@inheritDoc}
\r
408 * @param guardToRange {@inheritDoc}
\r
409 * @throws HtmlParseException {@inheritDoc}
\r
411 public void sysEventGuard(DecodedContent content,
\r
412 SeqRange guardByRange,
\r
413 SeqRange guardToRange )
\r
414 throws HtmlParseException{
\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
426 public void sysEventAskEntry(int hour, int minute,
\r
427 int minLimit, int maxLimit)
\r
428 throws HtmlParseException{
\r
434 * @param hour {@inheritDoc}
\r
435 * @param minute {@inheritDoc}
\r
436 * @throws HtmlParseException {@inheritDoc}
\r
438 public void sysEventAskCommit(int hour, int minute)
\r
439 throws HtmlParseException{
\r
445 * @param content {@inheritDoc}
\r
446 * @param avatarRange {@inheritDoc}
\r
447 * @throws HtmlParseException {@inheritDoc}
\r
449 public void sysEventNoComment(DecodedContent content,
\r
450 SeqRange avatarRange )
\r
451 throws HtmlParseException{
\r
457 * @param winner {@inheritDoc}
\r
458 * @param hour {@inheritDoc}
\r
459 * @param minute {@inheritDoc}
\r
460 * @throws HtmlParseException {@inheritDoc}
\r
462 public void sysEventStayEpilogue(Team winner, int hour, int minute)
\r
463 throws HtmlParseException{
\r
469 * @param content {@inheritDoc}
\r
470 * @param contentRange {@inheritDoc}
\r
471 * @throws HtmlParseException {@inheritDoc}
\r
473 public void sysEventContent(DecodedContent content,
\r
474 SeqRange contentRange )
\r
475 throws HtmlParseException{
\r
481 * @throws HtmlParseException {@inheritDoc}
\r
483 public void sysEventContentBreak() throws HtmlParseException{
\r
489 * @param content {@inheritDoc}
\r
490 * @param anchorRange {@inheritDoc}
\r
491 * @param contentRange {@inheritDoc}
\r
492 * @throws HtmlParseException {@inheritDoc}
\r
494 public void sysEventContentAnchor(DecodedContent content,
\r
495 SeqRange anchorRange,
\r
496 SeqRange contentRange )
\r
497 throws HtmlParseException{
\r