Class GenericInputObject<T>
java.lang.Object
com.kryptokrauts.aeternity.sdk.domain.GenericInputObject<T>
- Type Parameters:
T
- the generated API model class
- Direct Known Subclasses:
DryRunAccountModel
,DryRunCallContextModel
,DryRunCallRequestModel
,DryRunInputItemModel
,DryRunRequest
public abstract class GenericInputObject<T>
extends java.lang.Object
This class encapsules the generated input objects to keep the SDK stable in terms of changes
within the underlying AE protocol
-
Constructor Summary
Constructors Constructor Description GenericInputObject()
-
Method Summary
Modifier and Type Method Description protected abstract T
mapToModel()
map to API model method implemented by the specific input model classT
toGeneratedModel()
validates and maps the wrapped model to generated API model and validates the input before it is passed to the function callprotected abstract void
validate()
validate input if necessaryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GenericInputObject
public GenericInputObject()
-
-
Method Details
-
toGeneratedModel
validates and maps the wrapped model to generated API model and validates the input before it is passed to the function call- Returns:
- the mapped generated API model class
-
mapToModel
map to API model method implemented by the specific input model class- Returns:
- the API input model
-
validate
protected abstract void validate()validate input if necessary
-