core / pragma.content / ContentHandler /
ContentHandler #
abstract class ContentHandler<ContentProto : GeneratedMessageV3>(val contentDataClass: KClass<ContentProto>, logger: Logger = LoggerFactory.getLogger(ContentHandler::class.simpleName)) : ContentData<ContentProto>
ContentHandler is responsible for encapsulating a specific type of versioned content data.
Implements the ContentData interface.
Parameters #
contentDataClass  | Identifies the content proto.  | 
ContentProto  | Generic type to enforce all values are of this proto.  | 
Constructors #
fun <ContentProto : GeneratedMessageV3> ContentHandler(contentDataClass: KClass<ContentProto>, logger: Logger = LoggerFactory.getLogger(ContentHandler::class.simpleName)) | 
Functions #
| Name | Summary | 
|---|---|
 Throws a PragmaException if missing a content entry for this id  | |
 Assigns required string ID from proto.  | |
 Called for live data migration.  | |
 Returns a list of strings expected to represent tags on a content proto.  | |
 Part of validation steps - allows for any custom validation wanted for the ContentProto type.  | |
 Allows for custom validation of nested ext protos across all content types.  | |
 Part of validation steps - checks that all IDs passed in are contained in this ContentData map.  | |
 Allows for custom validation across all content types.  | 
Properties #
| Name | Summary | 
|---|---|
private val contentDataClass: KClass<ContentProto> |