-
- All Implemented Interfaces:
-
android.os.Parcelable,org.readium.r2.shared.JSONable
public final class Properties implements JSONable, Parcelable
Properties associated to the linked resource.
This is opened for extensions. https://readium.org/webpub-manifest/schema/link.schema.json
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classProperties.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Map<String, Object>otherProperties
-
Constructor Summary
Constructors Constructor Description Properties(Map<String, Object> otherProperties)
-
Method Summary
Modifier and Type Method Description final Map<String, Object>getOtherProperties()JSONObjecttoJSON()Serializes a Properties to its RWPM JSON representation. final Propertiesadd(Map<String, Object> properties)Makes a copy of this Properties after merging in the given additional other properties. final Propertiesadd(Properties properties)Makes a copy of this Properties after merging in the given additional other properties. final Objectget(String key)Syntactic sugar to access the otherProperties values by subscripting Properties directly. -
-
Method Detail
-
getOtherProperties
final Map<String, Object> getOtherProperties()
-
toJSON
JSONObject toJSON()
Serializes a Properties to its RWPM JSON representation.
-
add
final Properties add(Map<String, Object> properties)
Makes a copy of this Properties after merging in the given additional other properties.
-
add
final Properties add(Properties properties)
Makes a copy of this Properties after merging in the given additional other properties.
-
get
final Object get(String key)
Syntactic sugar to access the otherProperties values by subscripting Properties directly.
properties["price"] == properties.otherProperties["price"]
-
-
-
-