S - the source datatypepublic class MachineDataOutputTranslator<S> extends de.iip_ecosphere.platform.connectors.types.AbstractConnectorOutputTypeTranslator<S,MachineData>
| Modifier and Type | Class and Description |
|---|---|
static interface |
MachineDataOutputTranslator.OutputCustomizer
A plugin to this translator to customize the translator towards specific capabilities of the test/connector.
|
| Modifier and Type | Field and Description |
|---|---|
private MachineDataOutputTranslator.OutputCustomizer |
customizer |
private Class<? extends S> |
sourceType |
private boolean |
withNotifications |
| Constructor and Description |
|---|
MachineDataOutputTranslator(boolean withNotifications,
Class<? extends S> sourceType,
MachineDataOutputTranslator.OutputCustomizer customizer)
Creates instance.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends S> |
getSourceType() |
Class<? extends MachineData> |
getTargetType() |
void |
initializeModelAccess() |
MachineData |
to(Object source) |
private boolean withNotifications
private MachineDataOutputTranslator.OutputCustomizer customizer
public MachineDataOutputTranslator(boolean withNotifications,
Class<? extends S> sourceType,
MachineDataOutputTranslator.OutputCustomizer customizer)
withNotifications - operate with/without notifications (for testing)sourceType - the source typecustomizer - the translator customizerpublic MachineData to(Object source) throws IOException
IOExceptionpublic void initializeModelAccess()
throws IOException
IOExceptionpublic Class<? extends MachineData> getTargetType()
Copyright © 2022. All rights reserved.