Class ExpansionsParser
java.lang.Object
com.atlassian.servicedesk.api.util.expansion.ExpansionsParser
Converts
Expansion
s to and from a String for use with REST calls say.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Converts a collection ofExpansion
s into a single string.static String
asString
(Expansions expansions) Converts aExpansions
collection into a single string.static Expansion[]
Converts a string representation of a collection of Expansions back into anExpansion
array.static Expansions
static Expansions
parseAsExpansions
(String expand) Converts a string representation of a collection ofExpansions
into an Expansions instance.static Expansions
parseAsExpansions
(List<String> expands) Converts list of string representations ofExpansion
s into an Expansions instance.static Expansion
parseSingle
(String expand) Converts a string representation of a single Expansion back into an Expansion.static Expansions
parseWithPrefix
(String prefix, String expansions)
-
Constructor Details
-
ExpansionsParser
public ExpansionsParser()
-
-
Method Details
-
parse
Converts a string representation of a collection of Expansions back into anExpansion
array. -
parseAsExpansions
Converts list of string representations ofExpansion
s into an Expansions instance. If the given list contains a single element, attempts to parse it as a collection of expansions (i.e comma-separated) -
parseAsExpansions
Converts a string representation of a collection ofExpansions
into an Expansions instance. -
parseSingle
Converts a string representation of a single Expansion back into an Expansion. -
asString
Converts aExpansions
collection into a single string. -
asString
Converts a collection ofExpansion
s into a single string. -
parse
-
parseWithPrefix
-