public class MetadataDiscoveryUtil extends Object
| Constructor and Description |
|---|
MetadataDiscoveryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.datacatalogue.metadatadiscovery.bean.jaxb.MetadataFormat |
getMetadataFormatFromXML(String xml)
Unmarshals XML content to a MetadataFormat object
|
static org.gcube.datacatalogue.metadatadiscovery.bean.jaxb.NamespaceCategories |
getNamespaceCategoryFromListJsonObject(List<String> namespacesJson)
Converts a list of JSON strings representing namespaces into a
NamespaceCategories object.
|
static String |
getXMLFromMetadataFormat(org.gcube.datacatalogue.metadatadiscovery.bean.jaxb.MetadataFormat metadataFormat)
Marshals a MetadataFormat object to XML string.
|
public static org.gcube.datacatalogue.metadatadiscovery.bean.jaxb.MetadataFormat getMetadataFormatFromXML(String xml) throws JAXBException
xml - the XML content to unmarshalJAXBException - if an error occurs during unmarshallingpublic static String getXMLFromMetadataFormat(org.gcube.datacatalogue.metadatadiscovery.bean.jaxb.MetadataFormat metadataFormat) throws JAXBException
metadataFormat - the metadata format object to marshalJAXBException - if an error occurs during marshallingpublic static org.gcube.datacatalogue.metadatadiscovery.bean.jaxb.NamespaceCategories getNamespaceCategoryFromListJsonObject(List<String> namespacesJson) throws Exception
namespacesJson - the list of JSON stringsException - if an error occurs during conversionCopyright © 2026. All rights reserved.