Class AbstractDiffEvaluator
- java.lang.Object
-
- software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
-
- All Implemented Interfaces:
DiffEvaluator
- Direct Known Subclasses:
AddedEntityBinding,AddedMetadata,AddedOperationError,AddedRequiredMember,AddedServiceError,AddedShape,AddedTraitDefinition,ChangedDefault,ChangedEnumTrait,ChangedLengthTrait,ChangedMemberOrder,ChangedMemberTarget,ChangedMetadata,ChangedNullability,ChangedOperationInput,ChangedOperationOutput,ChangedRangeTrait,ChangedResourceIdentifiers,ChangedShapeType,EndpointSigV4Migration,ModifiedTrait,RemovedAuthenticationScheme,RemovedEntityBinding,RemovedMetadata,RemovedOperationError,RemovedServiceError,RemovedShape,RemovedTraitDefinition,ServiceRename,SigV4Migration,TraitBreakingChange
public abstract class AbstractDiffEvaluator extends java.lang.Object implements DiffEvaluator
Provides a default diff evaluator implementation with utility methods for emitting events of different severities.
-
-
Constructor Summary
Constructors Constructor Description AbstractDiffEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValidationEventdanger(Shape shape, java.lang.String message)protected ValidationEventdanger(Shape shape, FromSourceLocation location, java.lang.String message)protected ValidationEventerror(Shape shape, java.lang.String message)protected ValidationEventerror(Shape shape, FromSourceLocation location, java.lang.String message)protected java.lang.StringgetEventId()Gets the event ID of the evaluator.protected ValidationEventnote(Shape shape, java.lang.String message)protected ValidationEventnote(Shape shape, FromSourceLocation location, java.lang.String message)protected ValidationEventwarning(Shape shape, java.lang.String message)protected ValidationEventwarning(Shape shape, FromSourceLocation location, java.lang.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
-
-
-
-
Method Detail
-
getEventId
protected java.lang.String 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
protected final ValidationEvent error(Shape shape, java.lang.String message)
-
error
protected final ValidationEvent error(Shape shape, FromSourceLocation location, java.lang.String message)
-
danger
protected final ValidationEvent danger(Shape shape, java.lang.String message)
-
danger
protected final ValidationEvent danger(Shape shape, FromSourceLocation location, java.lang.String message)
-
warning
protected final ValidationEvent warning(Shape shape, java.lang.String message)
-
warning
protected final ValidationEvent warning(Shape shape, FromSourceLocation location, java.lang.String message)
-
note
protected final ValidationEvent note(Shape shape, java.lang.String message)
-
note
protected final ValidationEvent note(Shape shape, FromSourceLocation location, java.lang.String message)
-
-