CLASS: DecisionMaker
Class OnlyWithCommentDecisionMaker

DecisionMaker
|
+--OnlyWithCommentDecisionMaker

DecisionMaker implementation that makes sure only ScriptElements with a comment is included.


Methods Summary
PublicHandleRequest(se As Variant, affirm As Boolean)
     Checks to see whether the passed obj is a ScriptElement.
PublicNew(next_dm As DecisionMaker)
     

Method Detail

HandleRequest

Public Sub HandleRequest(se As Variant, affirm As Boolean)
Checks to see whether the passed obj is a ScriptElement. If it is we check that there is a comment. If there is no comment of the commentis empty we do not affirm.

We may toggle the affirm flag though it is already True/False.

We do not continue down the chain if the class does not affirm.
See:
DecisionMaker#HandleRequest

New

Public New(next_dm As DecisionMaker)
See:
DecisionMaker#New