-
- All Implemented Interfaces:
-
android.os.Parcelable,org.readium.r2.shared.JSONable
public final class Contributor implements JSONable, Parcelable
Contributor Object for the Readium Web Publication Manifest. https://readium.org/webpub-manifest/schema/contributor-object.schema.json
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classContributor.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final StringsortAsprivate final LocalizedStringmultilanguageNameprivate final LocalizedStringlocalizedNameprivate final LocalizedStringlocalizedSortAsprivate final Stringidentifierprivate final Set<String>rolesprivate final Doublepositionprivate final List<Link>links
-
Constructor Summary
Constructors Constructor Description Contributor(String name)Shortcut to create a Contributor using a string as name. Contributor(LocalizedString localizedName, LocalizedString localizedSortAs, String identifier, Set<String> roles, Double position, List<Link> links)
-
Method Summary
Modifier and Type Method Description final StringgetName()final StringgetSortAs()final LocalizedStringgetMultilanguageName()final LocalizedStringgetLocalizedName()final LocalizedStringgetLocalizedSortAs()final StringgetIdentifier()final Set<String>getRoles()final DoublegetPosition()final List<Link>getLinks()JSONObjecttoJSON()Serializes a Subject to its RWPM JSON representation. -
-
Constructor Detail
-
Contributor
Contributor(String name)
Shortcut to create a Contributor using a string as name.
-
Contributor
Contributor(LocalizedString localizedName, LocalizedString localizedSortAs, String identifier, Set<String> roles, Double position, List<Link> links)
- Parameters:
localizedName- 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.
-
-
Method Detail
-
getMultilanguageName
final LocalizedString getMultilanguageName()
-
getLocalizedName
final LocalizedString getLocalizedName()
-
getLocalizedSortAs
final LocalizedString getLocalizedSortAs()
-
getIdentifier
final String getIdentifier()
-
getPosition
final Double getPosition()
-
toJSON
JSONObject toJSON()
Serializes a Subject to its RWPM JSON representation.
-
-
-
-