Class AbstractDiffEvaluator
java.lang.Object
software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
- All Implemented Interfaces:
DiffEvaluator
- Direct Known Subclasses:
AddedEntityBinding,AddedMetadata,AddedOperationError,AddedServiceError,AddedShape,AddedTraitDefinition,ChangedDefault,ChangedEnumTrait,ChangedLengthTrait,ChangedMemberOrder,ChangedMemberTarget,ChangedMetadata,ChangedNullability,ChangedOperationInput,ChangedOperationOutput,ChangedRangeTrait,ChangedResourceIdentifiers,ChangedShapeType,ModifiedTrait,RemovedAuthenticationScheme,RemovedEntityBinding,RemovedMetadata,RemovedOperationError,RemovedServiceError,RemovedShape,RemovedTraitDefinition,ServiceRename,TraitBreakingChange
Provides a default diff evaluator implementation with utility methods
for emitting events of different severities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ValidationEventprotected final ValidationEventdanger(Shape shape, FromSourceLocation location, String message) protected final ValidationEventprotected final ValidationEventerror(Shape shape, FromSourceLocation location, String message) protected StringGets the event ID of the evaluator.protected final ValidationEventprotected final ValidationEventnote(Shape shape, FromSourceLocation location, String message) protected final ValidationEventprotected final ValidationEventwarning(Shape shape, FromSourceLocation location, String message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.smithy.diff.DiffEvaluator
evaluate
-
Constructor Details
-
AbstractDiffEvaluator
public AbstractDiffEvaluator()
-
-
Method Details
-
getEventId
Gets the event ID of the evaluator.This can be overridden in subclasses to use a different ID.
- Returns:
- Returns the computed event ID.
-
error
-
error
-
danger
-
danger
-
warning
-
warning
-
note
-
note
-