Class FormSubmissionHandler.Serializer
java.lang.Object
com.inductiveautomation.perspective.common.config.FormSubmissionHandler.Serializer
- All Implemented Interfaces:
ResourceAttributeSerializer<FormSubmissionHandler>
- Enclosing class:
- FormSubmissionHandler
public static class FormSubmissionHandler.Serializer
extends Object
implements ResourceAttributeSerializer<FormSubmissionHandler>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeFromResource(Resource resource) Decodes the given object from the provided Resource by extracting its attribute fields.encodeToResource(FormSubmissionHandler formSubmissionHandler) Encodes the given object into resource attribute fields.
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
encodeToResource
Description copied from interface:ResourceAttributeSerializerEncodes the given object into resource attribute fields.- Specified by:
encodeToResourcein interfaceResourceAttributeSerializer<FormSubmissionHandler>- Parameters:
formSubmissionHandler- the object to encode- Returns:
- a Consumer that modifies the ResourceBuilder by setting the relevant attributes of the given object
-
decodeFromResource
Description copied from interface:ResourceAttributeSerializerDecodes the given object from the provided Resource by extracting its attribute fields.- Specified by:
decodeFromResourcein interfaceResourceAttributeSerializer<FormSubmissionHandler>- Parameters:
resource- the resource object from which the object should be decoded- Returns:
- the decoded object
-