Interface EvaluatorContext


  • public interface EvaluatorContext
    A context shared by all evaluators participating in the current validation.

    Note that this type is not intended to be used directly by end users.

    Author:
    leadpony
    • Method Detail

      • getParser

        JsonParser getParser()
        Returns the parser being used while validating the instance.
        Returns:
        the current parser, never be null.
      • getPointer

        String getPointer()
        Returns the current location in the instance as a JSON pointer.
        Returns:
        the JSON pointer which points to the current location in the instance.
      • getJsonProvider

        JsonProvider getJsonProvider()
        Returns the instance of JSON provider.
        Returns:
        the instance of JSON provider.
      • getJsonBuilderFactory

        JsonBuilderFactory getJsonBuilderFactory()
        Returns the instance of JSON builder factory.
        Returns:
        the instance of JSON builder factory.
      • acceptsDefaultValues

        boolean acceptsDefaultValues()
        Checks if the current validator accepts default values or not.
        Returns:
        true if the validator accepts default values, false if it does not.
      • putDefaultProperties

        void putDefaultProperties​(Map<String,​JsonValue> properties)
        Inserts default values at the end of the object.
        Parameters:
        properties - the pairs each of which consists of key and default value.
      • putDefaultItems

        void putDefaultItems​(List<JsonValue> items)
        Inserts default values at the end of the array.
        Parameters:
        items - the list of default values to insert.