Class NoninclusiveTermsValidator

java.lang.Object
software.amazon.smithy.model.validation.AbstractValidator
software.amazon.smithy.linters.NoninclusiveTermsValidator
All Implemented Interfaces:
software.amazon.smithy.model.validation.Validator

public final class NoninclusiveTermsValidator extends software.amazon.smithy.model.validation.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 final class 
    NoninclusiveTermsValidator configuration.
    static final class 
     
  • Field Summary

    Fields inherited from interface software.amazon.smithy.model.validation.Validator

    MODEL_DEPRECATION, MODEL_ERROR
  • Method Summary

    Modifier and Type
    Method
    Description
    List<software.amazon.smithy.model.validation.ValidationEvent>
    validate(software.amazon.smithy.model.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • validate

      public List<software.amazon.smithy.model.validation.ValidationEvent> validate(software.amazon.smithy.model.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.