Package com.networknt.schema
Class Error.BuilderSupport<S>
java.lang.Object
com.networknt.schema.Error.BuilderSupport<S>
- Direct Known Subclasses:
Error.Builder,MessageSourceError.BuilderSupport
- Enclosing class:
Error
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object[]protected NodePathprotected MessageFormatprotected NodePathprotected com.fasterxml.jackson.databind.JsonNodeprotected Stringprotected Stringprotected MessageFormatterprotected Stringprotected SchemaLocationprotected com.fasterxml.jackson.databind.JsonNode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()evaluationPath(NodePath 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 NodePathprotected MessageFormatprotected NodePathprotected Stringprotected Stringprotected Object[]protected MessageFormatterprotected Stringprotected SchemaLocationinstanceLocation(NodePath 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 Sself()
-
Field Details
-
keyword
-
evaluationPath
-
schemaLocation
-
instanceLocation
-
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
-
keyword
-
property
-
index
-
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
-
arguments
-
details
-
format
-
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
-
getKeyword
-
getEvaluationPath
-
getSchemaLocation
-
getInstanceLocation
-
getArguments
-
getDetails
-
getFormat
-
getMessage
-
getMessageSupplier
-
getMessageFormatter
-
getMessageKey
-