Package ubic.gemma.rest.util.args
Class StringArrayArg
- java.lang.Object
-
- ubic.gemma.rest.util.args.AbstractArg<List<T>>
-
- ubic.gemma.rest.util.args.AbstractArrayArg<String>
-
- ubic.gemma.rest.util.args.StringArrayArg
-
public class StringArrayArg extends AbstractArrayArg<String>
Class representing an API argument that should be an array of Strings.- Author:
- tesarst
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringArrayArg
valueOf(String s)
Used by RS to parse value of request parameters.-
Methods inherited from class ubic.gemma.rest.util.args.AbstractArrayArg
splitAndTrim
-
Methods inherited from class ubic.gemma.rest.util.args.AbstractArg
getValue, toString
-
-
-
-
Method Detail
-
valueOf
public static StringArrayArg valueOf(String s)
Used by RS to parse value of request parameters.- Parameters:
s
- the request arrayString argument- Returns:
- an instance of ArrayStringArg representing array of strings from the input string, or a malformed
ArrayStringArg that will throw an
BadRequestException
when accessing its value, if the input String can not be converted into an array of strings.
-
-