Package com.relogiclabs.jschema.message
Class MessageFormatter
Object
MessageFormatter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final MessageFormatter
static final MessageFormatter
static final MessageFormatter
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
format
(ErrorDetail error, ExpectedDetail expected, ActualDetail actual) static ErrorDetail
formatForBoth
(String code, String message, JNode schemaNode, JNode jsonNode) static ErrorDetail
formatForJson
(String code, String message, JNode node) static ErrorDetail
formatForJson
(String code, String message, Context context) static ErrorDetail
formatForJson
(String code, String message, Token token) static ErrorDetail
formatForSchema
(String code, String message, JNode node) static ErrorDetail
formatForSchema
(String code, String message, Context context) static ErrorDetail
formatForSchema
(String code, String message, Token token)
-
Field Details
-
ERROR_POINTER
- See Also:
-
SCHEMA_VALIDATION
-
SCHEMA_ASSERTION
-
JSON_ASSERTION
-
-
Method Details
-
format
-
formatForSchema
-
formatForSchema
-
formatForSchema
-
formatForJson
-
formatForJson
-
formatForJson
-
formatForBoth
public static ErrorDetail formatForBoth(String code, String message, JNode schemaNode, JNode jsonNode) -
getSummary
-
getExpected
-
getActual
-