Package software.amazon.smithy.linters
Class NoninclusiveTermsValidator
- java.lang.Object
-
- software.amazon.smithy.model.validation.AbstractValidator
-
- software.amazon.smithy.linters.NoninclusiveTermsValidator
-
- All Implemented Interfaces:
Validator
public final class NoninclusiveTermsValidator extends AbstractValidator
Validates that all shape names and values do not contain non-inclusive terms.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NoninclusiveTermsValidator.Config
NoninclusiveTermsValidator configuration.static class
NoninclusiveTermsValidator.Provider
-
Field Summary
-
Fields inherited from interface software.amazon.smithy.model.validation.Validator
MODEL_DEPRECATION, MODEL_ERROR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ValidationEvent>
validate(Model model)
Runs a full text scan on a given model and stores the resulting TextOccurrences objects.-
Methods inherited from class software.amazon.smithy.model.validation.AbstractValidator
createEvent, createEvent, createEvent, createEvent, danger, danger, danger, danger, danger, danger, danger, danger, error, error, error, error, error, error, error, error, getName, note, note, note, note, note, note, note, note, warning, warning, warning, warning, warning, warning, warning, warning
-
-
-
-
Method Detail
-
validate
public java.util.List<ValidationEvent> validate(Model model)
Runs a full text scan on a given model and stores the resulting TextOccurrences objects. Namespaces are checked against a global set per model.- Parameters:
model
- Model to validate.- Returns:
- a list of ValidationEvents found by the implementer of getValidationEvents per the TextOccurrences provided by this traversal.
-
-