Class ValidateUtils


  • public final class ValidateUtils
    extends Object
    Utility class contains helper methods for validation processing
    Version:
    3.0
    Author:
    Frank Giordano
    • 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 value
        msg - 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 value
        msg - 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"