-
- All Implemented Interfaces:
public class PublicationCollection.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static PublicationCollection.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final PublicationCollectionfromJSON(Object json, Function1<String, String> normalizeHref, WarningLogger warnings)Parses a PublicationCollection from its RWPM JSON representation. final Map<String, List<PublicationCollection>>collectionsFromJSON(JSONObject json, Function1<String, String> normalizeHref, WarningLogger warnings)Parses a map of PublicationCollection indexed by their roles from its RWPM JSON representation. -
-
Method Detail
-
fromJSON
final PublicationCollection fromJSON(Object json, Function1<String, String> normalizeHref, WarningLogger warnings)
Parses a PublicationCollection from its RWPM JSON representation.
If the collection can't be parsed, a warning will be logged with warnings. The links' href and their children's will be normalized recursively using the provided normalizeHref closure.
-
collectionsFromJSON
final Map<String, List<PublicationCollection>> collectionsFromJSON(JSONObject json, Function1<String, String> normalizeHref, WarningLogger warnings)
Parses a map of PublicationCollection indexed by their roles from its RWPM JSON representation.
If the collection can't be parsed, a warning will be logged with warnings. The links' href and their children's will be normalized recursively using the provided normalizeHref closure.
-
-
-
-