-
public interface EvaluatorContextA 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacceptsDefaultValues()Checks if the current validator accepts default values or not.JsonBuilderFactorygetJsonBuilderFactory()Returns the instance of JSON builder factory.JsonProvidergetJsonProvider()Returns the instance of JSON provider.JsonParsergetParser()Returns the parser being used while validating the instance.StringgetPointer()Returns the current location in the instance as a JSON pointer.voidputDefaultItems(List<JsonValue> items)Inserts default values at the end of the array.voidputDefaultProperties(Map<String,JsonValue> properties)Inserts default values at the end of the object.
-
-
-
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:
trueif the validator accepts default values,falseif 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.
-
-