Class AbstractValidator
- java.lang.Object
-
- software.amazon.smithy.model.validation.AbstractValidator
-
- All Implemented Interfaces:
Validator
- Direct Known Subclasses:
AbbreviationNameValidator
,ArnTemplateValidator
,AuthorizersTraitValidator
,AuthTraitValidator
,CamelCaseValidator
,CfnMutabilityTraitValidator
,CfnResourcePropertyValidator
,ClientEndpointDiscoveryValidator
,ConditionKeysValidator
,DeprecatedTraitValidator
,EmitEachSelectorValidator
,EmitNoneSelectorValidator
,EnumTraitValidator
,EventPayloadTraitValidator
,EventSourceValidator
,ExamplesTraitValidator
,ExclusiveStructureMemberTraitValidator
,HostLabelTraitValidator
,HttpBindingsMissingValidator
,HttpHeaderTraitValidator
,HttpLabelTraitValidator
,HttpMethodSemanticsValidator
,HttpPayloadValidator
,HttpPrefixHeadersTraitValidator
,HttpQueryTraitValidator
,HttpRequestTestsInputValidator
,HttpResponseCodeSemanticsValidator
,HttpResponseTestsOutputValidator
,HttpUriConflictValidator
,InputOutputStructureReuseValidator
,LengthTraitValidator
,MediaTypeValidator
,MissingPaginatedTraitValidator
,MqttPublishInputValidator
,MqttSubscribeInputValidator
,MqttSubscribeOutputValidator
,MqttTopicConflictValidator
,MqttTopicLabelValidator
,MqttUnsupportedErrorsValidator
,NoInlineDocumentSupportValidator
,PaginatedTraitValidator
,PrivateAccessValidator
,ProtocolHttpPayloadValidator
,ProtocolHttpValidator
,RangeTraitValidator
,ReferencesTraitValidator
,ReservedWordsValidator
,ResourceCycleValidator
,ResourceIdentifierBindingValidator
,ResourceIdentifierValidator
,ResourceLifecycleValidator
,SdkServiceIdValidator
,SensitiveTraitValidator
,ServiceValidator
,ShapeIdConflictValidator
,ShapeRecursionValidator
,ShouldHaveUsedTimestampValidator
,SingleOperationBindingValidator
,SingleResourceBindingValidator
,StandardOperationVerbValidator
,StreamingTraitValidator
,StutteredShapeNameValidator
,TargetValidator
,TraitConflictValidator
,TraitTargetValidator
,UniqueProtocolTestCaseIdValidator
,UniqueWaiterNamesValidator
,UnreferencedShapeValidator
,UnstableTraitValidator
,WaitableTraitValidator
,XmlNamespaceTraitValidator
public abstract class AbstractValidator extends java.lang.Object implements Validator
Abstract Validator class that has helpful methods for emitting events.
-
-
Field Summary
-
Fields inherited from interface software.amazon.smithy.model.validation.Validator
MODEL_ERROR
-
-
Constructor Summary
Constructors Constructor Description AbstractValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValidationEvent
danger(Shape shape, java.lang.String message)
protected ValidationEvent
danger(Shape shape, FromSourceLocation location, java.lang.String message)
protected ValidationEvent
error(Shape shape, java.lang.String message)
protected ValidationEvent
error(Shape shape, FromSourceLocation location, java.lang.String message)
java.lang.String
getName()
protected ValidationEvent
note(Shape shape, java.lang.String message)
protected ValidationEvent
note(Shape shape, FromSourceLocation location, java.lang.String message)
protected ValidationEvent
warning(Shape shape, java.lang.String message)
protected ValidationEvent
warning(Shape shape, FromSourceLocation location, java.lang.String message)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
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)
-
-