public class DublinCoreCatalogList extends Object
DublinCoreCatalog list and serializing into xml or json string.| Constructor and Description |
|---|
DublinCoreCatalogList(List<DublinCoreCatalog> catalogs,
long totalCount)
Initialize with the given catalog list.
|
| Modifier and Type | Method and Description |
|---|---|
List<DublinCoreCatalog> |
getCatalogList()
Returns list of Dublin Core currently stored
|
String |
getResultsAsJson()
Serializes list to JSON array string.
|
String |
getResultsAsXML()
Serializes list to XML.
|
long |
getTotalCount()
Get the total number of catalogs matching the creating query.
|
static DublinCoreCatalogList |
parse(String dcString)
Parses an XML or JSON string to an dublin core catalog list.
|
long |
size()
Return the number of contained catalogs.
|
public DublinCoreCatalogList(List<DublinCoreCatalog> catalogs, long totalCount)
catalogs - the catalogs to initialize this list with.totalCount - the total count of catalogs that match the creating query of this list must be >= catalogs.sizepublic List<DublinCoreCatalog> getCatalogList()
DublinCoreCatalogspublic long getTotalCount()
size().public long size()
public String getResultsAsXML() throws IOException
IOException - if serialization cannot be properly performedpublic static DublinCoreCatalogList parse(String dcString) throws IOException
dcString - the XML or JSON stringIOException - if there is a problem parsing the XML or JSONpublic String getResultsAsJson()
Copyright © 2009–2019 Opencast Project. All rights reserved.