public interface ActivityConverter<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
T |
fromActivity(Activity deserialized)
Converts the activity to a POJO representation.
|
List<T> |
fromActivityList(List<Activity> list)
Converts multiple Activities into a list of source documents.
|
Class |
requiredClass()
What class does this ActivityConverter require?
|
String |
serializationFormat()
Gets the supported content type that can be deserialized/serialized
|
List<Activity> |
toActivityList(List<T> list)
Converts multiple documents into a list of Activity objects.
|
List<Activity> |
toActivityList(T serialized)
Converts a POJO into one or more Activities.
|
Class requiredClass()
String serializationFormat()
T fromActivity(Activity deserialized) throws ActivityConversionException
deserialized
- the stringActivityConversionException
List<T> fromActivityList(List<Activity> list) throws ActivityConversionException
list
- a typed List of documentsActivityConversionException
List<Activity> toActivityList(T serialized) throws ActivityConversionException
serialized
- the string representationActivityConversionException
List<Activity> toActivityList(List<T> list) throws ActivityConversionException
list
- a typed List of documentsActivityConversionException
Copyright © 2018 The Apache Software Foundation. All rights reserved.