Class DocValidationEventDecorator
java.lang.Object
software.amazon.smithy.docgen.validation.DocValidationEventDecorator
- All Implemented Interfaces:
ValidationEventDecorator
Adds context to validation events describing how they impact docs.
-
Field Summary
Fields inherited from interface software.amazon.smithy.model.validation.ValidationEventDecorator
IDENTITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecorate
(ValidationEvent event) Returns true if this decorator knows how to decorate this event, usually by looking at the event id.decorate
(ValidationEvent event) Takes an event and potentially updates it to decorate it.
-
Constructor Details
-
DocValidationEventDecorator
public DocValidationEventDecorator()
-
-
Method Details
-
canDecorate
Description copied from interface:ValidationEventDecorator
Returns true if this decorator knows how to decorate this event, usually by looking at the event id.- Specified by:
canDecorate
in interfaceValidationEventDecorator
- Parameters:
event
- The event to test against- Returns:
- true if this decorator knows how to decorate this event
-
decorate
Description copied from interface:ValidationEventDecorator
Takes an event and potentially updates it to decorate it. Returns the same event if this decorators does not know how to handle the event.- Specified by:
decorate
in interfaceValidationEventDecorator
- Returns:
- The decorated event or the original one if no decoration took place.
-