public class AssayListResponse extends CommandResponse
AssayListCommand
. This class
provides helpful getter method to access particular bits of the parsed
response data.Constructor and Description |
---|
AssayListResponse(java.lang.String text,
int statusCode,
java.lang.String contentType,
org.json.simple.JSONObject json,
AssayListCommand sourceCommand)
Constructs a new AssayListResponse
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getDefinition(int id)
Returns an assay definition for the assay identified by the specified id.
|
java.util.Map<java.lang.String,java.lang.Object> |
getDefinition(java.lang.String name)
Returns an assay definition for the assay identified by the specified name.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getDefinitions()
Returns the definitions section of the response.
|
findObject, getContentType, getParsedData, getProperty, getProperty, getRequiredVersion, getSourceCommand, getStatusCode, getText
public AssayListResponse(java.lang.String text, int statusCode, java.lang.String contentType, org.json.simple.JSONObject json, AssayListCommand sourceCommand)
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)sourceCommand
- A copy of the command that created this responsepublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getDefinitions()
public java.util.Map<java.lang.String,java.lang.Object> getDefinition(java.lang.String name)
name
- The name of the assay definition to find.public java.util.Map<java.lang.String,java.lang.Object> getDefinition(int id)
id
- The id of the assay definition to find.