Contributor

data class Contributor(val localizedName: LocalizedString, val localizedSortAs: LocalizedString? = null, val identifier: String? = null, val roles: Set<String> = emptySet(), val position: Double? = null, val links: List<Link> = emptyList()) : JSONable, Parcelable

Contributor Object for the Readium Web Publication Manifest. https://readium.org/webpub-manifest/schema/contributor-object.schema.json

Parameters

localizedName

The name of the contributor.

localizedSortAs

The string used to sort the name of the contributor.

identifier

An unambiguous reference to this contributor.

roles

The roles of the contributor in the publication making.

position

The position of the publication in this collection/series, when the contributor represents a collection.

links

Used to retrieve similar publications for the given contributor.

Constructors

Link copied to clipboard
constructor(localizedName: LocalizedString, localizedSortAs: LocalizedString? = null, identifier: String? = null, roles: Set<String> = emptySet(), position: Double? = null, links: List<Link> = emptyList())
constructor(name: String)

Shortcut to create a Contributor using a string as name.

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

Returns the default translation string for the localizedName.

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

Returns the default translation string for the localizedSortAs.

Functions

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

Serializes a Subject to its RWPM JSON representation.

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