package innovimax.mixthem.rest.request;

public class TextParamsCheck extends AbstractParamsCheck {

    public boolean addFromText(String text1, String text2) {
        if (checkTextMissing(text1) && checkTextMissing(text2)) {
            return true;
        }
        return false;
    }

    public boolean altFromText(String type, String text1, String text2) {
        if (checkAlternateMode(type) && checkTextMissing(text1) && checkTextMissing(text2)) {
            return true;
        }
        return false;
    }

    public boolean randomAltFromText(String text1, String text2, Integer seed) {
        if (checkTextMissing(text1) && checkTextMissing(text2)) {
            return true;
        }
        return false;
    }

    public boolean joinFromText(String text1, String text2, Integer col1, Integer col2) {
        if (checkTextMissing(text1) && checkTextMissing(text2)) {
            return true;
        }
        return false;
    }

    public boolean zipFromText(String type, String text1, String text2, String sep) {
        if (checkZipMode(type) && checkTextMissing(text1) && checkTextMissing(text2)) {
            return true;
        }
        return false;
    }
}

@@ -209,32 +209,50 @@
 xtMissing(text2)
+ && checkAddRule()
 ) %7B%0A            
@@ -255,32 +255,40 @@
     return true;
+        
 %0A        %7D%0A     
@@ -273,32 +273,40 @@
       %0A        %7D
+        
 %0A        return 
@@ -475,32 +475,60 @@
 xtMissing(text2)
+ && checkAlternateRule(type)
 ) %7B%0A            
@@ -541,32 +541,40 @@
  true;%0A        %7D
+        
 %0A        return 
@@ -722,32 +722,60 @@
 xtMissing(text2)
+ && checkRandomAltRule(seed)
 ) %7B%0A            
@@ -778,32 +778,40 @@
     return true;
+        
 %0A        %7D%0A     
@@ -978,32 +978,61 @@
 xtMissing(text2)
+ && checkJoinRule(col1, col2)
 ) %7B%0A            
@@ -1253,16 +1253,43 @@
 g(text2)
+ && checkZipRule(type, sep)
 ) %7B%0A    
@@ -1300,32 +1300,40 @@
     return true;
+        
 %0A        %7D%0A     

Update TextParamsCheck.java