Package com.networknt.schema
Class ValidationMessage.BuilderSupport<S>
java.lang.Object
com.networknt.schema.ValidationMessage.BuilderSupport<S>
- Direct Known Subclasses:
MessageSourceValidationMessage.BuilderSupport
,ValidationMessage.Builder
- Enclosing class:
ValidationMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object[]
protected String
protected JsonNodePath
protected MessageFormat
protected JsonNodePath
protected com.fasterxml.jackson.databind.JsonNode
protected String
protected MessageFormatter
protected String
protected String
protected SchemaLocation
protected com.fasterxml.jackson.databind.JsonNode
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
customMessage
(String message) Deprecated.evaluationPath
(JsonNodePath evaluationPath) The evaluation path is the set of keys, starting from the schema root, through which evaluation passes to reach the schema object that produced a specific result.format
(MessageFormat format) protected Object[]
protected String
getCode()
protected JsonNodePath
protected MessageFormat
protected JsonNodePath
protected String
protected Object[]
protected MessageFormatter
protected String
protected String
protected SchemaLocation
protected String
getType()
instanceLocation
(JsonNodePath instanceLocation) The instance location is the location of the JSON value within the root instance being validated.instanceNode
(com.fasterxml.jackson.databind.JsonNode instanceNode) Explicitly sets the message pattern to be used.messageFormatter
(MessageFormatter messageFormatter) messageKey
(String messageKey) messageSupplier
(Supplier<String> messageSupplier) schemaLocation
(SchemaLocation schemaLocation) The schema location is the canonical URI of the schema object plus a JSON Pointer fragment indicating the subschema that produced a result.schemaNode
(com.fasterxml.jackson.databind.JsonNode schemaNode) abstract S
self()
-
Field Details
-
type
-
code
-
evaluationPath
-
schemaLocation
-
instanceLocation
-
property
-
arguments
-
details
-
format
-
message
-
messageSupplier
-
messageFormatter
-
messageKey
-
instanceNode
protected com.fasterxml.jackson.databind.JsonNode instanceNode -
schemaNode
protected com.fasterxml.jackson.databind.JsonNode schemaNode
-
-
Constructor Details
-
BuilderSupport
public BuilderSupport()
-
-
Method Details
-
self
-
type
-
code
-
instanceLocation
The instance location is the location of the JSON value within the root instance being validated.- Parameters:
instanceLocation
- the instance location- Returns:
- the builder
-
schemaLocation
The schema location is the canonical URI of the schema object plus a JSON Pointer fragment indicating the subschema that produced a result. In contrast with the evaluation path, the schema location MUST NOT include by-reference applicators such as $ref or $dynamicRef.- Parameters:
schemaLocation
- the schema location- Returns:
- the builder
-
evaluationPath
The evaluation path is the set of keys, starting from the schema root, through which evaluation passes to reach the schema object that produced a specific result.- Parameters:
evaluationPath
- the evaluation path- Returns:
- the builder
-
property
-
arguments
-
details
-
format
-
customMessage
Deprecated. -
message
Explicitly sets the message pattern to be used.If set the message supplier and message formatter will be ignored.
- Parameters:
message
- the message pattern- Returns:
- the builder
-
messageSupplier
-
messageFormatter
-
messageKey
-
instanceNode
-
schemaNode
-
build
-
getMessageArguments
-
getType
-
getCode
-
getEvaluationPath
-
getSchemaLocation
-
getInstanceLocation
-
getProperty
-
getArguments
-
getDetails
-
getFormat
-
getMessage
-
getMessageSupplier
-
getMessageFormatter
-
getMessageKey
-