public class Context extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Context.PairComparator |
class |
Context.PathScope |
| Constructor and Description |
|---|
Context(Set<Difference.Type> compatibleChanges) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDifference(Difference.Type type) |
void |
addDifference(String attribute,
Difference.Type type) |
void |
addDifferences(List<Difference> differences) |
void |
addDifferencesRebased(List<Difference> relativeDiffs)
Adds differences that were computed relative to a nested pair, rebasing each one onto the
current path.
|
List<Difference> |
compareMemoized(org.everit.json.schema.Schema original,
org.everit.json.schema.Schema update,
Context.PairComparator comparator)
Compares a pair of schemas with memoization, returning the differences with paths relative to
the pair (i.e.
|
Context.PathScope |
enterPath(String path) |
List<Difference> |
getDifferences() |
Context |
getSubcontext() |
boolean |
isCompatible() |
public Context(Set<Difference.Type> compatibleChanges)
public Context getSubcontext()
public List<Difference> compareMemoized(org.everit.json.schema.Schema original, org.everit.json.schema.Schema update, Context.PairComparator comparator)
comparator
is invoked on a fresh subcontext rooted at the pair, and its differences are cached.public void addDifferencesRebased(List<Difference> relativeDiffs)
public Context.PathScope enterPath(String path)
public boolean isCompatible()
public List<Difference> getDifferences()
public void addDifference(Difference.Type type)
public void addDifference(String attribute, Difference.Type type)
public void addDifferences(List<Difference> differences)
Copyright © 2026 Confluent, Inc.. All rights reserved.