public class TagUtils
extends java.lang.Object
| Constructor and Description |
|---|
TagUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,io.swagger.models.Tag> |
convertTagsListToMap(java.util.List<io.swagger.models.Tag> tags)
Converts the global Tag list into a Map where the tag name is the key and the Tag the value.
|
static com.google.common.base.Optional<java.lang.String> |
getTagDescription(java.util.Map<java.lang.String,io.swagger.models.Tag> tagsMap,
java.lang.String tagName)
Retrieves the optional description of a tag.
|
static com.google.common.collect.Multimap<java.lang.String,org.apache.commons.lang3.tuple.Pair<java.lang.String,io.swagger.models.Path>> |
groupPathsByTag(java.util.Map<java.lang.String,io.swagger.models.Path> paths)
Groups the paths by tag.
|
public static java.util.Map<java.lang.String,io.swagger.models.Tag> convertTagsListToMap(java.util.List<io.swagger.models.Tag> tags)
tags - the List of tagspublic static com.google.common.base.Optional<java.lang.String> getTagDescription(java.util.Map<java.lang.String,io.swagger.models.Tag> tagsMap,
java.lang.String tagName)
tagsMap - the Map of tagstagName - the name of the tagpublic static com.google.common.collect.Multimap<java.lang.String,org.apache.commons.lang3.tuple.Pair<java.lang.String,io.swagger.models.Path>> groupPathsByTag(java.util.Map<java.lang.String,io.swagger.models.Path> paths)
paths - the Paths