Class Error.BuilderSupport<S>

    • Field Detail

      • keyword

        protected String keyword
      • evaluationPath

        protected NodePath evaluationPath
      • instanceLocation

        protected NodePath instanceLocation
      • arguments

        protected Object[] arguments
      • message

        protected String message
      • messageKey

        protected String messageKey
      • instanceNode

        protected com.fasterxml.jackson.databind.JsonNode instanceNode
      • schemaNode

        protected com.fasterxml.jackson.databind.JsonNode schemaNode
    • Constructor Detail

      • BuilderSupport

        public BuilderSupport()
    • Method Detail

      • self

        public abstract S self()
      • keyword

        public S keyword​(String keyword)
      • property

        public S property​(String properties)
      • index

        public S index​(Integer index)
      • instanceLocation

        public S instanceLocation​(NodePath 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

        public S 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. 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

        public S 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.
        Parameters:
        evaluationPath - the evaluation path
        Returns:
        the builder
      • arguments

        public S arguments​(Object... arguments)
      • message

        public S message​(String 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

        public S messageSupplier​(Supplier<String> messageSupplier)
      • messageFormatter

        public S messageFormatter​(MessageFormatter messageFormatter)
      • messageKey

        public S messageKey​(String messageKey)
      • instanceNode

        public S instanceNode​(com.fasterxml.jackson.databind.JsonNode instanceNode)
      • schemaNode

        public S schemaNode​(com.fasterxml.jackson.databind.JsonNode schemaNode)
      • build

        public Error build()
      • getMessageArguments

        protected Object[] getMessageArguments()
      • getKeyword

        protected String getKeyword()
      • getEvaluationPath

        protected NodePath getEvaluationPath()
      • getInstanceLocation

        protected NodePath getInstanceLocation()
      • getArguments

        protected Object[] getArguments()
      • getMessage

        protected String getMessage()
      • getMessageSupplier

        protected Supplier<String> getMessageSupplier()
      • getMessageKey

        protected String getMessageKey()