Class NodeValidatorPlugin.Context
java.lang.Object
software.amazon.smithy.model.validation.node.NodeValidatorPlugin.Context
- Enclosing interface:
- NodeValidatorPlugin
Validation context to pass to each NodeValidatorPlugin.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasFeature
(NodeValidationVisitor.Feature feature) model()
Get the model being evaluated.Select and memoize shapes from the model using a Selector.void
setReferringMember
(MemberShape referringMember)
-
Constructor Details
-
Context
- Parameters:
model
- Model being evaluated.
-
Context
-
-
Method Details
-
model
Get the model being evaluated.- Returns:
- Returns the model.
-
select
Select and memoize shapes from the model using a Selector.The cache used by this method is not thread-safe, though that's fine because NodeValidatorPlugins using the same Context all run within the same thread.
- Parameters:
selector
- Selector to evaluate.- Returns:
- Returns the matching shapes.
-
hasFeature
-
setReferringMember
-
getReferringMember
-