Class AbstractValidator
java.lang.Object
software.amazon.smithy.model.validation.AbstractValidator
- All Implemented Interfaces:
Validator
- Direct Known Subclasses:
AbbreviationNameValidator
,ArnTemplateValidator
,AuthorizersTraitValidator
,AuthTraitValidator
,AwsSpecialCaseEndpointValidator
,CamelCaseValidator
,CfnMutabilityTraitValidator
,CfnResourcePropertyValidator
,ClientEndpointDiscoveryValidator
,ConditionKeysValidator
,DefaultTraitValidator
,DefaultValueInUpdateValidator
,DeprecatedTraitValidator
,EmitEachSelectorValidator
,EmitNoneSelectorValidator
,EndpointTestsTraitValidator
,EnumShapeValidator
,EnumTraitValidator
,ErrorRenameValidator
,EventPayloadTraitValidator
,EventSourceValidator
,ExamplesTraitValidator
,ExclusiveStructureMemberTraitValidator
,HostLabelTraitValidator
,HttpApiKeyAuthTraitValidator
,HttpBindingsMissingValidator
,HttpBindingTraitIgnoredValidator
,HttpChecksumTraitValidator
,HttpHeaderTraitValidator
,HttpLabelTraitValidator
,HttpMalformedRequestTestsValidator
,HttpMethodSemanticsValidator
,HttpPayloadValidator
,HttpPrefixHeadersTraitValidator
,HttpQueryParamsTraitValidator
,HttpQueryTraitValidator
,HttpRequestTestsInputValidator
,HttpResponseCodeSemanticsValidator
,HttpResponseTestsOutputValidator
,HttpUriConflictValidator
,HttpUriFormatValidator
,IamActionValidator
,IamResourceTraitValidator
,InputOutputStructureReuseValidator
,JsonNameValidator
,LengthTraitValidator
,MediaTypeValidator
,MissingClientOptionalTrait
,MissingPaginatedTraitValidator
,MissingSensitiveTraitValidator
,MqttPublishInputValidator
,MqttSubscribeInputValidator
,MqttSubscribeOutputValidator
,MqttTopicConflictValidator
,MqttTopicLabelValidator
,MqttUnsupportedErrorsValidator
,NoInlineDocumentSupportValidator
,NoninclusiveTermsValidator
,OperationValidator
,PaginatedTraitValidator
,PatternTraitValidator
,PrivateAccessValidator
,ProtocolHttpPayloadValidator
,ProtocolHttpValidator
,RangeTraitValidator
,ReferencesTraitValidator
,RepeatedShapeNameValidator
,RequestCompressionTraitValidator
,ReservedWordsValidator
,ResourceCycleValidator
,ResourceIdentifierBindingValidator
,ResourceIdentifierValidator
,ResourceLifecycleValidator
,ResourceOperationInputOutputValidator
,RuleSetAuthSchemesValidator
,RuleSetAwsBuiltInValidator
,RuleSetBuiltInValidator
,RuleSetParameterValidator
,RuleSetParamMissingDocsValidator
,RuleSetTestCaseValidator
,RuleSetUriValidator
,SdkServiceIdValidator
,ServiceAuthDefinitionsValidator
,ServiceTaggingValidator
,ServiceValidator
,SetValidator
,ShapeIdConflictValidator
,ShapeRecursionValidator
,ShouldHaveUsedTimestampValidator
,SigV4TraitsValidator
,SingleOperationBindingValidator
,SingleResourceBindingValidator
,SmokeTestCaseValidator
,StandardOperationVerbValidator
,StaticContextParamsTraitValidator
,StreamingTraitValidator
,StutteredShapeNameValidator
,TagEnabledServiceValidator
,TaggableResourceValidator
,TagResourcePropertyNameValidator
,TagResourcePropertyTypeValidator
,TargetValidator
,TraitBreakingChangesValidator
,TraitConflictValidator
,TraitTargetValidator
,UnionValidator
,UniqueProtocolTestCaseIdValidator
,UniqueSmokeTestCaseIdValidator
,UniqueWaiterNamesValidator
,UnitTypeValidator
,UnreferencedShapeValidator
,UnreferencedShapeValidator
,UnstableTraitValidator
,WaitableTraitValidator
,XmlNamespaceTraitValidator
Abstract Validator class that has helpful methods for emitting events.
-
Field Summary
Fields inherited from interface software.amazon.smithy.model.validation.Validator
MODEL_DEPRECATION, MODEL_ERROR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ValidationEvent
createEvent
(Severity severity, Shape shape, FromSourceLocation loc, String message) protected final ValidationEvent
createEvent
(Severity severity, Shape shape, FromSourceLocation loc, String message, String eventIdSubpart1) protected final ValidationEvent
createEvent
(Severity severity, Shape shape, FromSourceLocation loc, String message, String eventIdSubpart1, String eventIdSubpart2) protected final ValidationEvent
createEvent
(Severity severity, Shape shape, FromSourceLocation loc, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) protected final ValidationEvent
protected final ValidationEvent
protected final ValidationEvent
protected final ValidationEvent
danger
(Shape shape, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) protected final ValidationEvent
danger
(Shape shape, FromSourceLocation location, String message) protected final ValidationEvent
danger
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1) protected final ValidationEvent
danger
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2) protected final ValidationEvent
danger
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) protected final ValidationEvent
protected final ValidationEvent
protected final ValidationEvent
protected final ValidationEvent
error
(Shape shape, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) protected final ValidationEvent
error
(Shape shape, FromSourceLocation location, String message) protected final ValidationEvent
error
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1) protected final ValidationEvent
error
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2) protected final ValidationEvent
error
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) getName()
protected final ValidationEvent
protected final ValidationEvent
protected final ValidationEvent
protected final ValidationEvent
note
(Shape shape, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) protected final ValidationEvent
note
(Shape shape, FromSourceLocation location, String message) protected final ValidationEvent
note
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1) protected final ValidationEvent
note
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2) protected final ValidationEvent
note
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) protected final ValidationEvent
protected final ValidationEvent
protected final ValidationEvent
protected final ValidationEvent
warning
(Shape shape, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) protected final ValidationEvent
warning
(Shape shape, FromSourceLocation location, String message) protected final ValidationEvent
warning
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1) protected final ValidationEvent
warning
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2) protected final ValidationEvent
warning
(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3)
-
Constructor Details
-
AbstractValidator
public AbstractValidator()
-
-
Method Details
-
getName
-
error
-
error
-
error
protected final ValidationEvent error(Shape shape, String message, String eventIdSubpart1, String eventIdSubpart2) -
error
-
error
-
error
protected final ValidationEvent error(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1) -
error
protected final ValidationEvent error(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2) -
error
protected final ValidationEvent error(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) -
danger
-
danger
-
danger
protected final ValidationEvent danger(Shape shape, String message, String eventIdSubpart1, String eventIdSubpart2) -
danger
-
danger
-
danger
protected final ValidationEvent danger(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1) -
danger
protected final ValidationEvent danger(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2) -
danger
protected final ValidationEvent danger(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) -
warning
-
warning
-
warning
protected final ValidationEvent warning(Shape shape, String message, String eventIdSubpart1, String eventIdSubpart2) -
warning
-
warning
-
warning
protected final ValidationEvent warning(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1) -
warning
protected final ValidationEvent warning(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2) -
warning
protected final ValidationEvent warning(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) -
note
-
note
-
note
protected final ValidationEvent note(Shape shape, String message, String eventIdSubpart1, String eventIdSubpart2) -
note
-
note
-
note
protected final ValidationEvent note(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1) -
note
protected final ValidationEvent note(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2) -
note
protected final ValidationEvent note(Shape shape, FromSourceLocation location, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3) -
createEvent
protected final ValidationEvent createEvent(Severity severity, Shape shape, FromSourceLocation loc, String message) -
createEvent
protected final ValidationEvent createEvent(Severity severity, Shape shape, FromSourceLocation loc, String message, String eventIdSubpart1) -
createEvent
protected final ValidationEvent createEvent(Severity severity, Shape shape, FromSourceLocation loc, String message, String eventIdSubpart1, String eventIdSubpart2) -
createEvent
protected final ValidationEvent createEvent(Severity severity, Shape shape, FromSourceLocation loc, String message, String eventIdSubpart1, String eventIdSubpart2, String eventIdSubpart3)
-