|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.fiverworks.xone.ut.MatchUt
エレメントの条件式関連のユーティリティクラスです。
フィールドの概要 | |
static String |
DELIMITER
式の中で区切りとして使われる文字列です。 |
static String |
ELEMENT_NAME_PREFIX
エレメント名の接頭辞として使われる文字列です。 |
メソッドの概要 | |
static boolean |
evaluateCondition(XoneObject xo,
String elementCondition)
指定されたオブジェクトを指定されたエレメントの条件式で評価します。 |
static String |
getCondition(XoneObject xo,
String elementCondition)
指定されたエレメントの条件式を、指定されたオブジェクトの値に置き換えた条件式を取得します。 |
static boolean |
isMatch(XoneObject xo,
String elementCondition)
指定されたオブジェクトが指定されたエレメントの条件式にマッチするかどうか調べます。 |
static XoneObject[] |
select(Collection xos,
String elementCondition)
指定されたオブジェクトのコレクションの中で、指定されたエレメントの条件式にマッチするオブジェクトの配列を返します。 |
static XoneObject[] |
select(XoneObject[] xos,
String elementCondition)
指定されたオブジェクト配列の中で、指定されたエレメントの条件式にマッチするオブジェクトの配列を返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static String DELIMITER
public static final String ELEMENT_NAME_PREFIX
メソッドの詳細 |
public static boolean isMatch(XoneObject xo, String elementCondition)
xo
- 対象となるオブジェクトelementCondition
- エレメントの条件式
public static boolean evaluateCondition(XoneObject xo, String elementCondition)
isMatch
と異なり、条件式が間違っていたり、条件式がnullのときはXoneRuntimeExceptionを投げます。
xo
- 対象となるオブジェクトelementCondition
- エレメントの条件式
XoneRuntimeException
- xoがnull、elementConditionがnullまたは空文字の場合、あるいは評価で実行エラーが発生した場合public static String getCondition(XoneObject xo, String elementCondition)
isMatch
やevaluateCondition
は、このメソッドで取得した式で評価されます。
xo
- 対象となるオブジェクトelementCondition
- エレメントの条件式
public static XoneObject[] select(XoneObject[] xos, String elementCondition)
xos
- 対象となるオブジェクト配列elementCondition
- エレメントの条件式
public static XoneObject[] select(Collection xos, String elementCondition)
xos
- 対象となるオブジェクト配列elementCondition
- エレメントの条件式
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |