Package com.appiancorp.suiteapi.epex.spi
Interface DataStrategy<C>
- Type Parameters:
C
- the output type of onGet
public interface DataStrategy<C>
Service Provider Interface: this is not intended for external implementation
See DataStrategies for available implementers of this interface.
DataStrategy provides a strategy for conversion of data between internal and external forms.
Use one of the constants provided in EPEx.
-
Method Summary
Modifier and TypeMethodDescriptionConvert the sourceValue using this DataStrategy into an instance of class C.Convert the sourceValue of class C using this DataStrategy into an object suitable for putting into EPEx.parameter
(VariableReference variableReference, C data) Construct a Parameter, e.g., for Model.initiateAsynchronous.Construct a Parameter, e.g., for Model.initiateAsynchronous.
-
Method Details
-
parameter
Construct a Parameter, e.g., for Model.initiateAsynchronous.- Parameters:
namespace
-variableName
-data
-- Returns:
-
parameter
Construct a Parameter, e.g., for Model.initiateAsynchronous.- Parameters:
variableReference
-data
-- Returns:
-
onGet
Convert the sourceValue using this DataStrategy into an instance of class C.- Parameters:
sourceValue
- must be of a class that this DataStrategy implementation expects.- Returns:
- value representing sourceValue as an instance of class C.
-
onPut
Convert the sourceValue of class C using this DataStrategy into an object suitable for putting into EPEx.- Parameters:
sourceValue
-- Returns:
- value suitable for EPEx usage
-