Class XmlMappingWriter
java.lang.Object
org.openehealth.ipf.commons.map.xml.XmlMappingWriter
- All Implemented Interfaces:
MappingWriter
Writes
Mappings as a *.mapping.xml document.
The output declares the schema with xsi:noNamespaceSchemaLocation, so an IDE validates
it while it is being edited. Attributes that only restate a default - equivalence="equal",
reversible="true", override="false" - are left out.
- Since:
- 6.0
-
Constructor Details
-
XmlMappingWriter
public XmlMappingWriter()
-
-
Method Details
-
format
Description copied from interface:MappingWriterShort, stable identifier of the format this writer produces, matching theformat idof the loader that reads it back, e.g.xml,yamlorconceptmap-r4-json. Compared case-insensitively, and unique among the writers on one classpath.- Specified by:
formatin interfaceMappingWriter- Returns:
- the format id, never
nullor blank
-
extension
- Specified by:
extensionin interfaceMappingWriter- Returns:
- the file extension of the format this writer produces, including the leading dot
and lower case, e.g.
.mapping.xml
-
toXml
-
write
-
write
- Specified by:
writein interfaceMappingWriter- Parameters:
mappings- the mappings to writeout- the destination; the caller closes it
-