com.ibm.pdp.engine
Interface ISimpleMicroPatternHandler

All Superinterfaces:
ICommonMicroPatternHandler
All Known Implementing Classes:
AbstractSimpleMicroPatternHandler

public interface ISimpleMicroPatternHandler
extends ICommonMicroPatternHandler

Handles an occurrence of a IMicroPattern found by the engine in the source code
An IMicroPatternHandler is registered by its corresponding MP ID and namespace (optional)
If the engine is configured with two handlers registered for the same MP ID, it will use the optional namespace attribute to choose the right handler at runtime.
If the MP does not define a namespace, the engine should stop with a SEVERE error


Field Summary
static java.lang.String copyright
           
 
Method Summary
 java.lang.String process(IMicroPattern microPattern)
          Called once per Micro Pattern having same ID and Namespace found in the source code
 
Methods inherited from interface com.ibm.pdp.engine.ICommonMicroPatternHandler
getId, getNamespace, init
 

Field Detail

copyright

static final java.lang.String copyright
See Also:
Constant Field Values
Method Detail

process

java.lang.String process(IMicroPattern microPattern)
Called once per Micro Pattern having same ID and Namespace found in the source code

Parameters:
microPattern -
Returns:
a String to replace the current Micro Pattern in the source