<p>
Any validation errors that were found.
</p>

@return Any validation errors that were found.
426777
public java.util.List<ValidationError> getValidationErrors() {
        if (validationErrors == null) {
            validationErrors = new com.amazonaws.internal.SdkInternalList<ValidationError>();
        }
        return validationErrors;
    }
1362259
@Override
	public List<ParsingError> doValidate() {

		List<ParsingError> result = new ArrayList<> ();

		// Basic checks
		if( Utils.isEmptyOrWhitespaces( this.key ))
			result.add( error( ErrorCode.CMD_EMPTY_VARIABLE_NAME ));

		// Formatted time must be processed apart.
		// Such a variable must be single on its line.
		else if( this.value.startsWith( FORMATTED_TIME_PREFIX )
				&& this.value.endsWith( ")" )) {

			String datePattern = extractDatePattern( this.value );
			if( datePattern.contains( "$(" )) {
				result.add( error( ErrorCode.CMD_NO_MIX_FOR_PATTERNS, variable( this.key )));

			} else try {
				new SimpleDateFormat( datePattern );

			} catch( Exception e ) {
				result.add( error( ErrorCode.CMD_INVALID_DATE_PATTERN, value( datePattern )));
			}
		}

		// A formatted time in the middle of something else?
		else if( this.value.contains( FORMATTED_TIME_PREFIX )) {
			result.add( error( ErrorCode.CMD_NO_MIX_FOR_PATTERNS, variable( this.value )));
		}

		// The index variable is very strict
		Pattern indexPattern = Pattern.compile( EXISTING_INDEX_PATTERN );
		if( this.value.contains( EXISTING_INDEX_PREFIX )
				&& ! indexPattern.matcher( this.value ).matches()) {
			result.add( error( ErrorCode.CMD_INVALID_INDEX_PATTERN, variable( this.value )));
		}

		// Validate instance existence at the end, and only if no error was found before
		if( result.isEmpty()
				&& this.instancePath != null
				&& ! this.context.instanceExists( this.instancePath ))
			result.add( error( ErrorCode.CMD_NO_MATCHING_INSTANCE ));

		return result;
	}
982070
public java.util.List<Failure> getFailures() {
        if (failures == null) {
            failures = new com.amazonaws.internal.SdkInternalList<Failure>();
        }
        return failures;
    }
1069904
@Override
	public List<ParsingError> doValidate() {

		List<ParsingError> result = new ArrayList<> ();
		if( Utils.isEmptyOrWhitespaces( this.filePath ))
			result.add( new ParsingError( ErrorCode.CMD_MISSING_TARGET_FILE, this.context.getCommandFile(), this.line ));

		return result;
	}
444623
public List<Throwable> getErrors() {
        final List<Throwable> retval = new ArrayList<Throwable>();
        for (final TestInfo testInfo : contractTestMap.listTestInfo()) {
            retval.addAll( testInfo.getErrors() );
        }
        return retval;
    }
1116032
public Map<String, Map<String, Map<String, Map<String, ?>>>> getValidationConstraints() {
		if (validationConstraints == null) {
			validationConstraints = new LinkedHashMap<>();
		}
		return validationConstraints;
	}
1351372
public boolean isValid() {
        for (ValidationResult result : results) {
            for (ValidationMessage<Origin> message : result.getMessages()) {
                if (Severity.ERROR.equals(message.getSeverity())) {
                    return false;
                }
            }
        }
        return true;
    }
154458
@com.fasterxml.jackson.annotation.JsonProperty("validationErrors")
    public java.util.List<ValidationError> getValidationErrors() {
        return validationErrors;
    }
1221461
@Override
	public List<ParsingError> doValidate() {

		List<ParsingError> result = new ArrayList<> ();
		if( this.targetStatus == null )
			result.add( error( ErrorCode.CMD_INVALID_INSTANCE_STATUS, value( this.targetStatusAsString )));
		else if( ! this.targetStatus.isStable())
			result.add( error( ErrorCode.CMD_INSTABLE_INSTANCE_STATUS ));

		if( ! this.context.instanceExists( this.instancePath ))
			result.add( error( ErrorCode.CMD_NO_MATCHING_INSTANCE ));

		return result;
	}
554751
public ArrayList returnErrors()
    {
        if (_containerErrors != null)
            return _containerErrors.returnErrors();
        ArrayList e = _errors;
        _errors = null;
        return e;
    }
583879
public List<ValidationError> validateInput() {
        List<ValidationError> errors = new ArrayList<>();
        Object value = getModel().getValue(getName());
        ValidationError error;
        for (InputValidator validator : validators) {
            error = validator.validate(value, getName(), getLabel());
            if (error != null){
                errors.add(error);
            }
        }
        return errors;
    }
