Package zowe.client.sdk.utility
Class ValidateUtils
- java.lang.Object
-
- zowe.client.sdk.utility.ValidateUtils
-
public final class ValidateUtils extends Object
Utility class contains helper methods for validation type processing- Version:
- 2.0
- Author:
- Frank Giordano
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckConnection(ZosConnection connection)Check connection for validity.static voidcheckIllegalParameter(boolean check, String msg)Check for state of parameterstatic voidcheckNullParameter(boolean check, String msg)Check for null parameterstatic voidcheckSshConnection(SshConnection connection)Check SSH connection for validity.
-
-
-
Method Detail
-
checkConnection
public static void checkConnection(ZosConnection connection)
Check connection for validity.- Parameters:
connection- connection information, see ZosConnection object- Throws:
IllegalStateException- with message "Connection data not setup properly"
-
checkIllegalParameter
public static void checkIllegalParameter(boolean check, String msg)Check for state of parameter- Parameters:
check- Check for true or false valuemsg- message to display if check is true- Throws:
IllegalArgumentException- with message
-
checkNullParameter
public static void checkNullParameter(boolean check, String msg)Check for null parameter- Parameters:
check- check for true or false valuemsg- message to display if check is true- Throws:
IllegalArgumentException- with message
-
checkSshConnection
public static void checkSshConnection(SshConnection connection)
Check SSH connection for validity.- Parameters:
connection- connection information, see SshConnection object- Throws:
IllegalStateException- with message "Connection data not setup properly"
-
-