Package com.networknt.schema
Class ValidationMessageHandler
- java.lang.Object
-
- com.networknt.schema.ValidationMessageHandler
-
- Direct Known Subclasses:
BaseJsonValidator
public abstract class ValidationMessageHandler extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
customMessage
protected ErrorMessageType
errorMessageType
protected boolean
failFast
protected JsonSchema
parentSchema
protected ResourceBundle
resourceBundle
protected String
schemaPath
protected ValidatorTypeCode
validatorType
-
Constructor Summary
Constructors Modifier Constructor Description protected
ValidationMessageHandler(boolean failFast, ErrorMessageType errorMessageType, String customMessage, ResourceBundle resourceBundle, ValidatorTypeCode validatorType, JsonSchema parentSchema, String schemaPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValidationMessage
buildValidationMessage(String at, String... arguments)
protected ValidationMessage
constructValidationMessage(String messageKey, String at, String... arguments)
protected ErrorMessageType
getErrorMessageType()
protected ValidatorTypeCode
getValidatorType()
protected boolean
isPartOfOneOfMultipleType()
protected void
parseErrorCode(String errorCodeKey)
protected void
updateValidatorType(ValidatorTypeCode validatorTypeCode)
-
-
-
Field Detail
-
failFast
protected final boolean failFast
-
customMessage
protected final String customMessage
-
resourceBundle
protected final ResourceBundle resourceBundle
-
validatorType
protected ValidatorTypeCode validatorType
-
errorMessageType
protected ErrorMessageType errorMessageType
-
schemaPath
protected String schemaPath
-
parentSchema
protected JsonSchema parentSchema
-
-
Constructor Detail
-
ValidationMessageHandler
protected ValidationMessageHandler(boolean failFast, ErrorMessageType errorMessageType, String customMessage, ResourceBundle resourceBundle, ValidatorTypeCode validatorType, JsonSchema parentSchema, String schemaPath)
-
-
Method Detail
-
buildValidationMessage
protected ValidationMessage buildValidationMessage(String at, String... arguments)
-
constructValidationMessage
protected ValidationMessage constructValidationMessage(String messageKey, String at, String... arguments)
-
getValidatorType
protected ValidatorTypeCode getValidatorType()
-
getErrorMessageType
protected ErrorMessageType getErrorMessageType()
-
isPartOfOneOfMultipleType
protected boolean isPartOfOneOfMultipleType()
-
parseErrorCode
protected void parseErrorCode(String errorCodeKey)
-
updateValidatorType
protected void updateValidatorType(ValidatorTypeCode validatorTypeCode)
-
-