-
- All Implemented Interfaces:
-
android.os.Parcelable,org.readium.r2.shared.JSONable
public final class Subject implements JSONable, Parcelable
https://github.com/readium/webpub-manifest/tree/master/contexts/default#subjects
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSubject.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final StringsortAsprivate final LocalizedStringlocalizedNameprivate final LocalizedStringlocalizedSortAsprivate final Stringschemeprivate final Stringcodeprivate final List<Link>links
-
Constructor Summary
Constructors Constructor Description Subject(String name)Shortcut to create a Subject using a string as name. Subject(LocalizedString localizedName, LocalizedString localizedSortAs, String scheme, String code, List<Link> links)
-
Method Summary
Modifier and Type Method Description final StringgetName()final StringgetSortAs()final LocalizedStringgetLocalizedName()final LocalizedStringgetLocalizedSortAs()final StringgetScheme()final StringgetCode()final List<Link>getLinks()JSONObjecttoJSON()Serializes a Subject to its RWPM JSON representation. -
-
Constructor Detail
-
Subject
Subject(LocalizedString localizedName, LocalizedString localizedSortAs, String scheme, String code, List<Link> links)
- Parameters:
scheme- EPUB 3.1 opf:authority.code- EPUB 3.1 opf:term.links- Used to retrieve similar publications for the given subjects.
-
-
Method Detail
-
getLocalizedName
final LocalizedString getLocalizedName()
-
getLocalizedSortAs
final LocalizedString getLocalizedSortAs()
-
toJSON
JSONObject toJSON()
Serializes a Subject to its RWPM JSON representation.
-
-
-
-