Package ubic.gemma.rest.util.args
Class AbstractArg<T>
- java.lang.Object
-
- ubic.gemma.rest.util.args.AbstractArg<T>
-
- All Implemented Interfaces:
Arg<T>
- Direct Known Subclasses:
AbstractArrayArg
,AbstractEntityArg
,ExpLevelConsolidationArg
,FilterArg
,LimitArg
,OffsetArg
,SortArg
public abstract class AbstractArg<T> extends Object implements Arg<T>
Base class for non Object-specific functionality argument types, that can be malformed on input (E.g an argument representing a number was a non-numeric string in the request). TheSchema
annotation used in sub-classes ensures that custom args are represented by a string in the OpenAPI specification.- Author:
- tesarst
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractArg(T value)
Constructor for well-formed value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
Obtain the value represented by this argument.String
toString()
-