public class Converter extends Object
| Constructor and Description |
|---|
Converter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertDateToString(Date date) |
static Date |
convertStringToDate(String date) |
static List<AggregationDetails> |
getAggregationHistoryFromJson(org.json.JSONObject repositoryObject) |
static AggregationDetails |
getLastCollectionFromJson(org.json.JSONObject repositoryObject) |
static AggregationDetails |
getLastTransformationFromJson(org.json.JSONObject repositoryObject) |
static List<eu.dnetlib.domain.data.RepositoryInterface> |
jsonToRepositoryInterfaceList(org.json.JSONArray rs) |
static eu.dnetlib.domain.data.RepositoryInterface |
jsonToRepositoryInterfaceObject(org.json.JSONObject repositoryInterfaceObject) |
static List<eu.dnetlib.domain.data.Repository> |
jsonToRepositoryList(org.json.JSONObject json) |
static eu.dnetlib.domain.data.Repository |
jsonToRepositoryObject(org.json.JSONObject repositoryObject) |
static ArrayList<String> |
readFile(String filename) |
static String |
repositoryInterfaceObjectToJson(eu.dnetlib.domain.data.Repository repository,
eu.dnetlib.domain.data.RepositoryInterface repositoryInterface) |
static String |
repositoryObjectToJson(eu.dnetlib.domain.data.Repository repository) |
static Double |
toDouble(String number) |
static List<Timezone> |
toTimezones(List<String> timezones) |
public static eu.dnetlib.domain.data.Repository jsonToRepositoryObject(org.json.JSONObject repositoryObject)
throws org.json.JSONException
org.json.JSONExceptionpublic static List<eu.dnetlib.domain.data.Repository> jsonToRepositoryList(org.json.JSONObject json) throws org.json.JSONException
org.json.JSONExceptionpublic static List<eu.dnetlib.domain.data.RepositoryInterface> jsonToRepositoryInterfaceList(org.json.JSONArray rs) throws org.json.JSONException
org.json.JSONExceptionpublic static eu.dnetlib.domain.data.RepositoryInterface jsonToRepositoryInterfaceObject(org.json.JSONObject repositoryInterfaceObject)
throws org.json.JSONException
org.json.JSONExceptionpublic static String repositoryObjectToJson(eu.dnetlib.domain.data.Repository repository) throws org.json.JSONException
org.json.JSONExceptionpublic static String repositoryInterfaceObjectToJson(eu.dnetlib.domain.data.Repository repository, eu.dnetlib.domain.data.RepositoryInterface repositoryInterface) throws org.json.JSONException
org.json.JSONExceptionpublic static List<AggregationDetails> getAggregationHistoryFromJson(org.json.JSONObject repositoryObject) throws org.json.JSONException
org.json.JSONExceptionpublic static AggregationDetails getLastCollectionFromJson(org.json.JSONObject repositoryObject) throws org.json.JSONException
org.json.JSONExceptionpublic static AggregationDetails getLastTransformationFromJson(org.json.JSONObject repositoryObject) throws org.json.JSONException
org.json.JSONExceptionCopyright © 2019. All rights reserved.