Package ubic.gemma.rest.util.args
Class SortArg<O extends Identifiable>
- java.lang.Object
-
- ubic.gemma.rest.util.args.AbstractArg<SortArg.Sort>
-
- ubic.gemma.rest.util.args.SortArg<O>
-
- All Implemented Interfaces:
Arg<SortArg.Sort>
public class SortArg<O extends Identifiable> extends AbstractArg<SortArg.Sort>
Class representing an API argument that should be an integer.- Author:
- tesarst
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SortArg.Sort
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Identifiable>
SortArg<T>valueOf(String s)
Used by RS to parse value of request parameters.-
Methods inherited from class ubic.gemma.rest.util.args.AbstractArg
getValue, toString
-
-
-
-
Method Detail
-
valueOf
public static <T extends Identifiable> SortArg<T> valueOf(String s) throws MalformedArgException
Used by RS to parse value of request parameters.- Parameters:
s
- the request taxon argument- Returns:
- a new SortArg object representing the sort options in the given string, or a malformed SortArg that will
throw a
BadRequestException
, if the given string was not well-formed. - Throws:
MalformedArgException
-
-