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