Class ValidationUtils
java.lang.Object
software.amazon.smithy.model.validation.ValidationUtils
Utility methods used when validating.
-
Method Summary
Modifier and TypeMethodDescriptionfindDuplicateShapeNames
(Collection<T> shapes) Deprecated.static String
orderedTickedList
(Collection<?> values) Creates a comma separated string made up of the given collection.splitCamelCaseWord
(String word) Splits a camelCase word into a list of words.static String
tickedList
(Collection<?> values) Creates a comma separated string made up of the given collection.static String
tickedList
(Stream<?> values)
-
Method Details
-
splitCamelCaseWord
Splits a camelCase word into a list of words.- Parameters:
word
- Word to split.- Returns:
- Returns the split words.
-
orderedTickedList
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
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
-
findDuplicateShapeNames
@Deprecated public static <T extends ToShapeId> Map<String,List<ShapeId>> findDuplicateShapeNames(Collection<T> shapes) Deprecated.
-