786842
public boolean isError() {
    String qualifier = qualifier();
    return qualifier != null && qualifier.contains(Qualifier.ERROR_NAMESPACE);
  }
349121
private Validator<ValueType> validateRight() {
        Validator<ValueType> result = null;
        Collection<Validator<ValueType>> subValidators = onGetRightErrorMessage();

        if (subValidators != null) {
            for (Validator<ValueType> validator : subValidators) {
                notifyOnValidationFailure(validator);

                if (result == null) {
                    result = validator;
                }
            }
        }

        return result;
    }
423532
protected CompilationProblem[] collectCompilerProblems() {
        if (this.errors.isEmpty()) {
            return null;
        } else {
            final CompilationProblem[] list = new CompilationProblem[this.errors.size()];
            this.errors.toArray(list);
            return list;
        }
    }
1295022
public Map<String, Map<String, Map<String, Map<String, ?>>>> validationConstraints() {
		return getEntity(invokeGet("_constraints", null), Map.class);
	}
913038
public boolean validateAllFields() {
        final boolean postalCodeValid;

        final String countrySelected = mCountryAutoCompleteTextView.getSelectedCountryCode();
        if (mPostalCodeEditText.getText().toString().isEmpty() &&
                (mOptionalShippingInfoFields.contains(POSTAL_CODE_FIELD) ||
                        mHiddenShippingInfoFields.contains(POSTAL_CODE_FIELD))) {
            postalCodeValid = true;
        } else if (countrySelected.equals(Locale.US.getCountry())) {
            postalCodeValid = CountryUtils.isUSZipCodeValid(mPostalCodeEditText.getText()
                    .toString().trim());
        } else if (countrySelected.equals(Locale.UK.getCountry())) {
            postalCodeValid = CountryUtils.isUKPostcodeValid(mPostalCodeEditText.getText()
                    .toString().trim());
        } else if (countrySelected.equals(Locale.CANADA.getCountry())) {
            postalCodeValid = CountryUtils.isCanadianPostalCodeValid(mPostalCodeEditText.getText()
                    .toString().trim());
        } else if (CountryUtils.doesCountryUsePostalCode(countrySelected)) {
            postalCodeValid = !mPostalCodeEditText.getText().toString().isEmpty();
        } else {
            postalCodeValid = true;
        }
        mPostalCodeEditText.setShouldShowError(!postalCodeValid);

        final boolean requiredAddressLine1Empty = mAddressEditText.getText().toString().isEmpty() &&
                !mOptionalShippingInfoFields.contains(ADDRESS_LINE_ONE_FIELD) &&
                !mHiddenShippingInfoFields.contains(ADDRESS_LINE_ONE_FIELD);
        mAddressEditText.setShouldShowError(requiredAddressLine1Empty);

        final boolean requiredCityEmpty = mCityEditText.getText().toString().isEmpty() &&
                !mOptionalShippingInfoFields.contains(CITY_FIELD) && !mHiddenShippingInfoFields
                .contains(CITY_FIELD);
        mCityEditText.setShouldShowError(requiredCityEmpty);

        final boolean requiredNameEmpty = mNameEditText.getText().toString().isEmpty();
        mNameEditText.setShouldShowError(requiredNameEmpty);

        final boolean requiredStateEmpty = mStateEditText.getText().toString().isEmpty() &&
                !mOptionalShippingInfoFields.contains(STATE_FIELD) && !mHiddenShippingInfoFields
                .contains(STATE_FIELD);
        mStateEditText.setShouldShowError(requiredStateEmpty);

        final boolean requiredPhoneNumberEmpty =
                mPhoneNumberEditText.getText().toString().isEmpty() &&
                        !mOptionalShippingInfoFields.contains(PHONE_FIELD) &&
                        !mHiddenShippingInfoFields.contains(PHONE_FIELD);
        mPhoneNumberEditText.setShouldShowError(requiredPhoneNumberEmpty);

        return postalCodeValid && !requiredAddressLine1Empty && !requiredCityEmpty &&
                !requiredStateEmpty && !requiredNameEmpty && !requiredPhoneNumberEmpty;
    }
1369824
public @Nullable
    List<ComapiValidationFailure> getValidationFailures() {
        if (errorBody != null && !errorBody.isEmpty()) {
            ComapiValidationFailures failures = null;
            try {
                failures = new Parser().parse(errorBody, ComapiValidationFailures.class);
            } catch (Exception e) {
                return null;
            }
            return failures.validationFailures;
        }

        return null;
    }