How to implement this logic ? Please suggest an idea
<p>We hava a Java Application that receives an request in the below form. (Clients make TCP/IP connection to our application and will send these requests)</p>

<p>SET:ACCOUNTBALANCE:MSISDN,VALUE:<em>PARAMETER1,VALUE</em>:*PARAMETER2,VALUE*:<em>PARAMETER3,VALUE</em>:*PARAMETER4,VALUE*:....;</p>

<p>I need to add validations based on the below conditions for the parameters recevied.</p>

<p>Could you please suggest any idea for the below validations to be done ?</p>

<p><img src="http://i.stack.imgur.com/XmNDm.png" alt="enter image description here"></p>
