public interface CyJobData
Map
, with String
keys and arbirary Objects
as values. Note that no type checking is done -- the values might
contain other Maps
, Lists
or a variety of
other objects (notably Cytoscape model and view model objects). The
detailed implementation for this object is managed by a CyJobDataService
which should be able to use the information contains within the object to
create the appropriate data structure to send to a remote job
(CyJobDataService.getSerializedData(CyJobData)
) and retrieve the
information from the remote job (CyJobDataService#unSerialize(Object)
).Module: jobs-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>jobs-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all of the data
|
boolean |
containsKey(String key)
Test to see if a key exists in the current CyJobData.
|
Object |
get(String key)
Returns the Object that contains the value for the specified key, or null
if that key doesn't exist.
|
Map<String,Object> |
getAllValues()
Return all of the values in this CyJobData
|
Set<String> |
keySet()
Return the enumerated set of keys in this CyJobData.
|
void |
put(String key,
Object value)
Set the value for a particular key.
|
Object |
remove(String key)
Remove the data for a key
|
Object get(String key)
key
- the key to access the requested dataSet<String> keySet()
boolean containsKey(String key)
key
- the key to testMap<String,Object> getAllValues()
Map
of all of the data in this CyJobData object.void put(String key, Object value)
key
- the key to set the value forvalue
- the value to setObject remove(String key)
key
- the key to remove the data forvoid clear()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.