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 processing- Version:
- 3.0
- Author:
- Frank Giordano
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkConnection(ZosConnection connection)
Check connection for validity.static void
checkIllegalParameter(boolean check, String msg)
Check for state of parameterstatic void
checkNullParameter(boolean check, String msg)
Check for null parameterstatic void
checkSshConnection(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 invalid connection object message
-
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"
-
-