Instantiating the extension point for the advanced design search
After the plug-in is created for the advanced design search patterns, you must instantiate the com.ibm.pdp.maf.rpp.mafAdvancedSearchPattern extension point for each new pattern.
Procedure
Example
The following example illustrates the instantiation of the extension point for a
STRING
pattern.
<extension
point="com.ibm.pdp.maf.rpp.mafAdvancedSearchPattern">
<mafAdvancedSearchPattern
id="programByPgmID"
description="List of Programs by their COBOL Program ID"
designType="pacprogram"
kind="STRING"
class="sample.ProgramByPgmID">
</mafAdvancedSearchPattern>
</extension>
The following example illustrates the instantiation of the extension point for an
INTEGER pattern.
<extension
point="com.ibm.pdp.maf.rpp.mafAdvancedSearchPattern">
<mafAdvancedSearchPattern
id="programByMacroCallNumber"
description="List of Programs by their number of Macro calls"
designType="pacprogram"
kind="INTEGER"
class="sample.ProgramByMacroCallNumber">
</mafAdvancedSearchPattern>
</extension>
The following example illustrates the instantiation of the extension point for a
BOOLEAN pattern.
<extension
point="com.ibm.pdp.maf.rpp.mafAdvancedSearchPattern">
<mafAdvancedSearchPattern
id="programNameEqualsPgmID"
description="List of Programs whose names are identical to their COBOL Program ID"
designType="pacprogram"
kind="BOOLEAN"
class="sample.ProgramNameEqualsPgmID">
</mafAdvancedSearchPattern>
</extension>
The following example illustrates the instantiation of the extension point for a
COMPOSITE pattern.
<extension
point="com.ibm.pdp.maf.rpp.mafAdvancedSearchPattern">
<mafAdvancedSearchPattern
id="programMultiCriteria"
description="List of Programs according to multiple criteria"
designType="pacprogram"
kind="COMPOSITE"
class="sample.ProgramMultiCriteria">
<mafAdvancedSearchPatternParameter name="parameter1" javaType="String"/>
<mafAdvancedSearchPatternParameter name="parameter2" javaType="Integer"/>
<mafAdvancedSearchPatternParameter name="parameter3" javaType="Boolean"/>
</mafAdvancedSearchPattern>
</extension>