intra-mart(R) 6.0.13

jp.co.intra_mart.foundation.datastore.common.model
クラス GenericTerminableInternationalModelMap

java.lang.Object
  拡張jp.co.intra_mart.foundation.datastore.common.model.GenericTerminableInternationalModelMap
すべての実装インタフェース:
Serializable, TerminableInternationalModelMap

public abstract class GenericTerminableInternationalModelMap
extends Object
implements TerminableInternationalModelMap

期間国際化モデルマッピングの汎用的な抽象クラスです。

導入されたバージョン:
5.0
関連項目:
直列化された形式

コンストラクタの概要
GenericTerminableInternationalModelMap()
           
 
メソッドの概要
 TerminableInternationalModel createTerminableInternationalModel(Locale locale)
          期間国際化モデルを生成します。
 boolean exists(Locale locale)
          指定された言語に該当する期間国際化モデルが存在するかどうか判定します。
 TerminableInternationalModel findTerminableInternationalModel(Locale locale)
          指定された言語に該当する期間国際化モデルを取得します。
 Locale[] getLocales()
          マッピングされている国際化モデル InternationalModel の言語 Locale の一覧を取得します。
 void init(String modelName, TerminableInternationalAccessorMap accessorMap)
          初期化処理を行います。
 TerminableInternationalModel newTerminableInternationalModel(Locale locale)
          初期化されていない期間国際化モデルのインスタンスを取得します。
 void remove(Locale locale)
          指定された言語に該当するデータを削除します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

GenericTerminableInternationalModelMap

public GenericTerminableInternationalModelMap()
メソッドの詳細

init

public void init(String modelName,
                 TerminableInternationalAccessorMap accessorMap)
初期化処理を行います。

パラメータ:
modelName - 期間国際化モデルのクラス名
accessorMap - 期間国際化アクセサマップ

createTerminableInternationalModel

public TerminableInternationalModel createTerminableInternationalModel(Locale locale)
                                                                throws AccessorException
期間国際化モデルを生成します。 引数で指定された言語に該当する既存の情報は新しい情報で上書きされます。 システムで取り扱う言語のみが対象となります。

定義:
インタフェース TerminableInternationalModelMap 内の createTerminableInternationalModel
パラメータ:
locale - 言語
戻り値:
期間国際化モデル
例外:
AccessorException - システムで使用することができない言語が指定された場合

exists

public boolean exists(Locale locale)
指定された言語に該当する期間国際化モデルが存在するかどうか判定します。

定義:
インタフェース TerminableInternationalModelMap 内の exists
パラメータ:
locale - 言語
戻り値:
対象となる期間国際化モデルが存在する場合 true、それ以外は false

findTerminableInternationalModel

public TerminableInternationalModel findTerminableInternationalModel(Locale locale)
                                                              throws IllegalLocaleException
指定された言語に該当する期間国際化モデルを取得します。 引数 locale で指定された言語に該当する TerminableInternationalModelを取得します。該当するものが存在しない場合、 null が返されます。

定義:
インタフェース TerminableInternationalModelMap 内の findTerminableInternationalModel
パラメータ:
locale - 対象となる言語
戻り値:
対象となる期間国際化モデル(存在しない場合は null
例外:
IllegalLocaleException - 対象の言語が見つからない場合

remove

public void remove(Locale locale)
            throws AccessorException
指定された言語に該当するデータを削除します。

定義:
インタフェース TerminableInternationalModelMap 内の remove
パラメータ:
locale - 削除対象の言語
例外:
AccessorException - アクセサで例外が発生した場合

newTerminableInternationalModel

public TerminableInternationalModel newTerminableInternationalModel(Locale locale)
                                                             throws IllegalLocaleException
初期化されていない期間国際化モデルのインスタンスを取得します。 このメソッドはシステム内で使用されます。明示的に使用しないでください。

パラメータ:
locale - 言語
戻り値:
期間国際化モデルのインスタンス
例外:
IllegalLocaleException - 言語に関する例外が発生した場合

getLocales

public Locale[] getLocales()
マッピングされている国際化モデル InternationalModel の言語 Locale の一覧を取得します。

定義:
インタフェース TerminableInternationalModelMap 内の getLocales
戻り値:
言語の一覧

intra-mart(R) 6.0.13

Copyright © 2000-2009 NTT DATA INTRAMART CO.,LTD.. All Rights Reserved.