Class ContextualValidationEventFormatter
- java.lang.Object
-
- software.amazon.smithy.model.validation.ContextualValidationEventFormatter
-
- All Implemented Interfaces:
ValidationEventFormatter
public final class ContextualValidationEventFormatter extends java.lang.Object implements ValidationEventFormatter
This validation event formatter outputs a validation event that points to the source code line that triggered the event.If the event does not have a source location, then this formatter will not attempt to load the contents of the model.
This formatter outputs messages similar to the following text:
{@code ERROR: aws.protocols.tests.ec2#IgnoresWrappingXmlName (Model)
-
-
Constructor Summary
Constructors Constructor Description ContextualValidationEventFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(ValidationEvent event)
Converts the event to a string.
-
-
-
Method Detail
-
format
public java.lang.String format(ValidationEvent event)
Description copied from interface:ValidationEventFormatter
Converts the event to a string.- Specified by:
format
in interfaceValidationEventFormatter
- Parameters:
event
- Event to write as a string.- Returns:
- Returns the event as a formatted string.
-
-