Class ValidationUtils

java.lang.Object
software.amazon.smithy.model.validation.ValidationUtils

public final class ValidationUtils extends Object
Utility methods used when validating.
  • Method Details

    • splitCamelCaseWord

      public static List<String> splitCamelCaseWord(String word)
      Splits a camelCase word into a list of words.
      Parameters:
      word - Word to split.
      Returns:
      Returns the split words.
    • orderedTickedList

      public static String orderedTickedList(Collection<?> values)
      Creates a comma separated string made up of the given collection. Each value is surrounded by "`", and the values are sorted to make it easier to write tests against the messages.
      Parameters:
      values - Values to turn into a comma separated list.
      Returns:
      Returns the string.
    • tickedList

      public static String tickedList(Collection<?> values)
      Creates a comma separated string made up of the given collection. Each value is surrounded by "`", and the values are sorted to make it easier to write tests against the messages.
      Parameters:
      values - Values to turn into a comma separated list.
      Returns:
      Returns the string.
    • tickedList

      public static String tickedList(Stream<?> values)
    • findDuplicateShapeNames

      @Deprecated public static <T extends ToShapeId> Map<String,List<ShapeId>> findDuplicateShapeNames(Collection<T> shapes)
      Deprecated.