Class SResponseUtil


  • public class SResponseUtil
    extends java.lang.Object
      -- detail description --
     
    Version:
    0.1, 2020-06-04
    Author:
    Sokkheang.huo
    • Constructor Summary

      Constructors 
      Constructor Description
      SResponseUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Solo empty()  
      static Solo toSolo​(SList mMultiData, java.lang.String... param)
      -- Creating new MMultiData (grid01) by param parameter 2 and put to new Solo -- {grid01=[{chequeNo=1}, {chequeNo=2}, {chequeNo=1}, {chequeNo=5}]}
      static Solo toSolo​(Solo Solo, SList mMultiData, java.lang.String... param)
      -- Creating new MMultiData with new param parameter 2 getting value from mMultiData parameter 2 and append to Solo parameter 1 Solo object will be checked, if it already has grid01, it will be created new grid02, or grid03 -- {grid01=[{chequeNo=1}, {chequeNo=2}, {chequeNo=1}, {chequeNo=5}]} or {grid01=[{chequeNo=1}, {chequeNo=2}, {chequeNo=1}, {chequeNo=5}], grid02=[{chequeNo=1}, {chequeNo=2}, {chequeNo=1}], chequeAmount = 1,000}
      static Solo toSolo​(Solo Solo1, Solo Solo2, java.lang.String... param)
      -- Creating new Solo using param parameter 3 getting value from Solo2 parameter 2 and append to Solo1 parameter 1 --
      static Solo toSolo​(Solo Solo, java.lang.String... param)
      -- Create new Solo object by getting data from Solo parameter 1 using param parameter 2 --
      static Solo toSolo​(java.lang.String listName, SList mMultiData, java.lang.String... param)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SResponseUtil

        public SResponseUtil()
    • Method Detail

      • toSolo

        public static Solo toSolo​(Solo Solo,
                                  java.lang.String... param)
                           throws SoloException
         -- Create new Solo object by getting data from Solo parameter 1 using param parameter 2 --
         
        Parameters:
        Solo - (source that will be filtered using param parameter 2)
        param - (key will be create to new Solo object)
        Returns:
        Throws:
        SoloException
      • toSolo

        public static Solo toSolo​(java.lang.String listName,
                                  SList mMultiData,
                                  java.lang.String... param)
                           throws SoloException
        Parameters:
        listName -
        mMultiData -
        param -
        Returns:
        Throws:
        SoloException
      • toSolo

        public static Solo toSolo​(SList mMultiData,
                                  java.lang.String... param)
                           throws SoloException
         -- Creating new MMultiData (grid01) by param parameter 2 and put to new Solo  --
         
         {grid01=[{chequeNo=1}, {chequeNo=2}, {chequeNo=1}, {chequeNo=5}]}
         
        Parameters:
        mMultiData - (Source will be filtered using param parameter 2)
        param - (key will be create to new MMultiData object)
        Returns:
        Throws:
        SoloException
      • toSolo

        public static Solo toSolo​(Solo Solo,
                                  SList mMultiData,
                                  java.lang.String... param)
                           throws SoloException
         -- Creating new MMultiData with new param parameter 2 getting value from mMultiData parameter 2 and append to Solo parameter 1  
         Solo object will be checked, if it already has grid01, it will be created new grid02, or grid03 --
         
         {grid01=[{chequeNo=1}, {chequeNo=2}, {chequeNo=1}, {chequeNo=5}]}
         or
         {grid01=[{chequeNo=1}, {chequeNo=2}, {chequeNo=1}, {chequeNo=5}], grid02=[{chequeNo=1}, {chequeNo=2}, {chequeNo=1}], chequeAmount = 1,000}
         
        Parameters:
        Solo - (Original source and it will be append to new object)
        mMultiData - (Source will be filtered using param parameter 2)
        param - (key will be create to new MMultiData object)
        Returns:
        Throws:
        SoloException
      • toSolo

        public static Solo toSolo​(Solo Solo1,
                                  Solo Solo2,
                                  java.lang.String... param)
                           throws SoloException
         -- Creating new Solo using param parameter 3 getting value from Solo2 parameter 2 and append to Solo1 parameter 1 --
         
         
        Parameters:
        Solo1 - (Original source and it will be append to new object)
        Solo2 - (source that will be filtered using param parameter 3)
        param - (key will be create to new Solo object)
        Returns:
        Throws:
        SoloException