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 SummaryConstructors Constructor Description ContextualValidationEventFormatter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringformat(ValidationEvent event)Converts the event to a string.
 
- 
- 
- 
Method Detail- 
formatpublic java.lang.String format(ValidationEvent event) Description copied from interface:ValidationEventFormatterConverts the event to a string.- Specified by:
- formatin interface- ValidationEventFormatter
- Parameters:
- event- Event to write as a string.
- Returns:
- Returns the event as a formatted string.
 
 
- 
 
-