|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.seasar.extension.dxo.util.SimpleExpression
変換ルールで指定された簡略式の評価可能な表現です。
簡略式の文法を以下に示します。
ConversionRuleList:
ConversionRule
ConversionRuleList , ConversionRule
ConversionRule:
DestProperty : null
DestProperty : SourcePropertyList
SourcePropertyList:
SourceProperty
SourcePropertyList . SourceProperty
SourceProperty:
Identifier
DestProperty:
Identifier
ConversionRuleを評価する際、 SourcePathList中に値がnullのプロパティが含まれていた場合は、
nullがConversionRuleの値となります。
| 入れ子クラスの概要 | |
static class |
SimpleExpression.ConversionRule
変換ルールを表現します。 |
| フィールドの概要 | |
protected java.util.LinkedList |
conversionRuleList
SimpleExpression.ConversionRuleのリスト |
| コンストラクタの概要 | |
SimpleExpression()
インスタンスを構築します。 |
|
| メソッドの概要 | |
protected void |
addDestProperty(java.lang.String destProperty)
変換先プロパティ名を追加します。 |
protected void |
addSourceProperty(java.lang.String sourceProperty)
変換元プロパティを追加します。 |
java.util.Map |
evaluate(java.lang.Object source)
式を評価した結果の Mapを返します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
protected java.util.LinkedList conversionRuleList
SimpleExpression.ConversionRuleのリスト
| コンストラクタの詳細 |
public SimpleExpression()
| メソッドの詳細 |
public java.util.Map evaluate(java.lang.Object source)
Expression の記述: Mapを返します。
Expression 内の evaluatesource - 変換元オブジェクト
Mapprotected void addDestProperty(java.lang.String destProperty)
destProperty - 変換先プロパティ名protected void addSourceProperty(java.lang.String sourceProperty)
sourceProperty - 変換元プロパティ
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||