| %line | %branch | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| tsukuba_bunko.peko.scenario.stage.StageElementHandler |
|
|
| 1 | /* |
|
| 2 | * "Peko" Visual Novel System |
|
| 3 | * |
|
| 4 | * All Rights Reserved. |
|
| 5 | * Copyright (c) 1999-2003 Tsukuba Bunko. |
|
| 6 | * |
|
| 7 | * $Id: StageElementHandler.java,v 1.1 2005/07/11 12:49:19 ppoi Exp $ |
|
| 8 | */ |
|
| 9 | package tsukuba_bunko.peko.scenario.stage; |
|
| 10 | ||
| 11 | import tsukuba_bunko.peko.scenario.ElementHandler; |
|
| 12 | ||
| 13 | ||
| 14 | /** |
|
| 15 | * <samp>stage</samp> 要素の構成要素を処理する <code>ElementHandler</code> に共通の処理を提供します。 |
|
| 16 | * @author $Author: ppoi $ |
|
| 17 | * @version $Revision: 1.1 $ |
|
| 18 | */ |
|
| 19 | public abstract class StageElementHandler extends ElementHandler { |
|
| 20 | ||
| 21 | /** |
|
| 22 | * <code>StageElementHandler</code> のインスタンスを作成するためにサブクラスのコンストラクタから呼ばれます。 |
|
| 23 | */ |
|
| 24 | protected StageElementHandler() |
|
| 25 | { |
|
| 26 | 0 | super(); |
| 27 | 0 | } |
| 28 | ||
| 29 | ||
| 30 | /** |
|
| 31 | * StageCoordinator を取得します。 |
|
| 32 | * @return StageCoordinator |
|
| 33 | */ |
|
| 34 | public StageCoordinator getStageCoordinator() |
|
| 35 | { |
|
| 36 | 0 | return getSceneContext().getSceneProcessor().getStageCoordinator(); |
| 37 | } |
|
| 38 | ||
| 39 | ||
| 40 | // |
|
| 41 | // ContentHandler の実装 |
|
| 42 | // |
|
| 43 | public void startDocument() |
|
| 44 | { |
|
| 45 | 0 | getStageCoordinator().begin(); |
| 46 | 0 | } |
| 47 | ||
| 48 | public void endDocument() |
|
| 49 | { |
|
| 50 | 0 | getStageCoordinator().commit(); |
| 51 | 0 | } |
| 52 | } |
| This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |