Class MetadataJson
java.lang.Object
org.opencastproject.metadata.dublincore.MetadataJson
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.JsonArraycollectionToJson(DublinCoreMetadataCollection collection, boolean withOrderedText) static MetadataFieldstatic org.json.simple.JSONArrayextractSingleCollectionfromListJson(org.json.simple.JSONArray json) static com.google.gson.JsonObjectfieldToJson(MetadataField f, boolean withOrderedText) static voidfillCollectionFromJson(DublinCoreMetadataCollection collection, Object json) static voidfillListFromJson(MetadataList metadataList, org.json.simple.JSONArray json) static com.google.gson.JsonArraylistToJson(MetadataList metadataList, boolean withOrderedText) static StringsafeString(Object input)
-
Method Details
-
fieldToJson
-
safeString
-
copyWithDifferentJsonValue
-
collectionToJson
public static com.google.gson.JsonArray collectionToJson(DublinCoreMetadataCollection collection, boolean withOrderedText) -
extractSingleCollectionfromListJson
public static org.json.simple.JSONArray extractSingleCollectionfromListJson(org.json.simple.JSONArray json) -
fillCollectionFromJson
-
fillListFromJson
-
listToJson
public static com.google.gson.JsonArray listToJson(MetadataList metadataList, boolean withOrderedText)
-