Metadata

data class Metadata(val identifier: String? = null, val type: String? = null, val conformsTo: Set<Publication.Profile> = emptySet(), val localizedTitle: LocalizedString? = null, val localizedSubtitle: LocalizedString? = null, val localizedSortAs: LocalizedString? = null, val modified: Instant? = null, val published: Instant? = null, val accessibility: Accessibility? = null, val languages: List<String> = emptyList(), val subjects: List<Subject> = emptyList(), val authors: List<Contributor> = emptyList(), val translators: List<Contributor> = emptyList(), val editors: List<Contributor> = emptyList(), val artists: List<Contributor> = emptyList(), val illustrators: List<Contributor> = emptyList(), val letterers: List<Contributor> = emptyList(), val pencilers: List<Contributor> = emptyList(), val colorists: List<Contributor> = emptyList(), val inkers: List<Contributor> = emptyList(), val narrators: List<Contributor> = emptyList(), val contributors: List<Contributor> = emptyList(), val publishers: List<Contributor> = emptyList(), val imprints: List<Contributor> = emptyList(), val readingProgression: ReadingProgression? = null, val description: String? = null, val duration: Double? = null, val numberOfPages: Int? = null, val belongsTo: Map<String, List<Collection>> = emptyMap(), val tdm: Tdm? = null, val otherMetadata: Map<String, Any> = mapOf()) : JSONable, Parcelable

https://readium.org/webpub-manifest/schema/metadata.schema.json

Parameters

tdm

Publications can indicate whether they allow third parties to use their content for text and data mining purposes using the TDM Rep protocol, as defined in a W3C Community Group Report.

otherMetadata

Additional metadata for extensions, as a JSON dictionary.

Constructors

Link copied to clipboard
constructor(identifier: String? = null, type: String? = null, conformsTo: Set<Publication.Profile> = emptySet(), localizedTitle: LocalizedString? = null, localizedSubtitle: LocalizedString? = null, localizedSortAs: LocalizedString? = null, modified: Instant? = null, published: Instant? = null, accessibility: Accessibility? = null, languages: List<String> = emptyList(), subjects: List<Subject> = emptyList(), authors: List<Contributor> = emptyList(), translators: List<Contributor> = emptyList(), editors: List<Contributor> = emptyList(), artists: List<Contributor> = emptyList(), illustrators: List<Contributor> = emptyList(), letterers: List<Contributor> = emptyList(), pencilers: List<Contributor> = emptyList(), colorists: List<Contributor> = emptyList(), inkers: List<Contributor> = emptyList(), narrators: List<Contributor> = emptyList(), contributors: List<Contributor> = emptyList(), publishers: List<Contributor> = emptyList(), imprints: List<Contributor> = emptyList(), readingProgression: ReadingProgression? = null, description: String? = null, duration: Double? = null, numberOfPages: Int? = null, belongsTo: Map<String, List<Collection>> = emptyMap(), tdm: Tdm? = null, otherMetadata: Map<String, Any> = mapOf())
constructor(identifier: String? = null, type: String? = null, conformsTo: Set<Publication.Profile> = emptySet(), localizedTitle: LocalizedString? = null, localizedSubtitle: LocalizedString? = null, localizedSortAs: LocalizedString? = null, modified: Instant? = null, published: Instant? = null, accessibility: Accessibility? = null, languages: List<String> = emptyList(), subjects: List<Subject> = emptyList(), authors: List<Contributor> = emptyList(), translators: List<Contributor> = emptyList(), editors: List<Contributor> = emptyList(), artists: List<Contributor> = emptyList(), illustrators: List<Contributor> = emptyList(), letterers: List<Contributor> = emptyList(), pencilers: List<Contributor> = emptyList(), colorists: List<Contributor> = emptyList(), inkers: List<Contributor> = emptyList(), narrators: List<Contributor> = emptyList(), contributors: List<Contributor> = emptyList(), publishers: List<Contributor> = emptyList(), imprints: List<Contributor> = emptyList(), readingProgression: ReadingProgression? = null, description: String? = null, duration: Double? = null, numberOfPages: Int? = null, belongsTo: Map<String, List<Collection>> = emptyMap(), belongsToCollections: List<Collection> = emptyList(), belongsToSeries: List<Collection> = emptyList(), tdm: Tdm? = null, otherMetadata: Map<String, Any> = mapOf())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the Language resolved from the declared BCP 47 primary language.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the default translation string for the localizedSortAs.

Link copied to clipboard
Link copied to clipboard
val tdm: Tdm?
Link copied to clipboard

Returns the default translation string for the localizedTitle.

Link copied to clipboard
Link copied to clipboard
val type: String?

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
operator fun get(key: String): Any?

Syntactic sugar to access the otherMetadata values by subscripting Metadata directly. metadata["layout"] == metadata.otherMetadata["layout"]

Link copied to clipboard
open override fun toJSON(): JSONObject

Serializes a Metadata to its RWPM JSON representation.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)