public interface InstanceService extends InstanceResolver
InstanceService
provides Instance
s from different data
sets, e.g. the DataSet.SOURCE
and DataSet.TRANSFORMED
data
sets. It also triggers the transformation of the source to the target data
set.Modifier and Type | Field and Description |
---|---|
static String |
ACTION_READ_SOURCEDATA
The action id used for reading source data.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(InstanceServiceListener listener)
Adds an instance service listener
|
void |
addSourceInstances(InstanceCollection sourceInstances)
Add instances to the
DataSet.SOURCE data set |
void |
clearInstances()
This will remove all instances from the service.
|
InstanceCollection |
getInstances(DataSet dataset)
Get the instances from the given data set
|
Set<TypeDefinition> |
getInstanceTypes(DataSet dataset)
Get the types for which instances are present in the given data set
|
boolean |
isTransformationEnabled()
Get if live transformation of source data is enabled.
|
void |
removeListener(InstanceServiceListener listener)
Removes an instance service listener
|
void |
setTransformationEnabled(boolean enabled)
Set if live transformation of source data is enabled.
|
getInstance, getReference
static final String ACTION_READ_SOURCEDATA
InstanceCollection getInstances(DataSet dataset)
dataset
- the data setSet<TypeDefinition> getInstanceTypes(DataSet dataset)
dataset
- the data setvoid addSourceInstances(InstanceCollection sourceInstances)
DataSet.SOURCE
data setsourceInstances
- the instances to addvoid setTransformationEnabled(boolean enabled)
enabled
- if transformation is enabledboolean isTransformationEnabled()
void clearInstances()
void addListener(InstanceServiceListener listener)
listener
- the listener to addvoid removeListener(InstanceServiceListener listener)
listener
- the listener to removeBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a