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
-
Method Summary
Modifier and TypeMethodDescriptionprotected final ValidationEvent
protected final ValidationEvent
danger
(Shape shape, FromSourceLocation location, String message) protected final ValidationEvent
protected final ValidationEvent
error
(Shape shape, FromSourceLocation location, String message) protected String
Gets the event ID of the evaluator.protected final ValidationEvent
protected final ValidationEvent
note
(Shape shape, FromSourceLocation location, String message) protected final ValidationEvent
protected final ValidationEvent
warning
(Shape shape, FromSourceLocation location, String message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-