public boolean validate()
    {
        boolean isTested = false;
        boolean isValid = true;
        if (this._isTestNotNull)
        {
            isTested = true;
            isValid &= (this._value != null);
            if (this._isValidationExceptionThrownOnFail && !isValid)
            {
                BaseValidator
                        .throwValidateException("The String must not be null");
            }
        }
        
        if (this._isTestEquals)
        {
            isTested = true;
            isValid &= this._value != null && this._value.equals( this._equalsValue );
            if (this._isValidationExceptionThrownOnFail && !isValid)
            {
                BaseValidator
                        .throwValidateException("The value does not equal the expected value (value = '"
                                + this._value
                                + "' expected value = '"
                                + this._equalsValue + "').");
            }
        }
        
        if (!isTested)
        {
            isValid = false;
        }
        
        return (isValid);
    }