Class AbstractValidator
- java.lang.Object
-
- software.amazon.smithy.model.validation.AbstractValidator
-
- All Implemented Interfaces:
Validator
- Direct Known Subclasses:
AbbreviationNameValidator
,ArnTemplateValidator
,ArnTraitValidator
,AuthorizersTraitValidator
,AuthTraitValidator
,AwsSpecialCaseEndpointValidator
,CamelCaseValidator
,CfnMutabilityTraitValidator
,CfnResourcePropertyValidator
,ClientEndpointDiscoveryValidator
,ConditionKeysValidator
,DefaultTraitValidator
,DefaultValueInUpdateValidator
,DefineConditionKeysTraitValidator
,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
,HttpUriGreedyLabelValidator
,IamActionValidator
,IamResourceTraitConflictingNameValidator
,IamResourceTraitValidator
,IdempotencyTokenIgnoredValidator
,InputOutputStructureReuseValidator
,JsonNameValidator
,LengthTraitValidator
,MediaTypeValidator
,MemberShouldReferenceResourceValidator
,MissingClientOptionalTrait
,MissingPaginatedTraitValidator
,MissingSensitiveTraitValidator
,MqttTopicConflictValidator
,MqttTopicLabelValidator
,NoInlineDocumentSupportValidator
,NoninclusiveTermsValidator
,OperationContextParamsTraitValidator
,OperationValidator
,PaginatedTraitValidator
,PatternTraitValidator
,PrivateAccessValidator
,ProtocolHttpPayloadValidator
,ProtocolHttpValidator
,RangeTraitValidator
,ReferencesTraitValidator
,RepeatedShapeNameValidator
,RequestCompressionTraitValidator
,ReservedWordsValidator
,ResourceCycleValidator
,ResourceIdentifierBindingValidator
,ResourceIdentifierValidator
,ResourceLifecycleValidator
,ResourceOperationInputOutputValidator
,Rpcv2CborTraitValidator
,RuleSetAuthSchemesValidator
,RuleSetAwsBuiltInValidator
,RuleSetBuiltInValidator
,RuleSetParameterValidator
,RuleSetParamMissingDocsValidator
,RuleSetTestCaseValidator
,RuleSetUriValidator
,SdkServiceIdValidator
,ServiceAuthDefinitionsValidator
,ServiceBoundResourceOperationValidator
,ServiceTaggingValidator
,ServiceValidator
,SetValidator
,ShapeIdConflictValidator
,ShapeRecursionValidator
,ShouldHaveUsedTimestampValidator
,SigV4TraitsValidator
,SingleOperationBindingValidator
,SingleResourceBindingValidator
,SmokeTestCaseValidator
,StandardOperationVerbValidator
,StaticContextParamsTraitValidator
,StreamingTraitValidator
,StutteredShapeNameValidator
,TagEnabledServiceValidator
,TaggableResourceValidator
,TagResourcePropertyNameValidator
,TagResourcePropertyTypeValidator
,TargetValidator
,TraitBreakingChangesValidator
,TraitConflictValidator
,TraitTargetValidator
,TraitValidatorsValidator
,UnionValidator
,UniqueProtocolTestCaseIdValidator
,UniqueSmokeTestCaseIdValidator
,UniqueWaiterNamesValidator
,UnitTypeValidator
,UnreferencedShapeValidator
,UnreferencedShapeValidator
,UnstableTraitValidator
,WaitableTraitValidator
,XmlFlattenedTraitValidator
,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_DEPRECATION, MODEL_ERROR
-
-
Constructor Summary
Constructors Constructor Description AbstractValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValidationEvent
createEvent(Severity severity, Shape shape, FromSourceLocation loc, java.lang.String message)
protected ValidationEvent
createEvent(Severity severity, Shape shape, FromSourceLocation loc, java.lang.String message, java.lang.String eventIdSubpart1)
protected ValidationEvent
createEvent(Severity severity, Shape shape, FromSourceLocation loc, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
protected ValidationEvent
createEvent(Severity severity, Shape shape, FromSourceLocation loc, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
protected ValidationEvent
danger(Shape shape, java.lang.String message)
protected ValidationEvent
danger(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1)
protected ValidationEvent
danger(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
protected ValidationEvent
danger(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
protected ValidationEvent
danger(Shape shape, FromSourceLocation location, java.lang.String message)
protected ValidationEvent
danger(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1)
protected ValidationEvent
danger(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
protected ValidationEvent
danger(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
protected ValidationEvent
error(Shape shape, java.lang.String message)
protected ValidationEvent
error(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1)
protected ValidationEvent
error(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
protected ValidationEvent
error(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
protected ValidationEvent
error(Shape shape, FromSourceLocation location, java.lang.String message)
protected ValidationEvent
error(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1)
protected ValidationEvent
error(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
protected ValidationEvent
error(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
java.lang.String
getName()
protected ValidationEvent
note(Shape shape, java.lang.String message)
protected ValidationEvent
note(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1)
protected ValidationEvent
note(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
protected ValidationEvent
note(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
protected ValidationEvent
note(Shape shape, FromSourceLocation location, java.lang.String message)
protected ValidationEvent
note(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1)
protected ValidationEvent
note(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
protected ValidationEvent
note(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
protected ValidationEvent
warning(Shape shape, java.lang.String message)
protected ValidationEvent
warning(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1)
protected ValidationEvent
warning(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
protected ValidationEvent
warning(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
protected ValidationEvent
warning(Shape shape, FromSourceLocation location, java.lang.String message)
protected ValidationEvent
warning(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1)
protected ValidationEvent
warning(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
protected ValidationEvent
warning(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
-
-
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, java.lang.String message, java.lang.String eventIdSubpart1)
-
error
protected final ValidationEvent error(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
-
error
protected final ValidationEvent error(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
error
protected final ValidationEvent error(Shape shape, FromSourceLocation location, java.lang.String message)
-
error
protected final ValidationEvent error(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1)
-
error
protected final ValidationEvent error(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
-
error
protected final ValidationEvent error(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
danger
protected final ValidationEvent danger(Shape shape, java.lang.String message)
-
danger
protected final ValidationEvent danger(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1)
-
danger
protected final ValidationEvent danger(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
-
danger
protected final ValidationEvent danger(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
danger
protected final ValidationEvent danger(Shape shape, FromSourceLocation location, java.lang.String message)
-
danger
protected final ValidationEvent danger(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1)
-
danger
protected final ValidationEvent danger(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
-
danger
protected final ValidationEvent danger(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
warning
protected final ValidationEvent warning(Shape shape, java.lang.String message)
-
warning
protected final ValidationEvent warning(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1)
-
warning
protected final ValidationEvent warning(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
-
warning
protected final ValidationEvent warning(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
warning
protected final ValidationEvent warning(Shape shape, FromSourceLocation location, java.lang.String message)
-
warning
protected final ValidationEvent warning(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1)
-
warning
protected final ValidationEvent warning(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
-
warning
protected final ValidationEvent warning(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
note
protected final ValidationEvent note(Shape shape, java.lang.String message)
-
note
protected final ValidationEvent note(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1)
-
note
protected final ValidationEvent note(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
-
note
protected final ValidationEvent note(Shape shape, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
note
protected final ValidationEvent note(Shape shape, FromSourceLocation location, java.lang.String message)
-
note
protected final ValidationEvent note(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1)
-
note
protected final ValidationEvent note(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
-
note
protected final ValidationEvent note(Shape shape, FromSourceLocation location, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
createEvent
protected final ValidationEvent createEvent(Severity severity, Shape shape, FromSourceLocation loc, java.lang.String message)
-
createEvent
protected final ValidationEvent createEvent(Severity severity, Shape shape, FromSourceLocation loc, java.lang.String message, java.lang.String eventIdSubpart1)
-
createEvent
protected final ValidationEvent createEvent(Severity severity, Shape shape, FromSourceLocation loc, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2)
-
createEvent
protected final ValidationEvent createEvent(Severity severity, Shape shape, FromSourceLocation loc, java.lang.String message, java.lang.String eventIdSubpart1, java.lang.String eventIdSubpart2, java.lang.String eventIdSubpart3)
-
-