基本的なカスタマイズ > ユーザーインタフェースのカスタマイズ > UI の情報の表示 > UI の検証 > ソリューション > 手順 - 事前検証 > 検証フィルタの実装 > フィルタの登録
  
フィルタの登録
フィルタを作成した後の次のステップは、それを登録することです。
実装するフィルタのタイプ (ユニバーサルまたは単純) に応じて、フィルタの登録方法が異なります。レジストリにセレクタを設定する場合は、フィルタクラス名の最初の文字を小文字に置換し、"filter" サフィックスを取り除くという規則を使用します (たとえば、"MarkedForDeleteFilter" のセレクタは "markedForDelete" となります)。詳細は以下のとおりです。
ユニバーサルフィルタを登録するには、*service.proeprties.xconf に次のようなエントリを作成します。
<Service context="default"
name="com.ptc.core.ui.validation.UniversalValidationFilter">
<Option
serviceClass="com.ptc.windchill.enterprise.markedfordelete.validat
ors.MarkedForDeleteFilter"
selector="markedForDelete" requestor="null" />
</Service>
When registering a simple filter, the only difference is the name
attribute of the Service element:
<Service context="default"
name="com.ptc.core.ui.validation.SimpleValidationFilter">
<Option
serviceClass="com.ptc.windchill.enterprise.somepackage.validators.
MarkedForDeleteFilter"
selector="markedForDelete" requestor="null" />
</Service>