Package com.networknt.schema
Class ExecutionContext
- java.lang.Object
-
- com.networknt.schema.ExecutionContext
-
public class ExecutionContext extends Object
Stores the execution context for the validation run.
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext()
Creates an execution context.ExecutionContext(CollectorContext collectorContext)
Creates an execution context.ExecutionContext(ExecutionConfig executionConfig)
Creates an execution context.ExecutionContext(ExecutionConfig executionConfig, CollectorContext collectorContext)
Creates an execution context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enterDiscriminatorContext(DiscriminatorContext ctx, JsonNodePath instanceLocation)
CollectorContext
getCollectorContext()
Gets the collector context.DiscriminatorContext
getCurrentDiscriminatorContext()
ExecutionConfig
getExecutionConfig()
Gets the execution configuration.ValidatorState
getValidatorState()
Gets the validator state.void
leaveDiscriminatorContextImmediately(JsonNodePath instanceLocation)
void
setCollectorContext(CollectorContext collectorContext)
Sets the collector context.void
setExecutionConfig(ExecutionConfig executionConfig)
Sets the execution configuration.void
setValidatorState(ValidatorState validatorState)
Sets the validator state.
-
-
-
Constructor Detail
-
ExecutionContext
public ExecutionContext()
Creates an execution context.
-
ExecutionContext
public ExecutionContext(CollectorContext collectorContext)
Creates an execution context.- Parameters:
collectorContext
- the collector context
-
ExecutionContext
public ExecutionContext(ExecutionConfig executionConfig)
Creates an execution context.- Parameters:
executionConfig
- the execution configuration
-
ExecutionContext
public ExecutionContext(ExecutionConfig executionConfig, CollectorContext collectorContext)
Creates an execution context.- Parameters:
executionConfig
- the execution configurationcollectorContext
- the collector context
-
-
Method Detail
-
getCollectorContext
public CollectorContext getCollectorContext()
Gets the collector context.- Returns:
- the collector context
-
setCollectorContext
public void setCollectorContext(CollectorContext collectorContext)
Sets the collector context.- Parameters:
collectorContext
- the collector context
-
getExecutionConfig
public ExecutionConfig getExecutionConfig()
Gets the execution configuration.- Returns:
- the execution configuration
-
setExecutionConfig
public void setExecutionConfig(ExecutionConfig executionConfig)
Sets the execution configuration.- Parameters:
executionConfig
- the execution configuration
-
getValidatorState
public ValidatorState getValidatorState()
Gets the validator state.- Returns:
- the validator state
-
setValidatorState
public void setValidatorState(ValidatorState validatorState)
Sets the validator state.- Parameters:
validatorState
- the validator state
-
getCurrentDiscriminatorContext
public DiscriminatorContext getCurrentDiscriminatorContext()
-
enterDiscriminatorContext
public void enterDiscriminatorContext(DiscriminatorContext ctx, JsonNodePath instanceLocation)
-
leaveDiscriminatorContextImmediately
public void leaveDiscriminatorContextImmediately(JsonNodePath instanceLocation)
-
-