woolpack.el
クラス MapSimilarPropertyELFactory

java.lang.Object
  上位を拡張 woolpack.el.MapPropertyELFactory
      上位を拡張 woolpack.el.MapSimilarPropertyELFactory
すべての実装されたインタフェース:
PropertyELFactory

public class MapSimilarPropertyELFactory
extends MapPropertyELFactory

newGetter(Class, String)で 元のプロパティ名から類推したプロパティ名の候補を試行する MapPropertyELFactoryです。
適用しているデザインパターン:Iteratorを使用してプロパティ名の候補を順に取得する。


コンストラクタの概要
MapSimilarPropertyELFactory(Fn<ConvertContext,Void,? extends RuntimeException> fn, PropertyELFactory factory, Fn<String,Iterable<String>,? extends RuntimeException> guessFactory)
           
 
メソッドの概要
 Fn<String,Iterable<String>,? extends RuntimeException> getGuessFactory()
           
 GettingEL newGetter(Class clazz, String propertyName)
          対象クラスの対象プロパティ名の値を取得するための式言語を返します。
 void setGuessFactory(Fn<String,Iterable<String>,? extends RuntimeException> guessFactory)
           
 
クラス woolpack.el.MapPropertyELFactory から継承されたメソッド
getFactory, getFn, newSetter, setFactory, setFn
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

MapSimilarPropertyELFactory

public MapSimilarPropertyELFactory(Fn<ConvertContext,Void,? extends RuntimeException> fn,
                                   PropertyELFactory factory,
                                   Fn<String,Iterable<String>,? extends RuntimeException> guessFactory)
パラメータ:
fn - 型を変換する関数。
factory - 型がMapでない場合の委譲先。
guessFactory - 属性名に対応するプロパティ名の候補を列挙するIterableのファクトリ。
メソッドの詳細

newGetter

public GettingEL newGetter(Class clazz,
                           String propertyName)
インタフェース PropertyELFactory の記述:
対象クラスの対象プロパティ名の値を取得するための式言語を返します。

定義:
インタフェース PropertyELFactory 内の newGetter
オーバーライド:
クラス MapPropertyELFactory 内の newGetter
パラメータ:
clazz - 対象クラス。
propertyName - プロパティ名。
戻り値:
対象クラスのプロパティの値を取得する式言語。

getGuessFactory

public Fn<String,Iterable<String>,? extends RuntimeException> getGuessFactory()

setGuessFactory

public void setGuessFactory(Fn<String,Iterable<String>,? extends RuntimeException> guessFactory)


Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.