Package software.amazon.smithy.diff
Class ModelDiff
- java.lang.Object
-
- software.amazon.smithy.diff.ModelDiff
-
public final class ModelDiff extends java.lang.Object
Computes the difference between two models and any problems that might occur due to those differences.
-
-
Method Summary
Modifier and Type Method Description static java.util.List<ValidationEvent>
compare(java.lang.ClassLoader classLoader, Model oldModel, Model newModel)
Evaluates the differences between two models.static java.util.List<ValidationEvent>
compare(Model oldModel, Model newModel)
Evaluates the differences between two models.
-
-
-
Method Detail
-
compare
public static java.util.List<ValidationEvent> compare(Model oldModel, Model newModel)
Evaluates the differences between two models.- Parameters:
oldModel
- Previous version of the model.newModel
- New model to compare.- Returns:
- Returns the computed validation events.
-
compare
public static java.util.List<ValidationEvent> compare(java.lang.ClassLoader classLoader, Model oldModel, Model newModel)
Evaluates the differences between two models.- Parameters:
classLoader
- ClassLoader used to findDiffEvaluator
service providers.oldModel
- Previous version of the model.newModel
- New model to compare.- Returns:
- Returns the computed validation events.
-
-