public class BivesSingleFileResponse extends BivesResponse implements BivesSingleFileCommands
Modifier and Type | Field and Description |
---|---|
protected List<String> |
documentTypes
The document types.
|
protected HashMap<String,String> |
meta
The meta informations.
|
protected HashMap<String,Integer> |
nodeStats
The node statistics.
|
bivesResults, error
COMMAND_DOCUMENT_TYPE, COMMAND_META, COMMAND_SINGLE_FILE_COMPONENT_HIERARCHY_DOT, COMMAND_SINGLE_FILE_COMPONENT_HIERARCHY_GRAPHML, COMMAND_SINGLE_FILE_COMPONENT_HIERARCHY_JSON, COMMAND_SINGLE_FILE_REACTIONS_DOT, COMMAND_SINGLE_FILE_REACTIONS_GRAPHML, COMMAND_SINGLE_FILE_REACTIONS_JSON, COMMAND_SINGLE_FLATTEN
COMMAND_FORCE_CELLML, COMMAND_FORCE_REGULAR, COMMAND_FORCE_SBML, COMMAND_SET_LOG_STACKTRACE, COMMAND_SET_VERBOSE
Constructor and Description |
---|
BivesSingleFileResponse()
Instantiates a new bives single file response.
|
Modifier and Type | Method and Description |
---|---|
void |
addDocumentType(String documentType)
Adds another document type to the list of document types.
|
List<String> |
getDocumentTypes()
Gets the document types.
|
HashMap<String,String> |
getMeta()
Gets the meta informations.
|
HashMap<String,Integer> |
getNodeStats()
Gets the node statistics as a map: NODE_NAME => OCCURRENCES.
|
void |
postProcess()
Post process a response.
|
void |
setDocumentTypes(List<String> documentTypes)
Sets the document types.
|
void |
setMeta(String key,
String value)
Sets the meta informations.
|
void |
setNodeStats(String tag,
int occurences)
Sets the statistics for a certain node type.
|
public BivesSingleFileResponse()
public void setMeta(String key, String value)
key
- the identify for the meta informationvalue
- the meta information to setpublic void setNodeStats(String tag, int occurences)
tag
- the tag name of the nodeoccurences
- the number of nodes in the document that share this tag namepublic HashMap<String,Integer> getNodeStats()
public void addDocumentType(String documentType)
documentType
- the new document type that applies to the documentpublic void setDocumentTypes(List<String> documentTypes)
documentTypes
- the list of document types that apply to the documentpublic List<String> getDocumentTypes()
public void postProcess()
BivesResponse
postProcess
in class BivesResponse
Copyright © 2019 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.