Class AbstractArg<T>
java.lang.Object
ubic.gemma.rest.util.args.AbstractArg<T>
- All Implemented Interfaces:
Arg<T>
- Direct Known Subclasses:
AbstractArrayArg, AbstractEntityArg, CursorArg, ExpLevelConsolidationArg, FilterArg, LimitArg, OffsetArg, SortArg
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).
The Schema annotation used in subclasses ensures that custom args are represented by a string in the OpenAPI
specification.
- Author:
- tesarst
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AbstractArg
Constructor for well-formed value.Note that well-formed values can never be null. Although, the argument itself can be null to represent a value that is omitted by the request.
- Parameters:
value- a well-formed value which cannot be null
-
-
Method Details
-
getValue
Obtain the value represented by this argument.- Specified by:
getValuein interfaceArg<T>- Returns:
- the value represented by this argument, which can never be null
- Throws:
MalformedArgException- if this arg is malformed
-
toString
-