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 StringcustomMessageprotected ErrorMessageTypeerrorMessageTypeprotected booleanfailFastprotected JsonSchemaparentSchemaprotected ResourceBundleresourceBundleprotected StringschemaPathprotected ValidatorTypeCodevalidatorType
-
Constructor Summary
Constructors Modifier Constructor Description protectedValidationMessageHandler(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 ValidationMessagebuildValidationMessage(String at, String... arguments)protected ValidationMessageconstructValidationMessage(String messageKey, String at, String... arguments)protected ErrorMessageTypegetErrorMessageType()protected ValidatorTypeCodegetValidatorType()protected booleanisPartOfOneOfMultipleType()protected voidparseErrorCode(String errorCodeKey)protected voidupdateValidatorType(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)
-
-