Class YamlMappingWriter
java.lang.Object
org.openehealth.ipf.commons.map.yaml.YamlMappingWriter
- All Implemented Interfaces:
MappingWriter
Writes
Mappings as a *.mapping.yaml document.
The output opens with the yaml-language-server comment that points editors at the JSON
Schema, keeps numeric-looking values quoted so they stay strings, and leaves out anything that
only restates a default.
- Since:
- 6.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
YamlMappingWriter
public YamlMappingWriter()
-
-
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
-
write
- Specified by:
writein interfaceMappingWriter- Parameters:
mappings- the mappings to writeout- the destination; the caller closes it
-
toYaml
-