Class NodeValidatorPlugin.Context
- java.lang.Object
- 
- software.amazon.smithy.model.validation.node.NodeValidatorPlugin.Context
 
- 
- Enclosing interface:
- NodeValidatorPlugin
 
 public static final class NodeValidatorPlugin.Context extends java.lang.ObjectValidation context to pass to each NodeValidatorPlugin.
- 
- 
Constructor SummaryConstructors Constructor Description Context(Model model)Context(Model model, java.util.Set<NodeValidationVisitor.Feature> features)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<MemberShape>getReferringMember()booleanhasFeature(NodeValidationVisitor.Feature feature)Modelmodel()Get the model being evaluated.java.util.Set<Shape>select(Selector selector)Select and memoize shapes from the model using a Selector.voidsetReferringMember(MemberShape referringMember)
 
- 
- 
- 
Constructor Detail- 
Contextpublic Context(Model model) - Parameters:
- model- Model being evaluated.
 
 - 
Contextpublic Context(Model model, java.util.Set<NodeValidationVisitor.Feature> features) 
 
- 
 - 
Method Detail- 
modelpublic Model model() Get the model being evaluated.- Returns:
- Returns the model.
 
 - 
selectpublic java.util.Set<Shape> select(Selector selector) 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.
 
 - 
hasFeaturepublic boolean hasFeature(NodeValidationVisitor.Feature feature) 
 - 
setReferringMemberpublic void setReferringMember(MemberShape referringMember) 
 - 
getReferringMemberpublic java.util.Optional<MemberShape> getReferringMember() 
 
- 
 
-