View Javadoc

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  		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  //	ContentHandler の実装
42  //
43  	public void startDocument()
44  	{
45  		getStageCoordinator().begin();
46  	}
47  
48  	public void endDocument()
49  	{
50  		getStageCoordinator().commit();
51  	}
52  }