Skip to content

Writing Reference Metadata

Reference Metadata is written using the IMetadataWriterManager, which uses the Fusion Module framework to find the correct writer based on the selected format.

IReportedMetadataSetBean finalVersion = mutable.getImmutableInstance();

SdmxJsonModule.register();
IMetadataWriterManager mwm = new ReferenceMetadataWriterManager();
IMetadataFormat format = SdmxJsonMetadataFormat.defaultInstance();
mwm.write(finalVersion, format, System.out);

Supported formats are:

Implementation Description
SdmxJsonMetadataFormat SDMX-JSON official SDMX format
FusionJsonModule Fusion-JSON custom format; a simplification on sdmx-json format
SdmxMLMetadataFormat SDMX-ML (XML) official SDMX format