基本的なカスタマイズ > ユーザーインタフェースのカスタマイズ > Windchill JSP フレームワークを使用した HTML クライアントのカスタマイズ > 操作とプロパティの検証ロジックの追加 > コラボレーション
  
コラボレーション
バリデータ開発者は共通コンポーネントの開発者および検証サービスのほかの呼び出し側とコラボレーションを行う必要があります。このコラボレーションは、サービスの呼び出し側がすべてのデータを特定のバリデータが検証を行う必要のあるサービスに渡すことを確認するために必要です。バリデータ開発者は、特定の検証メソッドに必要なデータのリストを、そのメソッドの Javadoc に含めてください。また、メソッドによって説明されるように設計されている検証キー (操作名) のリストを含めることも役に立ちます。次に例を示します。
public class DefaultWIPValidator extends DefaultUIComponentValidator
{

/**
* This implementation of performLimitedPreValidation will check the checkout
* state of all the Workable objects in the ValidationCriteria's targetObjects
* WTCollection, and base its validation results on whether an object in the
* given state can have the specified action performed on it. (e.g., an object
* in the checked-in state can not have an undo checkout action performed on it)
*
* At a minimum, a caller of this method should provide the targetObjects
* WTCollection in the validationCriteria argument.
*
* The expected validationKey arguments for this method are:
* checkin
* checkout
* undocheckout
*
* <BR><BR><B>Supported API: </B>false
*
* @param validationKey The String identifying the action or component being validated.
* @param validationCriteria Object holding information required to perform validation tasks.
* @param locale The user's Locale. If a <i>null</i> value is passed in, the session locale will be used.
* @return UIValidationResultSet
**/
public UIValidationResultSet performLimitedPreValidation (String validationKey,
UIValidationCriteria validationCriteria, Locale locale)
throws WTException
{

}

}