Package org.labkey.remoteapi.assay
Class AssayListResponse
java.lang.Object
org.labkey.remoteapi.CommandResponse
org.labkey.remoteapi.assay.AssayListResponse
Response class for the
AssayListCommand
. This class
provides helpful getter method to access particular bits of the parsed
response data.-
Constructor Summary
ConstructorsConstructorDescriptionAssayListResponse
(String text, int statusCode, String contentType, org.json.JSONObject json) Constructs a new AssayListResponse -
Method Summary
Modifier and TypeMethodDescriptiongetDefinition
(int id) Returns an assay definition for the assay identified by the specified id.getDefinition
(String name) Returns an assay definition for the assay identified by the specified name.Returns the definitions section of the response.Methods inherited from class org.labkey.remoteapi.CommandResponse
findObject, getContentType, getParsedData, getProperty, getProperty, getStatusCode, getText
-
Constructor Details
-
AssayListResponse
Constructs a new AssayListResponse- Parameters:
text
- The response text.statusCode
- The HTTP status code.contentType
- The HTTP response content typejson
- The parsed JSONObject (or null if JSON was not returned)
-
-
Method Details
-
getDefinitions
Returns the definitions section of the response. This returns a list of assay definition Maps, each of which contains properties about the particular assay definition.- Returns:
- The list of definitions.
-
getDefinition
Returns an assay definition for the assay identified by the specified name.- Parameters:
name
- The name of the assay definition to find.- Returns:
- The assay definition or null if not found.
-
getDefinition
Returns an assay definition for the assay identified by the specified id.- Parameters:
id
- The id of the assay definition to find.- Returns:
- The assay definition or null if not found.
-