Class DiffContext
- java.lang.Object
-
- io.apicurio.registry.rules.compatibility.jsonschema.diff.DiffContext
-
public class DiffContext extends Object
- Author:
- Jakub Senko 'jsenko@redhat.com'
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDifference(DiffType type, Object originalSubchema, Object updatedSubchema)
static DiffContext
createRootContext()
static DiffContext
createRootContext(String basePathFragmentUpdated, Set<org.everit.json.schema.SchemaLocation> visited)
boolean
foundAllDifferencesAreCompatible()
boolean
foundIncompatibleDifference()
Return true, if this context contains an incompatible difference.Set<Difference>
getDiff()
Set<Difference>
getIncompatibleDifferences()
void
log(String message)
DiffContext
sub(String pathFragmentUpdated)
String
toString()
-
-
-
Method Detail
-
sub
public DiffContext sub(String pathFragmentUpdated)
-
createRootContext
public static DiffContext createRootContext(String basePathFragmentUpdated, Set<org.everit.json.schema.SchemaLocation> visited)
-
createRootContext
public static DiffContext createRootContext()
-
addDifference
public void addDifference(DiffType type, Object originalSubchema, Object updatedSubchema)
-
log
public void log(String message)
-
getDiff
public Set<Difference> getDiff()
-
foundIncompatibleDifference
public boolean foundIncompatibleDifference()
Return true, if this context contains an incompatible difference.
-
getIncompatibleDifferences
public Set<Difference> getIncompatibleDifferences()
-
foundAllDifferencesAreCompatible
public boolean foundAllDifferencesAreCompatible()
-
-