org.seasar.doma.extension.gen
クラス GenerationContext

java.lang.Object
  上位を拡張 org.seasar.doma.extension.gen.GenerationContext

public class GenerationContext
extends Object

生成に関するコンテキストです。

作成者:
taedium

フィールドの概要
protected  String encoding
          エンコーディング
protected  File file
          生成するファイル
protected  Object model
          データモデル
protected  boolean overwrite
          上書きする場合true
protected  String templateName
          テンプレート名
 
コンストラクタの概要
GenerationContext(Object model, File file, String templateName, String encoding, boolean overwrite)
          インスタンスを構築します。
 
メソッドの概要
 String getEncoding()
          エンコーディングを返します。
 File getFile()
          生成するファイルを返します。
 Object getModel()
          データモデルを返します。
 String getTemplateName()
          テンプレート名を返します。
 boolean isOverwrite()
          上書きする場合true を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

model

protected final Object model
データモデル


file

protected final File file
生成するファイル


templateName

protected final String templateName
テンプレート名


encoding

protected final String encoding
エンコーディング


overwrite

protected final boolean overwrite
上書きする場合true

コンストラクタの詳細

GenerationContext

public GenerationContext(Object model,
                         File file,
                         String templateName,
                         String encoding,
                         boolean overwrite)
インスタンスを構築します。

パラメータ:
model - データモデル
file - 生成するファイル
templateName - テンプレート名
encoding - 生成するファイルのエンコーディング
overwrite - 上書きする場合true、しない場合false
メソッドの詳細

getModel

public Object getModel()
データモデルを返します。

戻り値:
データモデル

getFile

public File getFile()
生成するファイルを返します。

戻り値:
生成するファイル

getTemplateName

public String getTemplateName()
テンプレート名を返します。

戻り値:
テンプレート名

getEncoding

public String getEncoding()
エンコーディングを返します。

戻り値:
エンコーディング

isOverwrite

public boolean isOverwrite()
上書きする場合true を返します。

戻り値:
上書きする場合true


Copyright © 2009-2013 The Seasar Foundation. All Rights Reserved.