1
2
3
4
5
6
7
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 super();
27 }
28
29
30 /***
31 * StageCoordinator を取得します。
32 * @return StageCoordinator
33 */
34 public StageCoordinator getStageCoordinator()
35 {
36 return getSceneContext().getSceneProcessor().getStageCoordinator();
37 }
38
39
40
41
42
43 public void startDocument()
44 {
45 getStageCoordinator().begin();
46 }
47
48 public void endDocument()
49 {
50 getStageCoordinator().commit();
51 }
52 }