public abstract class AbstractConvertPlugin extends java.lang.Object implements ConvertPlugin
修飾子とタイプ | フィールドと説明 |
---|---|
static java.lang.Class[] |
CONSTRUCTOR_PARAMS
コンストラクタのパラメータ型を表すクラス配列
|
コンストラクタと説明 |
---|
AbstractConvertPlugin(Key nameKey,
Key typeKey,
java.util.Map info,
Resource resource)
コンストラクタ。
|
修飾子とタイプ | メソッドと説明 |
---|---|
ConvertResult |
convert(java.lang.Object source)
引数で渡されたオブジェクトに対する変換処理を実行し、
変換結果と変換エラー情報を格納した結果オブジェクトを呼出元に返す。
|
protected abstract ConvertResult |
convertLocal(java.lang.Object source)
派生クラス毎に実際の変換処理を実行する
|
protected Updatable |
createUpdatable()
無名モデルを生成して返す
|
protected Updatable |
createUpdatable(java.lang.String modelName)
指定された名前のデータモデルインスタンスを新規生成する。
|
Key |
getConverterNameKey()
コンバーター名(Key)を返す。
|
protected java.util.Map |
getConverterTypeInfo()
converter_type毎の詳細なスキーマ情報のマップを返す
|
Key |
getConverterTypeKey()
コンバータータイプ(Key)を返す。
|
protected PhenomenonType |
getPhenomenonType(java.lang.String ptypeName)
現象型情報を取得する
|
protected Resource |
getResource()
実行時カーネルリソースを取得する
|
protected Translator |
getTranslator(java.lang.String translatorName)
トランスレータを取得する。
|
protected Translator |
getTranslator(java.lang.String translatorName,
java.util.Locale locale)
トランスレータを取得する
|
public static final java.lang.Class[] CONSTRUCTOR_PARAMS
public final ConvertResult convert(java.lang.Object source) throws ConvertServiceException
convert
インタフェース内 ConvertPlugin
source
- 変換元オブジェクトConvertServiceException
- 変換失敗public final Key getConverterNameKey()
getConverterNameKey
インタフェース内 ConvertPlugin
public final Key getConverterTypeKey()
getConverterTypeKey
インタフェース内 ConvertPlugin
protected final java.util.Map getConverterTypeInfo()
protected final Resource getResource()
protected final PhenomenonType getPhenomenonType(java.lang.String ptypeName)
ptypeName
- 現象型名protected final Translator getTranslator(java.lang.String translatorName)
translatorName
- トランスレータ名protected final Translator getTranslator(java.lang.String translatorName, java.util.Locale locale)
translatorName
- トランスレータ名locale
- ロケール指定protected final Updatable createUpdatable()
protected final Updatable createUpdatable(java.lang.String modelName)
modelName
- モデル名protected abstract ConvertResult convertLocal(java.lang.Object source) throws ConvertServiceException
source
- 変換元オブジェクトConvertServiceException
- 変換処理で致命的なエラー発生(データの問題はエラー情報としてConvertResultに格納する)