Class ExpansionsParser

java.lang.Object
com.atlassian.servicedesk.api.util.expansion.ExpansionsParser

@PublicApi public class ExpansionsParser extends Object
Converts Expansions to and from a String for use with REST calls say.
  • Constructor Details

    • ExpansionsParser

      public ExpansionsParser()
  • Method Details

    • parse

      public static Expansion[] parse(String expand)
      Converts a string representation of a collection of Expansions back into an Expansion array.
    • parseAsExpansions

      public static Expansions parseAsExpansions(List<String> expands)
      Converts list of string representations of Expansions 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

      public static Expansions parseAsExpansions(String expand)
      Converts a string representation of a collection of Expansions into an Expansions instance.
    • parseSingle

      public static Expansion parseSingle(String expand)
      Converts a string representation of a single Expansion back into an Expansion.
    • asString

      public static String asString(Expansions expansions)
      Converts a Expansions collection into a single string.
    • asString

      public static String asString(Expansion[] expansionsArr)
      Converts a collection of Expansions into a single string.
    • parse

      public static Expansions parse(String... individualExpansions)
    • parseWithPrefix

      public static Expansions parseWithPrefix(String prefix, String expansions)