Package io.gdcc.spi.export
Interface XMLExporter
XML Exporter is an extension of the base Exporter interface that adds the
additional methods needed for generating XML metadata export formats.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringTo support effective downloads of metadata in this Exporter's format, the Exporter should specify an appropriate mime type.Methods inherited from interface io.gdcc.spi.export.Exporter
exportDataset, getDisplayName, getFormatName, getPrerequisiteFormatName, identity, isAvailableToUsers, isHarvestable
-
Field Details
-
API_LEVEL
static final int API_LEVEL- See Also:
-
-
Method Details
-
getXMLNameSpace
String getXMLNameSpace()- Returns:
- - the name space of the XML schema
- Implementation Note:
- for the ddi exporter, this method returns "ddi:codebook:2_5"
-
getXMLSchemaLocation
String getXMLSchemaLocation()- Returns:
- - the location of the XML schema as a String (must be a valid URI)
- API Note:
- According to the XML specification, the value must be a URI
- Implementation Note:
- for the ddi exporter, this method returns "https://ddialliance.org/Specification/DDI-Codebook/2.5/XMLSchema/codebook.xsd"
-
getXMLSchemaVersion
String getXMLSchemaVersion()- Returns:
- - the version of the XML schema
- Implementation Note:
- for the ddi exporter, this method returns "2.5"
-
getMediaType
Description copied from interface:ExporterTo support effective downloads of metadata in this Exporter's format, the Exporter should specify an appropriate mime type.- Specified by:
getMediaTypein interfaceExporter- Returns:
- - should always be MediaType.APPLICATION_XML
-