Package liquibase.exception
Class ValidationErrors
java.lang.Object
liquibase.exception.ValidationErrors
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionValidationErrors(String change) ValidationErrors(Change change) ValidationErrors(Precondition precondition)  - 
Method Summary
Modifier and TypeMethodDescriptionaddAll(ValidationErrors validationErrors) voidaddAll(ValidationErrors validationErrors, ChangeSet changeSet) addWarning(String message) final voidcheckDisallowedField(String disallowedFieldName, Object value, Database database, Class<? extends Database>... disallowedDatabases) Checks if a field is forbidden in combination with a given Database (most often because that database does not implement the features required by the field/value combination).checkRequiredField(String requiredFieldName, Object value) Convenience method forcheckRequiredField(String, Object, String, boolean)with allowEmptyValue=falsecheckRequiredField(String requiredFieldName, Object value, boolean allowEmptyValue) Convenience method forcheckRequiredField(String, Object, String, boolean)with a null postfixcheckRequiredField(String requiredFieldName, Object value, String postfix) Convenience method forcheckRequiredField(String, Object, String, boolean)with allowEmptyValue=falsecheckRequiredField(String requiredFieldName, Object value, String postfix, boolean allowEmptyValue) Checks that the given value is set.booleanbooleaninthashCode()toString() 
- 
Field Details
- 
errorMessages
 - 
warningMessages
 - 
change
 
 - 
 - 
Constructor Details
- 
ValidationErrors
public ValidationErrors() - 
ValidationErrors
 - 
ValidationErrors
 - 
ValidationErrors
 
 - 
 - 
Method Details
- 
hasErrors
public boolean hasErrors() - 
getChangeName
 - 
checkRequiredField
Convenience method forcheckRequiredField(String, Object, String, boolean)with allowEmptyValue=false - 
checkRequiredField
public ValidationErrors checkRequiredField(String requiredFieldName, Object value, boolean allowEmptyValue) Convenience method forcheckRequiredField(String, Object, String, boolean)with a null postfix - 
checkRequiredField
Convenience method forcheckRequiredField(String, Object, String, boolean)with allowEmptyValue=false - 
checkRequiredField
public ValidationErrors checkRequiredField(String requiredFieldName, Object value, String postfix, boolean allowEmptyValue) Checks that the given value is set.- Parameters:
 allowEmptyValue- If true, empty string and empty arrays are allowed. If false, they are not.
 - 
checkDisallowedField
@SafeVarargs public final void checkDisallowedField(String disallowedFieldName, Object value, Database database, Class<? extends Database>... disallowedDatabases) Checks if a field is forbidden in combination with a given Database (most often because that database does not implement the features required by the field/value combination). If a "forbidden" use is detected, a validation error is added to the current list of ValidationErrors.
Note:- if value==null, the field is ALLOWED for all DBs
 - if the disallowedDatabases list does not at least contain 1 entry, the field is NOT allowed
 
- Parameters:
 disallowedFieldName- field whose value is checkedvalue- value that might be disalloweddatabase- database the object/value combination is checked againstdisallowedDatabases- a list of "forbidden" databases that do not allow this field/value combination
 - 
addError
 - 
addError
 - 
getErrorMessages
 - 
addWarning
 - 
getWarningMessages
 - 
addAll
 - 
addAll
 - 
toString
 - 
hashCode
public int hashCode() - 
equals
 - 
getRequiredErrorMessages
 - 
getUnsupportedErrorMessages
 
 -